survey-creator-angular 2.2.5 → 2.3.0

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.
@@ -751,6 +751,31 @@
751
751
  }] } });
752
752
  i1.AngularComponentFactory.Instance.registerComponent("survey-widget", i1.SurveyContentComponent);
753
753
 
754
+ var SurfacePlaceholderComponent = /** @class */ (function (_super) {
755
+ __extends(SurfacePlaceholderComponent, _super);
756
+ function SurfacePlaceholderComponent() {
757
+ return _super !== null && _super.apply(this, arguments) || this;
758
+ }
759
+ return SurfacePlaceholderComponent;
760
+ }(i1.EmbeddedViewContentComponent));
761
+ SurfacePlaceholderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurfacePlaceholderComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
762
+ SurfacePlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurfacePlaceholderComponent, selector: "svc-surface-placeholder", inputs: { name: "name", placeholderTitleText: "placeholderTitleText", placeholderDescriptionText: "placeholderDescriptionText" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-surface-placeholder\">\n <div class=\"svc-surface-placeholder__image\" [class]=\"'svc-surface-placeholder__image--' + name\"></div>\n <div class=\"svc-surface-placeholder__text\">\n <div class=\"svc-surface-placeholder__title\">{{placeholderTitleText}}</div>\n <div class=\"svc-surface-placeholder__description\">{{placeholderDescriptionText}}</div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"] });
763
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurfacePlaceholderComponent, decorators: [{
764
+ type: i0.Component,
765
+ args: [{
766
+ selector: "svc-surface-placeholder",
767
+ templateUrl: "./surface-placeholder.component.html",
768
+ styles: [":host { display: none; }"]
769
+ }]
770
+ }], propDecorators: { name: [{
771
+ type: i0.Input
772
+ }], placeholderTitleText: [{
773
+ type: i0.Input
774
+ }], placeholderDescriptionText: [{
775
+ type: i0.Input
776
+ }] } });
777
+ i1.AngularComponentFactory.Instance.registerComponent("svc-surface-placeholder", SurfacePlaceholderComponent);
778
+
754
779
  var CreatorModelComponent = /** @class */ (function (_super) {
755
780
  __extends(CreatorModelComponent, _super);
756
781
  function CreatorModelComponent() {
@@ -795,220 +820,6 @@
795
820
  }]
796
821
  }] });
797
822
 
