@colijnit/corecomponents_v12 12.2.18 → 12.2.20

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.
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('rxjs'), require('@angular/platform-browser'), require('@angular/animations'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/cdk/drag-drop'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@colijnit/ioneconnector/build/utils/array-utils'), require('@colijnit/ioneconnector/build/model/default-get-object-configurations-params'), require('@colijnit/ioneconnector/build/model/object-configuration')) :
3
3
  typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/forms', 'rxjs', '@angular/platform-browser', '@angular/animations', '@angular/common', '@angular/common/http', 'rxjs/operators', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/cdk/drag-drop', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/scrolling', '@colijnit/ioneconnector/build/utils/array-utils', '@colijnit/ioneconnector/build/model/default-get-object-configurations-params', '@colijnit/ioneconnector/build/model/object-configuration'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.forms, global.rxjs, global.ng.platformBrowser, global.ng.animations, global.ng.common, global.ng.common.http, global.rxjs.operators, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.cdk.dragDrop, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.scrolling, global.arrayUtils, global.defaultGetObjectConfigurationsParams, global.objectConfiguration));
5
- })(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, dragDrop, overlay, portal, scrolling, arrayUtils, defaultGetObjectConfigurationsParams, objectConfiguration) { 'use strict';
5
+ })(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, dragDrop, i1, portal, scrolling, arrayUtils, defaultGetObjectConfigurationsParams, objectConfiguration) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -24,6 +24,7 @@
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
26
  var TWEEN__namespace = /*#__PURE__*/_interopNamespace(TWEEN);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
28
 
