survey-creator-angular 2.2.1 → 2.2.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/bundles/survey-creator-angular.umd.js +38 -14
- package/bundles/survey-creator-angular.umd.js.map +1 -1
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu.component.js +18 -5
- package/esm2015/toolbox/adaptive-toolbox.component.js +18 -9
- package/fesm2015/survey-creator-angular.js +35 -11
- package/fesm2015/survey-creator-angular.js.map +1 -1
- package/package.json +4 -4
- package/tabbed-menu/tabbed-menu/tabbed-menu.component.d.ts +3 -1
- package/toolbox/adaptive-toolbox.component.d.ts +4 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('survey-angular-ui'), require('survey-core'), require('survey-
|
|
3
|
-
typeof define === 'function' && define.amd ? define('survey-creator-angular', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'survey-angular-ui', 'survey-core', 'survey-
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["survey-creator-angular"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.i1, global.
|
|
5
|
-
})(this, (function (exports, i0, i2, i3, i1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('survey-angular-ui'), require('survey-creator-core'), require('survey-core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('survey-creator-angular', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'survey-angular-ui', 'survey-creator-core', 'survey-core'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["survey-creator-angular"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.i1, global.surveyCreatorCore, global.surveyCore));
|
|
5
|
+
})(this, (function (exports, i0, i2, i3, i1, surveyCreatorCore, surveyCore) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -586,12 +586,26 @@
|
|
|
586
586
|
TabbledMenuComponent.prototype.getModel = function () {
|
|
587
587
|
return this.model;
|
|
588
588
|
};
|
|
589
|
+
TabbledMenuComponent.prototype.initResponsivityManager = function () {
|
|
590
|
+
var _a;
|
|
591
|
+
if ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement) {
|
|
592
|
+
this.model.initResponsivityManager(this.container.nativeElement);
|
|
593
|
+
}
|
|
594
|
+
};
|
|
589
595
|
TabbledMenuComponent.prototype.ngAfterViewInit = function () {
|
|
590
|
-
this.
|
|
596
|
+
this.initResponsivityManager();
|
|
597
|
+
};
|
|
598
|
+
TabbledMenuComponent.prototype.afterUpdate = function (isSync) {
|
|
599
|
+
_super.prototype.afterUpdate.call(this, isSync);
|
|
600
|
+
this.initResponsivityManager();
|
|
601
|
+
};
|
|
602
|
+
TabbledMenuComponent.prototype.ngAfterViewChecked = function () {
|
|
603
|
+
_super.prototype.ngAfterViewChecked.call(this);
|
|
604
|
+
this.initResponsivityManager();
|
|
591
605
|
};
|
|
592
606
|
TabbledMenuComponent.prototype.ngOnDestroy = function () {
|
|
593
607
|
_super.prototype.ngOnDestroy.call(this);
|
|
594
|
-
this.
|
|
608
|
+
this.model.resetResponsivityManager();
|
|
595
609
|
};
|
|
596
610
|
TabbledMenuComponent.prototype.trackItemBy = function (_, item) {
|
|
597
611
|
return item.renderedId;
|
|
@@ -599,7 +613,7 @@
|
|
|
599
613
|
return TabbledMenuComponent;
|
|
600
614
|
}(i1.BaseAngular));
|
|
601
615
|
TabbledMenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TabbledMenuComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
602
|
-
TabbledMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TabbledMenuComponent, selector: "svc-tabbed-menu", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-tabbed-menu\" #container role=\"tablist\">\n <ng-container *ngFor=\"let action of model.renderedActions; trackBy: trackItemBy\">\n <svc-tabbed-menu-item-wrapper [model]=\"action\"></svc-tabbed-menu-item-wrapper>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: TabbedMenuItemWrapperComponent, selector: "svc-tabbed-menu-item-wrapper", inputs: ["model"] }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
616
|
+
TabbledMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TabbledMenuComponent, selector: "svc-tabbed-menu", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-tabbed-menu\" #container role=\"tablist\" [style]=\"model.getRootStyle()\">\n <ng-container *ngFor=\"let action of model.renderedActions; trackBy: trackItemBy\">\n <svc-tabbed-menu-item-wrapper [model]=\"action\"></svc-tabbed-menu-item-wrapper>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: TabbedMenuItemWrapperComponent, selector: "svc-tabbed-menu-item-wrapper", inputs: ["model"] }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
603
617
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TabbledMenuComponent, decorators: [{
|
|
604
618
|
type: i0.Component,
|
|
605
619
|
args: [{
|
|
@@ -924,18 +938,28 @@
|
|
|
924
938
|
enumerable: false,
|
|
925
939
|
configurable: true
|
|
926
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
|
+
};
|
|
927
947
|
AdaptiveToolboxComponent.prototype.ngAfterViewInit = function () {
|
|
928
|
-
this.
|
|
929
|
-
|
|
930
|
-
|
|
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();
|
|
931
957
|
};
|
|
932
958
|
AdaptiveToolboxComponent.prototype.getModel = function () {
|
|
933
959
|
return this.toolbox;
|
|
934
960
|
};
|
|
935
961
|
AdaptiveToolboxComponent.prototype.ngOnDestroy = function () {
|
|
936
|
-
|
|
937
|
-
(_a = this.responsivityManager) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
938
|
-
this.toolbox.setRootElement(undefined);
|
|
962
|
+
this.toolbox.beforeDestroy();
|
|
939
963
|
_super.prototype.ngOnDestroy.call(this);
|
|
940
964
|
};
|
|
941
965
|
AdaptiveToolboxComponent.prototype.trackItemBy = function (_, item) {
|
|
@@ -944,7 +968,7 @@
|
|
|
944
968
|
return AdaptiveToolboxComponent;
|
|
945
969
|
}(i1.BaseAngular));
|
|
946
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 });
|
|
947
|
-
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>\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"] }] });
|
|
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"] }] });
|
|
948
972
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AdaptiveToolboxComponent, decorators: [{
|
|
949
973
|
type: i0.Component,
|
|
950
974
|
args: [{
|