survey-angular-ui 1.12.11 → 1.12.12

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.
@@ -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.svgContainer.nativeElement.innerHTML = Survey.SvgRegistry.iconsRenderedHtml();
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
  }());
@@ -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) {