survey-angular-ui 1.12.11 → 1.12.13
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-angular-ui.umd.js +23 -6
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/text-area/text-area.component.d.ts +3 -2
- package/esm2015/components/element-title/element-title.component.js +2 -2
- package/esm2015/components/text-area/text-area.component.js +4 -1
- package/esm2015/survey.component.js +7 -1
- package/esm2015/svgbundle.component.js +14 -2
- package/fesm2015/survey-angular-ui.js +23 -3
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
- package/svgbundle.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('survey-core'), require('@angular/cdk/portal'), require('@angular/common'), require('@angular/forms'), require('@angular/platform-browser')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('survey-angular-ui', ['exports', '@angular/core', 'survey-core', '@angular/cdk/portal', '@angular/common', '@angular/forms', '@angular/platform-browser'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["survey-angular-ui"] = {}, global.ng.core, global.Survey, global.ng.cdk.portal, global.ng.common, global.ng.forms, global.ng.platformBrowser));
|
|
5
|
-
})(this, (function (exports, i0, Survey, portal, i2, i2$1, i1) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('survey-core'), require('survey-core/icons/iconsV1'), require('survey-core/icons/iconsV2'), require('@angular/cdk/portal'), require('@angular/common'), require('@angular/forms'), require('@angular/platform-browser')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('survey-angular-ui', ['exports', '@angular/core', 'survey-core', 'survey-core/icons/iconsV1', 'survey-core/icons/iconsV2', '@angular/cdk/portal', '@angular/common', '@angular/forms', '@angular/platform-browser'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["survey-angular-ui"] = {}, global.ng.core, global.Survey, global.iconsV1, global.iconsV2, global.ng.cdk.portal, global.ng.common, global.ng.forms, global.ng.platformBrowser));
|
|
5
|
+
})(this, (function (exports, i0, Survey, iconsV1, iconsV2, portal, i2, i2$1, i1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -1037,9 +1037,20 @@
|
|
|
1037
1037
|
|
|
1038
1038
|
var SvgBundleComponent = /** @class */ (function () {
|
|
1039
1039
|
function SvgBundleComponent() {
|
|
1040
|
+
var _this = this;
|
|
1041
|
+
this.onIconsChanged = function () {
|
|
1042
|
+
var _a;
|
|
1043
|
+
if (!!((_a = _this.svgContainer) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
1044
|
+
_this.svgContainer.nativeElement.innerHTML = Survey.SvgRegistry.iconsRenderedHtml();
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1040
1047
|
}
|
|
1041
1048
|
SvgBundleComponent.prototype.ngOnInit = function () {
|
|
1042
|
-
this.
|
|
1049
|
+
this.onIconsChanged();
|
|
1050
|
+
Survey.SvgRegistry.onIconsChanged.add(this.onIconsChanged);
|
|
1051
|
+
};
|
|
1052
|
+
SvgBundleComponent.prototype.ngOnDestroy = function () {
|
|
1053
|
+
Survey.SvgRegistry.onIconsChanged.remove(this.onIconsChanged);
|
|
1043
1054
|
};
|
|
1044
1055
|
return SvgBundleComponent;
|
|
1045
1056
|
}());
|
|
@@ -1206,7 +1217,7 @@
|
|
|
1206
1217
|
return ElementTitleComponent;
|
|
1207
1218
|
}(EmbeddedViewContentComponent));
|
|
1208
1219
|
ElementTitleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementTitleComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1209
|
-
ElementTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: { element: "element" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <sv-ng-dynamic-head [tagName]=\"element.titleTagName\" [element]=\"element\" *ngIf=\"element.hasTitle\">\n <svg *ngIf=\"!element.isExpanded && element.getCssTitleExpandableSvg()\" [iconName]=\"'icon-expand-16x16'\" [partCss]=\"element.getCssTitleExpandableSvg()\" [size]=\"'
|
|
1220
|
+
ElementTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: { element: "element" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <sv-ng-dynamic-head [tagName]=\"element.titleTagName\" [element]=\"element\" *ngIf=\"element.hasTitle\">\n <svg *ngIf=\"!element.isExpanded && element.getCssTitleExpandableSvg()\" [iconName]=\"'icon-expand-16x16'\" [partCss]=\"element.getCssTitleExpandableSvg()\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n <svg *ngIf=\"element.isExpanded && element.getCssTitleExpandableSvg()\" [iconName]=\"'icon-collapse-16x16'\" [partCss]=\"element.getCssTitleExpandableSvg()\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n <sv-ng-element-title-actions [element]=\"element\"></sv-ng-element-title-actions>\n </sv-ng-dynamic-head>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: DynamicHeadComponent, selector: "sv-ng-dynamic-head", inputs: ["tagName", "element"] }, { type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: ElementTitleActionsComponent, selector: "sv-ng-element-title-actions", inputs: ["element"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1210
1221
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementTitleComponent, decorators: [{
|
|
1211
1222
|
type: i0.Component,
|
|
1212
1223
|
args: [{
|
|
@@ -1628,6 +1639,9 @@
|
|
|
1628
1639
|
}] } });
|
|
1629
1640
|
AngularComponentFactory.Instance.registerComponent("survey", SurveyContentComponent);
|
|
1630
1641
|
|
|
1642
|
+
Survey.addIconsToThemeSet("v1", iconsV1.icons);
|
|
1643
|
+
Survey.addIconsToThemeSet("v2", iconsV2.icons);
|
|
1644
|
+
Survey.SvgRegistry.registerIcons(iconsV1.icons);
|
|
1631
1645
|
var SurveyComponent = /** @class */ (function (_super) {
|
|
1632
1646
|
__extends(SurveyComponent, _super);
|
|
1633
1647
|
function SurveyComponent(changeDetectorRef) {
|
|
@@ -1957,6 +1971,9 @@
|
|
|
1957
1971
|
this.model.setElement(element);
|
|
1958
1972
|
}
|
|
1959
1973
|
};
|
|
1974
|
+
TextAreaComponent.prototype.ngOnDestroy = function () {
|
|
1975
|
+
!!this.model && this.model.dispose();
|
|
1976
|
+
};
|
|
1960
1977
|
return TextAreaComponent;
|
|
1961
1978
|
}(EmbeddedViewContentComponent));
|
|
1962
1979
|
TextAreaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextAreaComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|