28
29
  /******************************************************************************
29
30
  Copyright (c) Microsoft Corporation.
@@ -9276,7 +9277,7 @@
9276
9277
  .global()
9277
9278
  .centerHorizontally()
9278
9279
  .centerVertically();
9279
- return new overlay.OverlayConfig({
9280
+ return new i1.OverlayConfig({
9280
9281
  hasBackdrop: true,
9281
9282
  backdropClass: 'message-overlay-backdrop',
9282
9283
  panelClass: 'message-overlay',
@@ -9301,13 +9302,14 @@
9301
9302
  };
9302
9303
  return PopupShowerService;
9303
9304
  }());
9305
+ PopupShowerService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PopupShowerService_Factory() { return new PopupShowerService(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef), i0__namespace.ɵɵinject(i1__namespace.Overlay), i0__namespace.ɵɵinject(i0__namespace.INJECTOR)); }, token: PopupShowerService, providedIn: "root" });
9304
9306
  PopupShowerService.decorators = [
9305
- { type: i0.Injectable }
9307
+ { type: i0.Injectable, args: [{ providedIn: "root" },] }
9306
9308
  ];
9307
9309
  PopupShowerService.ctorParameters = function () { return [
9308
9310
  { type: i0.ComponentFactoryResolver },
9309
9311
  { type: i0.ApplicationRef },
9310
- { type: overlay.Overlay },
9312
+ { type: i1.Overlay },
9311
9313
  { type: i0.Injector }
9312
9314
  ]; };
9313
9315
 
@@ -9508,8 +9510,9 @@
9508
9510
  };
9509
9511
  return PromptService;
9510
9512
  }());
9513
+ PromptService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PromptService_Factory() { return new PromptService(i0__namespace.ɵɵinject(PopupShowerService)); }, token: PromptService, providedIn: "root" });
9511
9514
  PromptService.decorators = [
9512
- { type: i0.Injectable }
9515
+ { type: i0.Injectable, args: [{ providedIn: "root" },] }
9513
9516
  ];
9514
9517
  PromptService.ctorParameters = function () { return [
9515
9518
  { type: PopupShowerService }
@@ -9524,7 +9527,7 @@
9524
9527
  providers: [
9525
9528
  PromptService,
9526
9529
  PopupShowerService,
9527
- overlay.Overlay,
9530
+ i1.Overlay,
9528
9531
  IconCacheService
9529
9532
  ]
9530
9533
  };
@@ -13721,6 +13724,112 @@
13721
13724
  },] }
13722
13725
  ];
13723
13726
 
13727
+ var TemplateWrapperDirective = /** @class */ (function () {
13728
+ function TemplateWrapperDirective(viewContainer) {
13729
+ this.viewContainer = viewContainer;
13730
+ this.templateWrapper = null;
13731
+ this.templateWrapperContext = null;
13732
+ }
13733
+ TemplateWrapperDirective.prototype.ngOnChanges = function (changes) {
13734
+ var recreateView = this._shouldRecreateView(changes);
13735
+ if (recreateView) {
13736
+ if (this._viewRef) {
13737
+ this.viewContainer.remove(this.viewContainer.indexOf(this._viewRef));
13738
+ }
13739
+ if (this.templateWrapper) {
13740
+ this._viewRef = this.viewContainer.createEmbeddedView(this.templateWrapper, this.templateWrapperContext);
13741
+ }
13742
+ }
13743
+ else {
13744
+ if (this._viewRef && this.templateWrapperContext) {
13745
+ this._updateExistingContext(this.templateWrapperContext);
13746
+ }
13747
+ }
13748
+ };
13749
+ TemplateWrapperDirective.prototype.ngOnDestroy = function () {
13750
+ if (this._viewRef) {
13751
+ this.viewContainer.remove(this.viewContainer.indexOf(this._viewRef));
13752
+ this._viewRef = undefined;
13753
+ }
13754
+ this.templateWrapper = undefined;
13755
+ };
13756
+ TemplateWrapperDirective.prototype._shouldRecreateView = function (changes) {
13757
+ var ctxChange = changes['templateWrapperContext'];
13758
+ return !!changes['templateWrapper'] || (ctxChange && this._hasContextShapeChanged(ctxChange));
13759
+ };
13760
+ TemplateWrapperDirective.prototype._hasContextShapeChanged = function (ctxChange) {
13761
+ var e_1, _a;
13762
+ var prevCtxKeys = Object.keys(ctxChange.previousValue || {});
13763
+ var currCtxKeys = Object.keys(ctxChange.currentValue || {});
13764
+ if (prevCtxKeys.length === currCtxKeys.length) {
13765
+ try {
13766
+ for (var currCtxKeys_1 = __values(currCtxKeys), currCtxKeys_1_1 = currCtxKeys_1.next(); !currCtxKeys_1_1.done; currCtxKeys_1_1 = currCtxKeys_1.next()) {
13767
+ var propName = currCtxKeys_1_1.value;
13768
+ if (prevCtxKeys.indexOf(propName) === -1) {
13769
+ return true;
13770
+ }
13771
+ }
13772
+ }
13773
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
13774
+ finally {
13775
+ try {
13776
+ if (currCtxKeys_1_1 && !currCtxKeys_1_1.done && (_a = currCtxKeys_1.return)) _a.call(currCtxKeys_1);
13777
+ }
13778
+ finally { if (e_1) throw e_1.error; }
13779
+ }
13780
+ return false;
13781
+ }
13782
+ else {
13783
+ return true;
13784
+ }
13785
+ };
13786
+ TemplateWrapperDirective.prototype._updateExistingContext = function (ctx) {
13787
+ var e_2, _a;
13788
+ try {
13789
+ for (var _b = __values(Object.keys(ctx)), _c = _b.next(); !_c.done; _c = _b.next()) {
13790
+ var propName = _c.value;
13791
+ this._viewRef.context[propName] = this.templateWrapperContext[propName];
13792
+ }
13793
+ }
13794
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
13795
+ finally {
13796
+ try {
13797
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
13798
+ }
13799
+ finally { if (e_2) throw e_2.error; }
13800
+ }
13801
+ };
13802
+ return TemplateWrapperDirective;
13803
+ }());
13804
+ TemplateWrapperDirective.decorators = [
13805
+ { type: i0.Directive, args: [{
13806
+ selector: '[templateWrapper]'
13807
+ },] }
13808
+ ];
13809
+ TemplateWrapperDirective.ctorParameters = function () { return [
13810
+ { type: i0.ViewContainerRef }
13811
+ ]; };
13812
+ TemplateWrapperDirective.propDecorators = {
13813
+ templateWrapper: [{ type: i0.Input }],
13814
+ templateWrapperContext: [{ type: i0.Input }]
13815
+ };
13816
+
13817
+ var TemplateWrapperModule = /** @class */ (function () {
13818
+ function TemplateWrapperModule() {
13819
+ }
13820
+ return TemplateWrapperModule;
13821
+ }());
13822
+ TemplateWrapperModule.decorators = [
13823
+ { type: i0.NgModule, args: [{
13824
+ declarations: [
13825
+ TemplateWrapperDirective
13826
+ ],
13827
+ exports: [
13828
+ TemplateWrapperDirective
13829
+ ]
13830
+ },] }
13831
+ ];
13832
+
13724
13833
  var ColorSequenceService = /** @class */ (function () {
13725
13834
  function ColorSequenceService() {
13726
13835
  this.colors = new Map();
@@ -13855,6 +13964,8 @@
13855
13964
  exports.SimpleGridColumnDirective = SimpleGridColumnDirective;
13856
13965
  exports.SimpleGridComponent = SimpleGridComponent;
13857
13966
  exports.SimpleGridModule = SimpleGridModule;
13967
+ exports.TemplateWrapperDirective = TemplateWrapperDirective;
13968
+ exports.TemplateWrapperModule = TemplateWrapperModule;
13858
13969
  exports.TextInputPopupComponent = TextInputPopupComponent;
13859
13970
  exports.TileComponent = TileComponent;
13860
13971
  exports.TileModule = TileModule;