@stratusjs/angular 0.6.0 → 0.6.2

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,6 +1,6 @@
1
1
  System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/environment', '@stratusjs/angularjs/services/model', '@stratusjs/angularjs/services/registry', '@stratusjs/core/events/eventManager', 'html2pdf', 'font-awesome', 'froala-plugins', 'froala-embedly', 'froala-font-awesome', 'froala-image-tui', 'froala-editor', '@stratusjs/core/datastore/xhr', '@agentepsilon/decko', '@stratusjs/core/misc', '@stratusjs/angularjs/services/collection', 'zone.js/dist/zone'], (function (exports) {
2
2
  'use strict';
3
- var Stratus, _, uniqueId$3, snakeCase, head, isEmpty, isUndefined, isString, extend$1, debounce$2, isNumber, isBoolean, isArray$1, isFunction$1, isNil, includes, set, isObject$2, assignIn, forEach, cookie, Model, Registry, EventManager$1, FroalaEditor, XHR, debounce$1, safeUniqueId, isJSON, Collection;
3
+ var Stratus, _, uniqueId$3, snakeCase, head, isEmpty, isUndefined, isString, extend$1, debounce$2, isNumber, isBoolean, isArray$1, isFunction$1, set, isNil, includes, isObject$2, assignIn, forEach, cookie, Model, Registry, EventManager$1, FroalaEditor, XHR, debounce$1, safeUniqueId, isJSON, Collection;
4
4
  return {
5
5
  setters: [function (module) {
6
6
  Stratus = module.Stratus;
@@ -18,9 +18,9 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
18
18
  isBoolean = module.isBoolean;
19
19
  isArray$1 = module.isArray;
20
20
  isFunction$1 = module.isFunction;
21
+ set = module.set;
21
22
  isNil = module.isNil;
22
23
  includes = module.includes;
23
- set = module.set;
24
24
  isObject$2 = module.isObject;
25
25
  assignIn = module.assignIn;
26
26
  forEach = module.forEach;
@@ -127576,14 +127576,26 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
127576
127576
  this.info = new google.maps.InfoWindow({
127577
127577
  maxWidth: 250
127578
127578
  });
127579
+ const initialize = () => {
127580
+ if (!this.initialized) {
127581
+ this.updateWidgetSize();
127582
+ this.processProvidedMarkersPath();
127583
+ this.processProvidedCallback();
127584
+ this.initialized = true;
127585
+ this.initializing = false;
127586
+ }
127587
+ };
127579
127588
  const stopListeningForIdle = this.map.addListener('idle', () => {
127580
127589
  stopListeningForIdle.remove();
127581
- this.updateWidgetSize();
127582
- this.processProvidedMarkersPath();
127583
- this.processProvidedCallback();
127584
- this.initialized = true;
127585
- this.initializing = false;
127590
+ initialize();
127586
127591
  });
127592
+ setTimeout(() => {
127593
+ if (stopListeningForIdle) {
127594
+ stopListeningForIdle.remove();
127595
+ console.warn(this.uid, 'Google maps may be getting blocked. Forcing initialization anyways.');
127596
+ initialize();
127597
+ }
127598
+ }, 6000);
127587
127599
  }
127588
127600
  catch (e) {
127589
127601
  console.error(this.uid, 'could not Init', e);
@@ -127735,7 +127747,11 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
127735
127747
  }
127736
127748
  processProvidedCallback() {
127737
127749
  if (isString(this.callback)) {
127738
- this.callback = this.watcher.getFromPath(window, this.callback);
127750
+ let callbackFunc = this.watcher.getFromPath(window, this.callback);
127751
+ if (!isFunction$1(callbackFunc)) {
127752
+ callbackFunc = this.watcher.getFromPath(Stratus.Instances, this.callback);
127753
+ }
127754
+ this.callback = callbackFunc;
127739
127755
  }
127740
127756
  if (isFunction$1(this.callback)) {
127741
127757
  this.callback(this);
@@ -127758,7 +127774,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
127758
127774
  return;
127759
127775
  }
127760
127776
  try {
127761
- yield Stratus.Internals.JsLoader(`https://maps.googleapis.com/maps/api/js?key=${this.googleMapsKey}`);
127777
+ set(window, 'googleMapDummyFunc', () => { });
127778
+ yield Stratus.Internals.JsLoader(`https://maps.googleapis.com/maps/api/js?key=${this.googleMapsKey}&callback=googleMapDummyFunc`);
127762
127779
  }
127763
127780
  catch (e) {
127764
127781
  console.error('Google Maps Api could not be fetched, cannot continue');
@@ -128007,15 +128024,18 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
128007
128024
  };
128008
128025
  MapModule = __decorate$8([
128009
128026
  NgModule({
128027
+ imports: [
128028
+ BrowserModule,
128029
+ CommonModule,
128030
+ GoogleMapsModule,
128031
+ MaterialModules
128032
+ ],
128010
128033
  declarations: [
128011
128034
  MapComponent
128012
128035
  ],
128013
128036
  entryComponents: [
128014
128037
  MapComponent
128015
128038
  ],
128016
- imports: [
128017
- GoogleMapsModule
128018
- ],
128019
128039
  exports: [
128020
128040
  MapComponent
128021
128041
  ],
@@ -129056,6 +129076,13 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
129056
129076
  };
129057
129077
  StripeModule = __decorate$1([
129058
129078
  NgModule({
129079
+ imports: [
129080
+ BrowserModule,
129081
+ CommonModule,
129082
+ FormsModule,
129083
+ MaterialModules,
129084
+ ReactiveFormsModule,
129085
+ ],
129059
129086
  declarations: [
129060
129087
  StripePaymentMethodComponent,
129061
129088
  StripePaymentMethodItemComponent,
@@ -160665,6 +160692,42 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
160665
160692
  })
160666
160693
  .catch(err => console.error('@stratusjs/angular failed to initialize!', err));
160667
160694
 
160695
+ System.register(["quill", "@stratusjs/core/environment"], function (exports_1, context_1) {
160696
+ var quill_1, environment_1, Break, Embed, QuillBreak;
160697
+ context_1 && context_1.id;
160698
+ return {
160699
+ setters: [
160700
+ function (quill_1_1) {
160701
+ quill_1 = quill_1_1;
160702
+ },
160703
+ function (environment_1_1) {
160704
+ environment_1 = environment_1_1;
160705
+ }
160706
+ ],
160707
+ execute: function () {
160708
+ Break = quill_1.default.import('blots/break');
160709
+ Embed = quill_1.default.import('blots/embed');
160710
+ QuillBreak = class QuillBreak extends Break {
160711
+ length() {
160712
+ return 1;
160713
+ }
160714
+ value() {
160715
+ return '\n';
160716
+ }
160717
+ insertInto(parent, ref) {
160718
+ if (environment_1.cookie('env')) {
160719
+ console.log('insertInto:', parent, ref);
160720
+ }
160721
+ Embed.prototype.insertInto.call(this, parent, ref);
160722
+ }
160723
+ };
160724
+ exports_1("QuillBreak", QuillBreak);
160725
+ QuillBreak.blotName = 'break';
160726
+ QuillBreak.tagName = 'BR';
160727
+ }
160728
+ };
160729
+ });
160730
+
160668
160731
  System.register(["quill"], function (exports_1, context_1) {
160669
160732
  var quill_1, debug, Logger, QuillHtmlEditPlugin;
160670
160733
  context_1 && context_1.id;
@@ -160824,42 +160887,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
160824
160887
  };
160825
160888
  });
160826
160889
 
160827
- System.register(["quill", "@stratusjs/core/environment"], function (exports_1, context_1) {
160828
- var quill_1, environment_1, Break, Embed, QuillBreak;
160829
- context_1 && context_1.id;
160830
- return {
160831
- setters: [
160832
- function (quill_1_1) {
160833
- quill_1 = quill_1_1;
160834
- },
160835
- function (environment_1_1) {
160836
- environment_1 = environment_1_1;
160837
- }
160838
- ],
160839
- execute: function () {
160840
- Break = quill_1.default.import('blots/break');
160841
- Embed = quill_1.default.import('blots/embed');
160842
- QuillBreak = class QuillBreak extends Break {
160843
- length() {
160844
- return 1;
160845
- }
160846
- value() {
160847
- return '\n';
160848
- }
160849
- insertInto(parent, ref) {
160850
- if (environment_1.cookie('env')) {
160851
- console.log('insertInto:', parent, ref);
160852
- }
160853
- Embed.prototype.insertInto.call(this, parent, ref);
160854
- }
160855
- };
160856
- exports_1("QuillBreak", QuillBreak);
160857
- QuillBreak.blotName = 'break';
160858
- QuillBreak.tagName = 'BR';
160859
- }
160860
- };
160861
- });
160862
-
160863
160890
  System.register(["quill"], function (exports_1, context_1) {
160864
160891
  var quill_1, BaseImage, ATTRIBUTES, QuillImageFormatPlugin;
160865
160892
  context_1 && context_1.id;
@@ -161045,41 +161072,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161045
161072
  };
161046
161073
  });
161047
161074
 
161048
- System.register(["@angular/core", "@stratusjs/angular/froala/editor/froala-editor.directive"], function (exports_1, context_1) {
161049
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
161050
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
161051
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
161052
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
161053
- return c > 3 && r && Object.defineProperty(target, key, r), r;
161054
- };
161055
- var FroalaEditorModule_1, core_1, froala_editor_directive_1, FroalaEditorModule;
161056
- context_1 && context_1.id;
161057
- return {
161058
- setters: [
161059
- function (core_1_1) {
161060
- core_1 = core_1_1;
161061
- },
161062
- function (froala_editor_directive_1_1) {
161063
- froala_editor_directive_1 = froala_editor_directive_1_1;
161064
- }
161065
- ],
161066
- execute: function () {
161067
- FroalaEditorModule = FroalaEditorModule_1 = class FroalaEditorModule {
161068
- static forRoot() {
161069
- return { ngModule: FroalaEditorModule_1, providers: [] };
161070
- }
161071
- };
161072
- FroalaEditorModule = FroalaEditorModule_1 = __decorate([
161073
- core_1.NgModule({
161074
- declarations: [froala_editor_directive_1.FroalaEditorDirective],
161075
- exports: [froala_editor_directive_1.FroalaEditorDirective]
161076
- })
161077
- ], FroalaEditorModule);
161078
- exports_1("FroalaEditorModule", FroalaEditorModule);
161079
- }
161080
- };
161081
- });
161082
-
161083
161075
  System.register(["@angular/forms", "@angular/core", "froala-editor"], function (exports_1, context_1) {
161084
161076
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
161085
161077
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -161403,6 +161395,41 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161403
161395
  };
161404
161396
  });
161405
161397
 
161398
+ System.register(["@angular/core", "@stratusjs/angular/froala/editor/froala-editor.directive"], function (exports_1, context_1) {
161399
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
161400
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
161401
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
161402
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
161403
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
161404
+ };
161405
+ var FroalaEditorModule_1, core_1, froala_editor_directive_1, FroalaEditorModule;
161406
+ context_1 && context_1.id;
161407
+ return {
161408
+ setters: [
161409
+ function (core_1_1) {
161410
+ core_1 = core_1_1;
161411
+ },
161412
+ function (froala_editor_directive_1_1) {
161413
+ froala_editor_directive_1 = froala_editor_directive_1_1;
161414
+ }
161415
+ ],
161416
+ execute: function () {
161417
+ FroalaEditorModule = FroalaEditorModule_1 = class FroalaEditorModule {
161418
+ static forRoot() {
161419
+ return { ngModule: FroalaEditorModule_1, providers: [] };
161420
+ }
161421
+ };
161422
+ FroalaEditorModule = FroalaEditorModule_1 = __decorate([
161423
+ core_1.NgModule({
161424
+ declarations: [froala_editor_directive_1.FroalaEditorDirective],
161425
+ exports: [froala_editor_directive_1.FroalaEditorDirective]
161426
+ })
161427
+ ], FroalaEditorModule);
161428
+ exports_1("FroalaEditorModule", FroalaEditorModule);
161429
+ }
161430
+ };
161431
+ });
161432
+
161406
161433
  System.register(["@stratusjs/angular/froala/editor/froala-editor.directive", "@stratusjs/angular/froala/editor/froala-editor.module"], function (exports_1, context_1) {
161407
161434
  context_1 && context_1.id;
161408
161435
  return {