798
- var ToolboxToolComponent = /** @class */ (function (_super) {
799
- __extends(ToolboxToolComponent, _super);
800
- function ToolboxToolComponent() {
801
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
802
- _this.isCompact = false;
803
- return _this;
804
- }
805
- ToolboxToolComponent.prototype.createModel = function () {
806
- this.model = new surveyCreatorCore.ToolboxToolViewModel(this.item, this.creator, this.parentModel);
807
- };
808
- ToolboxToolComponent.prototype.getPropertiesToTrack = function () {
809
- return ["creator", "item"];
810
- };
811
- ToolboxToolComponent.prototype.getModel = function () {
812
- return this.item;
813
- };
814
- Object.defineProperty(ToolboxToolComponent.prototype, "itemCssClasses", {
815
- get: function () {
816
- return this.item.css;
817
- },
818
- enumerable: false,
819
- configurable: true
820
- });
821
- ToolboxToolComponent.prototype.ngOnDestroy = function () {
822
- _super.prototype.ngOnDestroy.call(this);
823
- this.model.dispose();
824
- this.item.updateModeCallback = undefined;
825
- };
826
- ToolboxToolComponent.prototype.ngAfterViewInit = function () {
827
- var _this = this;
828
- if (this.item) {
829
- this.item.updateModeCallback = function (mode, callback) {
830
- var _a;
831
- _this.item.mode = mode;
832
- callback(mode, (_a = _this.container) === null || _a === void 0 ? void 0 : _a.nativeElement);
833
- };
834
- queueMicrotask(function () {
835
- _this.item.afterRender();
836
- });
837
- }
838
- };
839
- return ToolboxToolComponent;
840
- }(CreatorModelComponent));
841
- ToolboxToolComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxToolComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
842
- ToolboxToolComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: { creator: "creator", item: "item", parentModel: "parentModel", isCompact: "isCompact" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"itemCssClasses\" #container>\n <div class=\"svc-toolbox__category-separator\" *ngIf=\"item.needSeparator && !creator.toolbox.showCategoryTitles\">\n </div>\n <div class=\"svc-toolbox__tool-content sv-action__content\" (pointerdown)=\"model.onPointerDown($event)\">\n <ng-template [component]=\"{ name: model.itemComponent, default: 'svc-toolbox-item', \n data: { model: item, viewModel: model, creator: creator, isCompact: isCompact } }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
843
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxToolComponent, decorators: [{
844
- type: i0.Component,
845
- args: [{
846
- selector: "svc-toolbox-tool",
847
- templateUrl: "./toolbox-tool.component.html",
848
- styles: [":host { display: none; }"]
849
- }]
850
- }], propDecorators: { creator: [{
851
- type: i0.Input
852
- }], item: [{
853
- type: i0.Input
854
- }], parentModel: [{
855
- type: i0.Input
856
- }], isCompact: [{
857
- type: i0.Input
858
- }], container: [{
859
- type: i0.ViewChild,
860
- args: ["container"]
861
- }] } });
862
-
863
- var SearchComponent = /** @class */ (function (_super) {
864
- __extends(SearchComponent, _super);
865
- function SearchComponent() {
866
- return _super !== null && _super.apply(this, arguments) || this;
867
- }
868
- SearchComponent.prototype.getModel = function () {
869
- return this.model;
870
- };
871
- return SearchComponent;
872
- }(i1.BaseAngular));
873
- SearchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SearchComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
874
- SearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SearchComponent, selector: "svc-search", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"model.isVisible\" class=\"svc-search\">\n <div class=\"svc-search__search-icon\">\n <svg [iconName]=\"'icon-search'\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </div>\n <input type=\"text\" class=\"svc-search__input\" [(ngModel)]=\"model.filterString\"\n [attr.aria-label]=\"model.filterStringPlaceholder\" [attr.placeholder]=\"model.filterStringPlaceholder\" />\n <div class=\"svc-search__toolbar\">\n <div class=\"svc-search__toolbar-counter\">{{model.matchCounterText}}</div>\n <sv-action-bar [model]=\"model.searchActionBar\"></sv-action-bar>\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"] }, { 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"] }, { type: i3__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
875
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SearchComponent, decorators: [{
876
- type: i0.Component,
877
- args: [{
878
- selector: "svc-search",
879
- templateUrl: "./search.component.html",
880
- styles: [":host { display: none; }"]
881
- }]
882
- }], propDecorators: { model: [{
883
- type: i0.Input
884
- }] } });
885
- i1.AngularComponentFactory.Instance.registerComponent("svc-search", SearchComponent);
886
-
887
- var ToolboxCategoryComponent = /** @class */ (function (_super) {
888
- __extends(ToolboxCategoryComponent, _super);
889
- function ToolboxCategoryComponent() {
890
- return _super !== null && _super.apply(this, arguments) || this;
891
- }
892
- ToolboxCategoryComponent.prototype.getModel = function () {
893
- return this.category;
894
- };
895
- ToolboxCategoryComponent.prototype.trackItemBy = function (_, item) {
896
- return item.renderedId;
897
- };
898
- return ToolboxCategoryComponent;
899
- }(i1.BaseAngular));
900
- ToolboxCategoryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxCategoryComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
901
- ToolboxCategoryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ToolboxCategoryComponent, selector: "svc-toolbox-category ", inputs: { category: "category", toolbox: "toolbox" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-toolbox__category\" [class.svc-toolbox__category--collapsed]=\"category.collapsed\"\n [class.svc-toolbox__category--empty]=\"category.empty\">\n <div class=\"svc-toolbox__category-header-wrapper\">\n <div class=\"svc-toolbox__category-header\"\n (click)=\"category.toggleState()\" [key2click] [class.svc-toolbox__category-header--collapsed]=\"toolbox.canCollapseCategories\" >\n <span class=\"svc-toolbox__category-title\">{{category.title}}</span>\n <div *ngIf=\"toolbox.canCollapseCategories\" class=\"svc-toolbox__category-header__controls\">\n <svg [iconName]=\"category.iconName\" [class]=\"category.iconClassName\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </div>\n </div>\n </div>\n <ng-container *ngFor=\"let item of category.items; trackBy: trackItemBy\">\n <svc-toolbox-tool [item]=\"item\" [creator]=\"toolbox.creator\" [parentModel]=\"toolbox\" [isCompact]=\"false\" ></svc-toolbox-tool>\n </ng-container>\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"] }, { type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "parentModel", "isCompact"] }], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
902
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxCategoryComponent, decorators: [{
903
- type: i0.Component,
904
- args: [{
905
- selector: "svc-toolbox-category ",
906
- templateUrl: "./toolbox-category.component.html",
907
- styles: [":host { display: none; }"]
908
- }]
909
- }], propDecorators: { category: [{
910
- type: i0.Input
911
- }], toolbox: [{
912
- type: i0.Input
913
- }] } });
914
-
915
- var AdaptiveToolboxComponent = /** @class */ (function (_super) {
916
- __extends(AdaptiveToolboxComponent, _super);
917
- function AdaptiveToolboxComponent() {
918
- return _super !== null && _super.apply(this, arguments) || this;
919
- }
920
- Object.defineProperty(AdaptiveToolboxComponent.prototype, "toolbox", {
921
- get: function () {
922
- return this.model.toolbox;
923
- },
924
- enumerable: false,
925
- configurable: true
926
- });
927
- Object.defineProperty(AdaptiveToolboxComponent.prototype, "creator", {
928
- get: function () {
929
- return this.model;
930
- },
931
- enumerable: false,
932
- configurable: true
933
- });
934
- Object.defineProperty(AdaptiveToolboxComponent.prototype, "searchItem", {
935
- get: function () {
936
- return this.toolbox.searchItem;
937
- },
938
- enumerable: false,
939
- configurable: true
940
- });
941
- AdaptiveToolboxComponent.prototype.afterRender = function () {
942
- var _a;
943
- if ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement) {
944
- this.toolbox.afterRender(this.container.nativeElement);
945
- }
946
- };
947
- AdaptiveToolboxComponent.prototype.ngAfterViewInit = function () {
948
- this.afterRender();
949
- };
950
- AdaptiveToolboxComponent.prototype.ngAfterViewChecked = function () {
951
- _super.prototype.ngAfterViewChecked.call(this);
952
- this.afterRender();
953
- };
954
- AdaptiveToolboxComponent.prototype.afterUpdate = function (isSync) {
955
- _super.prototype.afterUpdate.call(this, isSync);
956
- this.afterRender();
957
- };
958
- AdaptiveToolboxComponent.prototype.getModel = function () {
959
- return this.toolbox;
960
- };
961
- AdaptiveToolboxComponent.prototype.ngOnDestroy = function () {
962
- this.toolbox.beforeDestroy();
963
- _super.prototype.ngOnDestroy.call(this);
964
- };
965
- AdaptiveToolboxComponent.prototype.trackItemBy = function (_, item) {
966
- return item.renderedId;
967
- };
968
- return AdaptiveToolboxComponent;
969
- }(i1.BaseAngular));
970
- AdaptiveToolboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AdaptiveToolboxComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
971
- AdaptiveToolboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AdaptiveToolboxComponent, selector: "svc-toolbox", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"toolbox.classNames\" #container [style]=\"toolbox.getRootStyle()\">\n <div (focusout)=\"toolbox.focusOut($event)\" class=\"svc-toolbox__panel\">\n <div *ngIf=\"toolbox.showSearch\" class=\"svc-toolbox__search-container\">\n <ng-container *ngIf=\"toolbox.isCompactRendered\">\n <svc-toolbox-tool [creator]=\"creator\" [item]=\"searchItem\" [parentModel]=\"toolbox\"\n [isCompact]=\"toolbox.isCompactRendered\"></svc-toolbox-tool>\n </ng-container>\n <svc-search [model]=\"toolbox.searchManager\"></svc-search>\n <div class=\"svc-toolbox__category-separator svc-toolbox__category-separator--search\"></div>\n </div>\n <div *ngIf=\"toolbox.showPlaceholder\" class=\"svc-toolbox__placeholder\">{{toolbox.toolboxNoResultsFound}}</div>\n <sv-scroll>\n <ng-container *ngIf=\"!toolbox.showInSingleCategory\">\n <svc-toolbox-category *ngFor=\"let category of toolbox.categories\" [category]=\"category\"\n [toolbox]=\"toolbox\"></svc-toolbox-category>\n </ng-container>\n <ng-container *ngIf=\"toolbox.showInSingleCategory\">\n <div class=\"svc-toolbox__category\">\n <ng-container *ngFor=\"let item of toolbox.renderedActions; trackBy: trackItemBy\">\n <svc-toolbox-tool [creator]=\"creator\" [item]=\"item\" [parentModel]=\"toolbox\"\n [isCompact]=\"toolbox.isCompactRendered\"></svc-toolbox-tool>\n </ng-container>\n </div>\n </ng-container>\n </sv-scroll>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "parentModel", "isCompact"] }, { type: SearchComponent, selector: "svc-search", inputs: ["model"] }, { type: i1__namespace.ScrollComponent, selector: "sv-scroll", inputs: ["disabled", "onInnerHeightChanged"] }, { type: ToolboxCategoryComponent, selector: "svc-toolbox-category ", inputs: ["category", "toolbox"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
972
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AdaptiveToolboxComponent, decorators: [{
973
- type: i0.Component,
974
- args: [{
975
- selector: "svc-toolbox",
976
- templateUrl: "./adaptive-toolbox.component.html",
977
- styles: [":host { display: none; }"]
978
- }]
979
- }], propDecorators: { model: [{
980
- type: i0.Input
981
- }], container: [{
982
- type: i0.ViewChild,
983
- args: ["container"]
984
- }] } });
985
- i1.AngularComponentFactory.Instance.registerComponent("svc-toolbox", AdaptiveToolboxComponent);
986
-
987
- var SurfacePlaceholderComponent = /** @class */ (function (_super) {
988
- __extends(SurfacePlaceholderComponent, _super);
989
- function SurfacePlaceholderComponent() {
990
- return _super !== null && _super.apply(this, arguments) || this;
991
- }
992
- return SurfacePlaceholderComponent;
993
- }(i1.EmbeddedViewContentComponent));
994
- SurfacePlaceholderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurfacePlaceholderComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
995
- SurfacePlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurfacePlaceholderComponent, selector: "svc-surface-placeholder", inputs: { name: "name", placeholderTitleText: "placeholderTitleText", placeholderDescriptionText: "placeholderDescriptionText" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-surface-placeholder\">\n <div class=\"svc-surface-placeholder__image\" [class]=\"'svc-surface-placeholder__image--' + name\"></div>\n <div class=\"svc-surface-placeholder__text\">\n <div class=\"svc-surface-placeholder__title\">{{placeholderTitleText}}</div>\n <div class=\"svc-surface-placeholder__description\">{{placeholderDescriptionText}}</div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"] });
996
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurfacePlaceholderComponent, decorators: [{
997
- type: i0.Component,
998
- args: [{
999
- selector: "svc-surface-placeholder",
1000
- templateUrl: "./surface-placeholder.component.html",
1001
- styles: [":host { display: none; }"]
1002
- }]
1003
- }], propDecorators: { name: [{
1004
- type: i0.Input
1005
- }], placeholderTitleText: [{
1006
- type: i0.Input
1007
- }], placeholderDescriptionText: [{
1008
- type: i0.Input
1009
- }] } });
1010
- i1.AngularComponentFactory.Instance.registerComponent("svc-surface-placeholder", SurfacePlaceholderComponent);
1011
-
1012
823
  var PageElementContentComponent = /** @class */ (function (_super) {
1013
824
  __extends(PageElementContentComponent, _super);
1014
825
  function PageElementContentComponent() {
@@ -1284,7 +1095,7 @@
1284
1095
  return DesignerTabComponent;
1285
1096
  }(i1.BaseAngular));
1286
1097
  DesignerTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerTabComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1287
- DesignerTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerTabComponent, selector: "svc-tab-designer", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-flex-column\">\n <svc-toolbox *ngIf=\"model.isToolboxVisible\" [model]=\"creator\"></svc-toolbox>\n </div>\n <div class=\"svc-tab-designer\" [class]=\"model.getRootCss()\" (click)=\"model.clickDesigner()\">\n <sv-scroll>\n <div class=\"svc-tab-designer_content\">\n <ng-container *ngIf=\"model.showPlaceholder\">\n <div *ngIf=\"creator.showHeaderInEmptySurvey && creator.allowEditSurveyTitle\" class=\"svc-designer-header\">\n <div *ngIf=\"survey.renderedHasHeader\" [class]=\"survey.css.header\" [survey]=\"survey\" sv-ng-survey-header>\n </div>\n </div>\n <div class=\"svc-designer__placeholder-container\" [attr.data-sv-drop-target-survey-element]=\"'newGhostPage'\">\n <svc-surface-placeholder [name]=\"'designer'\" [placeholderTitleText]=\"model.placeholderTitleText\"\n [placeholderDescriptionText]=\"model.placeholderDescriptionText\">\n </svc-surface-placeholder>\n <div class=\"svc-designer-placeholder-page\">\n <svc-page [model]=\"model.newPage\" [survey]=\"survey\" [creator]=\"creator\" [isGhost]=\"true\"></svc-page>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!model.showPlaceholder\">\n <svc-designer-survey [model]=\"model\"></svc-designer-survey>\n </ng-container>\n </div>\n </sv-scroll>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: AdaptiveToolboxComponent, selector: "svc-toolbox", inputs: ["model"] }, { type: i1__namespace.ScrollComponent, selector: "sv-scroll", inputs: ["disabled", "onInnerHeightChanged"] }, { type: i1__namespace.SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: SurfacePlaceholderComponent, selector: "svc-surface-placeholder", inputs: ["name", "placeholderTitleText", "placeholderDescriptionText"] }, { type: PageDesignerComponent, selector: "svc-page", inputs: ["model", "survey", "creator", "isGhost"] }, { type: DesignerSurveyComponent, selector: "svc-designer-survey", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1098
+ DesignerTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerTabComponent, selector: "svc-tab-designer", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-flex-column\">\n <ng-container *ngIf=\"model.isToolboxVisible\">\n <ng-template [component]=\"{name: 'svc-toolbox', data: { model: creator }}\"></ng-template>\n </ng-container>\n </div>\n <div class=\"svc-tab-designer\" [class]=\"model.getRootCss()\" (click)=\"model.clickDesigner()\">\n <sv-scroll>\n <div class=\"svc-tab-designer_content\">\n <ng-container *ngIf=\"model.showPlaceholder\">\n <div *ngIf=\"creator.showHeaderInEmptySurvey && creator.allowEditSurveyTitle\" class=\"svc-designer-header\">\n <div *ngIf=\"survey.renderedHasHeader\" [class]=\"survey.css.header\" [survey]=\"survey\" sv-ng-survey-header>\n </div>\n </div>\n <div class=\"svc-designer__placeholder-container\" [attr.data-sv-drop-target-survey-element]=\"'newGhostPage'\">\n <svc-surface-placeholder [name]=\"'designer'\" [placeholderTitleText]=\"model.placeholderTitleText\"\n [placeholderDescriptionText]=\"model.placeholderDescriptionText\">\n </svc-surface-placeholder>\n <div class=\"svc-designer-placeholder-page\">\n <svc-page [model]=\"model.newPage\" [survey]=\"survey\" [creator]=\"creator\" [isGhost]=\"true\"></svc-page>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!model.showPlaceholder\">\n <svc-designer-survey [model]=\"model\"></svc-designer-survey>\n </ng-container>\n </div>\n </sv-scroll>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.ScrollComponent, selector: "sv-scroll", inputs: ["disabled", "onInnerHeightChanged"] }, { type: i1__namespace.SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: SurfacePlaceholderComponent, selector: "svc-surface-placeholder", inputs: ["name", "placeholderTitleText", "placeholderDescriptionText"] }, { type: PageDesignerComponent, selector: "svc-page", inputs: ["model", "survey", "creator", "isGhost"] }, { type: DesignerSurveyComponent, selector: "svc-designer-survey", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
1288
1099
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerTabComponent, decorators: [{
1289
1100
  type: i0.Component,
1290
1101
  args: [{
@@ -1511,6 +1322,30 @@
1511
1322
  }] } });
