@stratusjs/angular 0.6.0 → 0.6.1

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;
@@ -127735,7 +127735,11 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
127735
127735
  }
127736
127736
  processProvidedCallback() {
127737
127737
  if (isString(this.callback)) {
127738
- this.callback = this.watcher.getFromPath(window, this.callback);
127738
+ let callbackFunc = this.watcher.getFromPath(window, this.callback);
127739
+ if (!isFunction$1(callbackFunc)) {
127740
+ callbackFunc = this.watcher.getFromPath(Stratus.Instances, this.callback);
127741
+ }
127742
+ this.callback = callbackFunc;
127739
127743
  }
127740
127744
  if (isFunction$1(this.callback)) {
127741
127745
  this.callback(this);
@@ -127758,7 +127762,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
127758
127762
  return;
127759
127763
  }
127760
127764
  try {
127761
- yield Stratus.Internals.JsLoader(`https://maps.googleapis.com/maps/api/js?key=${this.googleMapsKey}`);
127765
+ set(window, 'googleMapDummyFunc', () => { });
127766
+ yield Stratus.Internals.JsLoader(`https://maps.googleapis.com/maps/api/js?key=${this.googleMapsKey}&callback=googleMapDummyFunc`);
127762
127767
  }
127763
127768
  catch (e) {
127764
127769
  console.error('Google Maps Api could not be fetched, cannot continue');
@@ -128007,15 +128012,18 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
128007
128012
  };
128008
128013
  MapModule = __decorate$8([
128009
128014
  NgModule({
128015
+ imports: [
128016
+ BrowserModule,
128017
+ CommonModule,
128018
+ GoogleMapsModule,
128019
+ MaterialModules
128020
+ ],
128010
128021
  declarations: [
128011
128022
  MapComponent
128012
128023
  ],
128013
128024
  entryComponents: [
128014
128025
  MapComponent
128015
128026
  ],
128016
- imports: [
128017
- GoogleMapsModule
128018
- ],
128019
128027
  exports: [
128020
128028
  MapComponent
128021
128029
  ],
@@ -129056,6 +129064,13 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
129056
129064
  };
129057
129065
  StripeModule = __decorate$1([
129058
129066
  NgModule({
129067
+ imports: [
129068
+ BrowserModule,
129069
+ CommonModule,
129070
+ FormsModule,
129071
+ MaterialModules,
129072
+ ReactiveFormsModule,
129073
+ ],
129059
129074
  declarations: [
129060
129075
  StripePaymentMethodComponent,
129061
129076
  StripePaymentMethodItemComponent,
@@ -160665,6 +160680,42 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
160665
160680
  })
160666
160681
  .catch(err => console.error('@stratusjs/angular failed to initialize!', err));
160667
160682
 
160683
+ System.register(["quill", "@stratusjs/core/environment"], function (exports_1, context_1) {
160684
+ var quill_1, environment_1, Break, Embed, QuillBreak;
160685
+ context_1 && context_1.id;
160686
+ return {
160687
+ setters: [
160688
+ function (quill_1_1) {
160689
+ quill_1 = quill_1_1;
160690
+ },
160691
+ function (environment_1_1) {
160692
+ environment_1 = environment_1_1;
160693
+ }
160694
+ ],
160695
+ execute: function () {
160696
+ Break = quill_1.default.import('blots/break');
160697
+ Embed = quill_1.default.import('blots/embed');
160698
+ QuillBreak = class QuillBreak extends Break {
160699
+ length() {
160700
+ return 1;
160701
+ }
160702
+ value() {
160703
+ return '\n';
160704
+ }
160705
+ insertInto(parent, ref) {
160706
+ if (environment_1.cookie('env')) {
160707
+ console.log('insertInto:', parent, ref);
160708
+ }
160709
+ Embed.prototype.insertInto.call(this, parent, ref);
160710
+ }
160711
+ };
160712
+ exports_1("QuillBreak", QuillBreak);
160713
+ QuillBreak.blotName = 'break';
160714
+ QuillBreak.tagName = 'BR';
160715
+ }
160716
+ };
160717
+ });
160718
+
160668
160719
  System.register(["quill"], function (exports_1, context_1) {
160669
160720
  var quill_1, debug, Logger, QuillHtmlEditPlugin;
160670
160721
  context_1 && context_1.id;
@@ -160824,42 +160875,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
160824
160875
  };
160825
160876
  });
160826
160877
 
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
160878
  System.register(["quill"], function (exports_1, context_1) {
160864
160879
  var quill_1, BaseImage, ATTRIBUTES, QuillImageFormatPlugin;
160865
160880
  context_1 && context_1.id;
@@ -161045,41 +161060,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161045
161060
  };
161046
161061
  });
161047
161062
 
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
161063
  System.register(["@angular/forms", "@angular/core", "froala-editor"], function (exports_1, context_1) {
161084
161064
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
161085
161065
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -161403,120 +161383,53 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161403
161383
  };
161404
161384
  });
161405
161385
 
161406
- System.register(["@stratusjs/angular/froala/editor/froala-editor.directive", "@stratusjs/angular/froala/editor/froala-editor.module"], function (exports_1, context_1) {
161407
- context_1 && context_1.id;
161408
- return {
161409
- setters: [
161410
- function (froala_editor_directive_1_1) {
161411
- exports_1({
161412
- "FroalaEditorDirective": froala_editor_directive_1_1["FroalaEditorDirective"]
161413
- });
161414
- },
161415
- function (froala_editor_module_1_1) {
161416
- exports_1({
161417
- "FroalaEditorModule": froala_editor_module_1_1["FroalaEditorModule"]
161418
- });
161419
- }
161420
- ],
161421
- execute: function () {
161422
- }
161423
- };
161424
- });
161425
-
161426
- System.register(["@angular/core"], function (exports_1, context_1) {
161427
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
161428
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
161429
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
161430
- 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;
161431
- return c > 3 && r && Object.defineProperty(target, key, r), r;
161432
- };
161433
- var __metadata = (this && this.__metadata) || function (k, v) {
161434
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
161435
- };
161436
- var core_1, FroalaViewDirective;
161437
- context_1 && context_1.id;
161438
- return {
161439
- setters: [
161440
- function (core_1_1) {
161441
- core_1 = core_1_1;
161442
- }
161443
- ],
161444
- execute: function () {
161445
- FroalaViewDirective = class FroalaViewDirective {
161446
- constructor(renderer, element) {
161447
- this.renderer = renderer;
161448
- this._element = element.nativeElement;
161449
- }
161450
- set froalaView(content) {
161451
- this._element.innerHTML = content;
161452
- }
161453
- ngAfterViewInit() {
161454
- this.renderer.addClass(this._element, 'fr-view');
161455
- }
161456
- };
161457
- __decorate([
161458
- core_1.Input(),
161459
- __metadata("design:type", String),
161460
- __metadata("design:paramtypes", [String])
161461
- ], FroalaViewDirective.prototype, "froalaView", null);
161462
- FroalaViewDirective = __decorate([
161463
- core_1.Directive({
161464
- selector: '[froalaView]'
161465
- }),
161466
- __metadata("design:paramtypes", [core_1.Renderer2, core_1.ElementRef])
161467
- ], FroalaViewDirective);
161468
- exports_1("FroalaViewDirective", FroalaViewDirective);
161469
- }
161470
- };
161471
- });
161472
-
161473
- System.register(["@angular/core", "@stratusjs/angular/froala/view/froala-view.directive"], function (exports_1, context_1) {
161386
+ System.register(["@angular/core", "@stratusjs/angular/froala/editor/froala-editor.directive"], function (exports_1, context_1) {
161474
161387
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
161475
161388
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
161476
161389
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
161477
161390
  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;
161478
161391
  return c > 3 && r && Object.defineProperty(target, key, r), r;
161479
161392
  };
161480
- var FroalaViewModule_1, core_1, froala_view_directive_1, FroalaViewModule;
161393
+ var FroalaEditorModule_1, core_1, froala_editor_directive_1, FroalaEditorModule;
161481
161394
  context_1 && context_1.id;
161482
161395
  return {
161483
161396
  setters: [
161484
161397
  function (core_1_1) {
161485
161398
  core_1 = core_1_1;
161486
161399
  },
161487
- function (froala_view_directive_1_1) {
161488
- froala_view_directive_1 = froala_view_directive_1_1;
161400
+ function (froala_editor_directive_1_1) {
161401
+ froala_editor_directive_1 = froala_editor_directive_1_1;
161489
161402
  }
161490
161403
  ],
161491
161404
  execute: function () {
161492
- FroalaViewModule = FroalaViewModule_1 = class FroalaViewModule {
161405
+ FroalaEditorModule = FroalaEditorModule_1 = class FroalaEditorModule {
161493
161406
  static forRoot() {
161494
- return { ngModule: FroalaViewModule_1, providers: [] };
161407
+ return { ngModule: FroalaEditorModule_1, providers: [] };
161495
161408
  }
161496
161409
  };
161497
- FroalaViewModule = FroalaViewModule_1 = __decorate([
161410
+ FroalaEditorModule = FroalaEditorModule_1 = __decorate([
161498
161411
  core_1.NgModule({
161499
- declarations: [froala_view_directive_1.FroalaViewDirective],
161500
- exports: [froala_view_directive_1.FroalaViewDirective]
161412
+ declarations: [froala_editor_directive_1.FroalaEditorDirective],
161413
+ exports: [froala_editor_directive_1.FroalaEditorDirective]
161501
161414
  })
161502
- ], FroalaViewModule);
161503
- exports_1("FroalaViewModule", FroalaViewModule);
161415
+ ], FroalaEditorModule);
161416
+ exports_1("FroalaEditorModule", FroalaEditorModule);
161504
161417
  }
161505
161418
  };
161506
161419
  });
161507
161420
 
161508
- System.register(["@stratusjs/angular/froala/view/froala-view.directive", "@stratusjs/angular/froala/view/froala-view.module"], function (exports_1, context_1) {
161421
+ System.register(["@stratusjs/angular/froala/editor/froala-editor.directive", "@stratusjs/angular/froala/editor/froala-editor.module"], function (exports_1, context_1) {
161509
161422
  context_1 && context_1.id;
161510
161423
  return {
161511
161424
  setters: [
161512
- function (froala_view_directive_1_1) {
161425
+ function (froala_editor_directive_1_1) {
161513
161426
  exports_1({
161514
- "FroalaViewDirective": froala_view_directive_1_1["FroalaViewDirective"]
161427
+ "FroalaEditorDirective": froala_editor_directive_1_1["FroalaEditorDirective"]
161515
161428
  });
161516
161429
  },
161517
- function (froala_view_module_1_1) {
161430
+ function (froala_editor_module_1_1) {
161518
161431
  exports_1({
161519
- "FroalaViewModule": froala_view_module_1_1["FroalaViewModule"]
161432
+ "FroalaEditorModule": froala_editor_module_1_1["FroalaEditorModule"]
161520
161433
  });
161521
161434
  }
161522
161435
  ],
@@ -161951,6 +161864,108 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161951
161864
  undo: true
161952
161865
  });
161953
161866
 
161867
+ System.register(["@angular/core", "@stratusjs/angular/froala/view/froala-view.directive"], function (exports_1, context_1) {
161868
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
161869
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
161870
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
161871
+ 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;
161872
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
161873
+ };
161874
+ var FroalaViewModule_1, core_1, froala_view_directive_1, FroalaViewModule;
161875
+ context_1 && context_1.id;
161876
+ return {
161877
+ setters: [
161878
+ function (core_1_1) {
161879
+ core_1 = core_1_1;
161880
+ },
161881
+ function (froala_view_directive_1_1) {
161882
+ froala_view_directive_1 = froala_view_directive_1_1;
161883
+ }
161884
+ ],
161885
+ execute: function () {
161886
+ FroalaViewModule = FroalaViewModule_1 = class FroalaViewModule {
161887
+ static forRoot() {
161888
+ return { ngModule: FroalaViewModule_1, providers: [] };
161889
+ }
161890
+ };
161891
+ FroalaViewModule = FroalaViewModule_1 = __decorate([
161892
+ core_1.NgModule({
161893
+ declarations: [froala_view_directive_1.FroalaViewDirective],
161894
+ exports: [froala_view_directive_1.FroalaViewDirective]
161895
+ })
161896
+ ], FroalaViewModule);
161897
+ exports_1("FroalaViewModule", FroalaViewModule);
161898
+ }
161899
+ };
161900
+ });
161901
+
161902
+ System.register(["@angular/core"], function (exports_1, context_1) {
161903
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
161904
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
161905
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
161906
+ 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;
161907
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
161908
+ };
161909
+ var __metadata = (this && this.__metadata) || function (k, v) {
161910
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
161911
+ };
161912
+ var core_1, FroalaViewDirective;
161913
+ context_1 && context_1.id;
161914
+ return {
161915
+ setters: [
161916
+ function (core_1_1) {
161917
+ core_1 = core_1_1;
161918
+ }
161919
+ ],
161920
+ execute: function () {
161921
+ FroalaViewDirective = class FroalaViewDirective {
161922
+ constructor(renderer, element) {
161923
+ this.renderer = renderer;
161924
+ this._element = element.nativeElement;
161925
+ }
161926
+ set froalaView(content) {
161927
+ this._element.innerHTML = content;
161928
+ }
161929
+ ngAfterViewInit() {
161930
+ this.renderer.addClass(this._element, 'fr-view');
161931
+ }
161932
+ };
161933
+ __decorate([
161934
+ core_1.Input(),
161935
+ __metadata("design:type", String),
161936
+ __metadata("design:paramtypes", [String])
161937
+ ], FroalaViewDirective.prototype, "froalaView", null);
161938
+ FroalaViewDirective = __decorate([
161939
+ core_1.Directive({
161940
+ selector: '[froalaView]'
161941
+ }),
161942
+ __metadata("design:paramtypes", [core_1.Renderer2, core_1.ElementRef])
161943
+ ], FroalaViewDirective);
161944
+ exports_1("FroalaViewDirective", FroalaViewDirective);
161945
+ }
161946
+ };
161947
+ });
161948
+
161949
+ System.register(["@stratusjs/angular/froala/view/froala-view.directive", "@stratusjs/angular/froala/view/froala-view.module"], function (exports_1, context_1) {
161950
+ context_1 && context_1.id;
161951
+ return {
161952
+ setters: [
161953
+ function (froala_view_directive_1_1) {
161954
+ exports_1({
161955
+ "FroalaViewDirective": froala_view_directive_1_1["FroalaViewDirective"]
161956
+ });
161957
+ },
161958
+ function (froala_view_module_1_1) {
161959
+ exports_1({
161960
+ "FroalaViewModule": froala_view_module_1_1["FroalaViewModule"]
161961
+ });
161962
+ }
161963
+ ],
161964
+ execute: function () {
161965
+ }
161966
+ };
161967
+ });
161968
+
161954
161969
  })
161955
161970
  };
161956
161971
  }));