1512
1323
  i1.AngularComponentFactory.Instance.registerComponent("svc-object-selector", ObjectSelectorComponent);
1513
1324
 
1325
+ var SearchComponent = /** @class */ (function (_super) {
1326
+ __extends(SearchComponent, _super);
1327
+ function SearchComponent() {
1328
+ return _super !== null && _super.apply(this, arguments) || this;
1329
+ }
1330
+ SearchComponent.prototype.getModel = function () {
1331
+ return this.model;
1332
+ };
1333
+ return SearchComponent;
1334
+ }(i1.BaseAngular));
1335
+ SearchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SearchComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1336
+ SearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SearchComponent, selector: "svc-search", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"model.isVisible\" class=\"svc-search\">\n <div class=\"svc-search__search-icon\">\n <svg [iconName]=\"'icon-search'\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </div>\n <input type=\"text\" class=\"svc-search__input\" [(ngModel)]=\"model.filterString\"\n [attr.aria-label]=\"model.filterStringPlaceholder\" [attr.placeholder]=\"model.filterStringPlaceholder\" />\n <div class=\"svc-search__toolbar\">\n <div class=\"svc-search__toolbar-counter\">{{model.matchCounterText}}</div>\n <sv-action-bar [model]=\"model.searchActionBar\"></sv-action-bar>\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"] }, { 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"] }, { type: i3__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
1337
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SearchComponent, decorators: [{
1338
+ type: i0.Component,
1339
+ args: [{
1340
+ selector: "svc-search",
1341
+ templateUrl: "./search.component.html",
1342
+ styles: [":host { display: none; }"]
1343
+ }]
1344
+ }], propDecorators: { model: [{
1345
+ type: i0.Input
1346
+ }] } });
1347
+ i1.AngularComponentFactory.Instance.registerComponent("svc-search", SearchComponent);
1348
+
1514
1349
  var PropertyGridComponent = /** @class */ (function (_super) {
1515
1350
  __extends(PropertyGridComponent, _super);
1516
1351
  function PropertyGridComponent() {
@@ -2576,6 +2411,143 @@
2576
2411
  }] });
2577
2412
  i1.AngularComponentFactory.Instance.registerComponent("svc-panel", PanelDesignerComponent);
2578
2413
 
2414
+ var ToolboxToolComponent = /** @class */ (function (_super) {
2415
+ __extends(ToolboxToolComponent, _super);
2416
+ function ToolboxToolComponent() {
2417
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
2418
+ _this.isCompact = false;
2419
+ return _this;
2420
+ }
2421
+ ToolboxToolComponent.prototype.createModel = function () {
2422
+ this.model = new surveyCreatorCore.ToolboxToolViewModel(this.item, this.creator, this.parentModel);
2423
+ };
2424
+ ToolboxToolComponent.prototype.getPropertiesToTrack = function () {
2425
+ return ["creator", "item"];
2426
+ };
2427
+ ToolboxToolComponent.prototype.getModel = function () {
2428
+ return this.item;
2429
+ };
2430
+ Object.defineProperty(ToolboxToolComponent.prototype, "itemCssClasses", {
2431
+ get: function () {
2432
+ return this.item.css;
2433
+ },
2434
+ enumerable: false,
2435
+ configurable: true
2436
+ });
2437
+ ToolboxToolComponent.prototype.ngOnDestroy = function () {
2438
+ _super.prototype.ngOnDestroy.call(this);
2439
+ this.model.dispose();
2440
+ this.item.updateModeCallback = undefined;
2441
+ };
2442
+ ToolboxToolComponent.prototype.ngAfterViewInit = function () {
2443
+ var _this = this;
2444
+ if (this.item) {
2445
+ this.item.updateModeCallback = function (mode, callback) {
2446
+ var _a;
2447
+ _this.item.mode = mode;
2448
+ callback(mode, (_a = _this.container) === null || _a === void 0 ? void 0 : _a.nativeElement);
2449
+ };
2450
+ queueMicrotask(function () {
2451
+ _this.item.afterRender();
2452
+ });
2453
+ }
2454
+ };
2455
+ return ToolboxToolComponent;
2456
+ }(CreatorModelComponent));
2457
+ ToolboxToolComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxToolComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
2458
+ ToolboxToolComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: { creator: "creator", item: "item", parentModel: "parentModel", isCompact: "isCompact" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"itemCssClasses\" #container>\n <div class=\"svc-toolbox__category-separator\" *ngIf=\"item.needSeparator && !creator.toolbox.showCategoryTitles\">\n </div>\n <div class=\"svc-toolbox__tool-content sv-action__content\" (pointerdown)=\"model.onPointerDown($event)\">\n <ng-template [component]=\"{ name: model.itemComponent, default: 'svc-toolbox-item', \n data: { model: item, viewModel: model, creator: creator, isCompact: isCompact } }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
2459
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxToolComponent, decorators: [{
2460
+ type: i0.Component,
2461
+ args: [{
2462
+ selector: "svc-toolbox-tool",
2463
+ templateUrl: "./toolbox-tool.component.html",
2464
+ styles: [":host { display: none; }"]
2465
+ }]
2466
+ }], propDecorators: { creator: [{
2467
+ type: i0.Input
2468
+ }], item: [{
2469
+ type: i0.Input
2470
+ }], parentModel: [{
2471
+ type: i0.Input
2472
+ }], isCompact: [{
2473
+ type: i0.Input
2474
+ }], container: [{
2475
+ type: i0.ViewChild,
2476
+ args: ["container"]
2477
+ }] } });
2478
+
2479
+ var AdaptiveToolboxComponent = /** @class */ (function (_super) {
2480
+ __extends(AdaptiveToolboxComponent, _super);
2481
+ function AdaptiveToolboxComponent() {
2482
+ return _super !== null && _super.apply(this, arguments) || this;
2483
+ }
2484
+ Object.defineProperty(AdaptiveToolboxComponent.prototype, "toolbox", {
2485
+ get: function () {
2486
+ return this.model.toolbox;
2487
+ },
2488
+ enumerable: false,
2489
+ configurable: true
2490
+ });
2491
+ Object.defineProperty(AdaptiveToolboxComponent.prototype, "creator", {
2492
+ get: function () {
2493
+ return this.model;
2494
+ },
2495
+ enumerable: false,
2496
+ configurable: true
2497
+ });
2498
+ Object.defineProperty(AdaptiveToolboxComponent.prototype, "searchItem", {
2499
+ get: function () {
2500
+ return this.toolbox.searchItem;
2501
+ },
2502
+ enumerable: false,
2503
+ configurable: true
2504
+ });
2505
+ AdaptiveToolboxComponent.prototype.afterRender = function () {
2506
+ var _a;
2507
+ if ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement) {
2508
+ this.toolbox.afterRender(this.container.nativeElement);
2509
+ }
2510
+ };
2511
+ AdaptiveToolboxComponent.prototype.ngAfterViewInit = function () {
2512
+ this.afterRender();
2513
+ };
2514
+ AdaptiveToolboxComponent.prototype.ngAfterViewChecked = function () {
2515
+ _super.prototype.ngAfterViewChecked.call(this);
2516
+ this.afterRender();
2517
+ };
2518
+ AdaptiveToolboxComponent.prototype.afterUpdate = function (isSync) {
2519
+ _super.prototype.afterUpdate.call(this, isSync);
2520
+ this.afterRender();
2521
+ };
2522
+ AdaptiveToolboxComponent.prototype.getModel = function () {
2523
+ return this.toolbox;
2524
+ };
2525
+ AdaptiveToolboxComponent.prototype.ngOnDestroy = function () {
2526
+ this.toolbox.beforeDestroy();
2527
+ _super.prototype.ngOnDestroy.call(this);
2528
+ };
2529
+ AdaptiveToolboxComponent.prototype.trackItemBy = function (_, item) {
2530
+ return item.renderedId;
2531
+ };
2532
+ return AdaptiveToolboxComponent;
2533
+ }(i1.BaseAngular));
2534
+ AdaptiveToolboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AdaptiveToolboxComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
2535
+ AdaptiveToolboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AdaptiveToolboxComponent, selector: "svc-toolbox", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"toolbox.classNames\" #container [style]=\"toolbox.getRootStyle()\">\n <div (focusout)=\"toolbox.focusOut($event)\" class=\"svc-toolbox__panel\">\n <div *ngIf=\"toolbox.showSearch\" class=\"svc-toolbox__search-container\">\n <ng-container *ngIf=\"toolbox.isCompactRendered\">\n <svc-toolbox-tool [creator]=\"creator\" [item]=\"searchItem\" [parentModel]=\"toolbox\"\n [isCompact]=\"toolbox.isCompactRendered\"></svc-toolbox-tool>\n </ng-container>\n <svc-search [model]=\"toolbox.searchManager\"></svc-search>\n <div class=\"svc-toolbox__category-separator svc-toolbox__category-separator--search\"></div>\n </div>\n <div *ngIf=\"toolbox.showPlaceholder\" class=\"svc-toolbox__placeholder\">{{toolbox.toolboxNoResultsFound}}</div>\n <sv-scroll>\n <ng-container *ngIf=\"!toolbox.showInSingleCategory\">\n <ng-container *ngFor=\"let category of toolbox.categories\">\n <ng-template [component]=\"{name: 'svc-toolbox-category', data: { category: category, toolbox: toolbox }}\"></ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"toolbox.showInSingleCategory\">\n <div class=\"svc-toolbox__category\">\n <ng-container *ngFor=\"let item of toolbox.renderedActions; trackBy: trackItemBy\">\n <svc-toolbox-tool [creator]=\"creator\" [item]=\"item\" [parentModel]=\"toolbox\"\n [isCompact]=\"toolbox.isCompactRendered\"></svc-toolbox-tool>\n </ng-container>\n </div>\n </ng-container>\n </sv-scroll>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "parentModel", "isCompact"] }, { type: SearchComponent, selector: "svc-search", inputs: ["model"] }, { type: i1__namespace.ScrollComponent, selector: "sv-scroll", inputs: ["disabled", "onInnerHeightChanged"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
2536
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AdaptiveToolboxComponent, decorators: [{
2537
+ type: i0.Component,
2538
+ args: [{
2539
+ selector: "svc-toolbox",
2540
+ templateUrl: "./adaptive-toolbox.component.html",
2541
+ styles: [":host { display: none; }"]
2542
+ }]
2543
+ }], propDecorators: { model: [{
2544
+ type: i0.Input
2545
+ }], container: [{
2546
+ type: i0.ViewChild,
2547
+ args: ["container"]
2548
+ }] } });
2549
+ i1.AngularComponentFactory.Instance.registerComponent("svc-toolbox", AdaptiveToolboxComponent);
2550
+
2579
2551
  var ToolboxItemComponent = /** @class */ (function (_super) {
2580
2552
  __extends(ToolboxItemComponent, _super);
2581
2553
  function ToolboxItemComponent() {
@@ -2680,6 +2652,35 @@
2680
2652
  }] } });
2681
2653
  i1.AngularComponentFactory.Instance.registerComponent("svc-toolbox-list", ToolboxListComponent);
2682
2654
 
2655
+ var ToolboxCategoryComponent = /** @class */ (function (_super) {
2656
+ __extends(ToolboxCategoryComponent, _super);
2657
+ function ToolboxCategoryComponent() {
2658
+ return _super !== null && _super.apply(this, arguments) || this;
2659
+ }
2660
+ ToolboxCategoryComponent.prototype.getModel = function () {
2661
+ return this.category;
2662
+ };
2663
+ ToolboxCategoryComponent.prototype.trackItemBy = function (_, item) {
2664
+ return item.renderedId;
2665
+ };
2666
+ return ToolboxCategoryComponent;
2667
+ }(i1.BaseAngular));
2668
+ ToolboxCategoryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxCategoryComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
2669
+ ToolboxCategoryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ToolboxCategoryComponent, selector: "svc-toolbox-category ", inputs: { category: "category", toolbox: "toolbox" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-toolbox__category\" [class.svc-toolbox__category--collapsed]=\"category.collapsed\"\n [class.svc-toolbox__category--empty]=\"category.empty\">\n <div class=\"svc-toolbox__category-header-wrapper\">\n <div class=\"svc-toolbox__category-header\"\n (click)=\"category.toggleState()\" [key2click] [class.svc-toolbox__category-header--collapsed]=\"toolbox.canCollapseCategories\" >\n <span class=\"svc-toolbox__category-title\">{{category.title}}</span>\n <div *ngIf=\"toolbox.canCollapseCategories\" class=\"svc-toolbox__category-header__controls\">\n <svg [iconName]=\"category.iconName\" [class]=\"category.iconClassName\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </div>\n </div>\n </div>\n <ng-container *ngFor=\"let item of category.items; trackBy: trackItemBy\">\n <svc-toolbox-tool [item]=\"item\" [creator]=\"toolbox.creator\" [parentModel]=\"toolbox\" [isCompact]=\"false\" ></svc-toolbox-tool>\n </ng-container>\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"] }, { type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "parentModel", "isCompact"] }], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2670
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxCategoryComponent, decorators: [{
2671
+ type: i0.Component,
2672
+ args: [{
2673
+ selector: "svc-toolbox-category ",
2674
+ templateUrl: "./toolbox-category.component.html",
2675
+ styles: [":host { display: none; }"]
2676
+ }]
2677
+ }], propDecorators: { category: [{
2678
+ type: i0.Input
2679
+ }], toolbox: [{
2680
+ type: i0.Input
2681
+ }] } });
2682
+ i1.AngularComponentFactory.Instance.registerComponent("svc-toolbox-category", ToolboxCategoryComponent);
2683
+
2683
2684
  var StringEditorComponent = /** @class */ (function (_super) {
2684
2685
  __extends(StringEditorComponent, _super);
2685
2686
  function StringEditorComponent(cdr, vcr, ngZone) {