@stratusjs/angular 0.9.1 → 0.9.3

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.
@@ -52461,7 +52461,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
52461
52461
  this.stagger = true;
52462
52462
  this.reloading = false;
52463
52463
  }
52464
- refresh() {
52464
+ refresh(timeout = 100) {
52465
52465
  return new Promise((resolve, reject) => {
52466
52466
  if (this.disableRefresh) {
52467
52467
  resolve();
@@ -52477,9 +52477,9 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
52477
52477
  console.warn('[flow control] waiting to refresh component:', this.uid);
52478
52478
  }
52479
52479
  setTimeout(() => {
52480
- this.refresh()
52480
+ this.refresh(timeout * 2)
52481
52481
  .then(() => resolve());
52482
- }, 100);
52482
+ }, timeout);
52483
52483
  return;
52484
52484
  }
52485
52485
  this.reloading = true;
@@ -129070,6 +129070,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
129070
129070
  this.urlRoot = '/Api';
129071
129071
  this.paymentMethodApiPath = 'PaymentMethod';
129072
129072
  this.addCardButtonText = 'Add Payment Method';
129073
+ this.addCardDisabled = false;
129073
129074
  this.disabled = false;
129074
129075
  this.defaultBillingInfo = { address: {} };
129075
129076
  this.uid = safeUniqueId('sa', snakeCase(this.title));
@@ -129083,7 +129084,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
129083
129084
  console.error('CSS Failed to load for Component:', this);
129084
129085
  this.styled = false;
129085
129086
  });
129086
- this.hydrate(this.elementRef, this.sanitizer, ["title", "urlRoot", "paymentMethodApiPath", "addCardButtonText", "disabled", "property", "detailedBillingInfo", "defaultBillingName", "defaultBillingEmail", "defaultBillingPhone", "defaultBillingZip", "defaultBillingState", "defaultBillingCity", "defaultBillingAddress1", "defaultBillingAddress2", "defaultBillingInfo", "elementRef", "ref", "sanitizer", "Stripe", "ngOnInit", "collection", "uid", "elementId", "styled", "initialized", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
129087
+ this.hydrate(this.elementRef, this.sanitizer, ["title", "urlRoot", "paymentMethodApiPath", "addCardButtonText", "addCardDisabled", "disabled", "property", "detailedBillingInfo", "defaultBillingName", "defaultBillingEmail", "defaultBillingPhone", "defaultBillingZip", "defaultBillingState", "defaultBillingCity", "defaultBillingAddress1", "defaultBillingAddress2", "defaultBillingInfo", "elementRef", "ref", "sanitizer", "Stripe", "ngOnInit", "collection", "uid", "elementId", "styled", "initialized", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
129087
129088
  const apiOptions = {
129088
129089
  autoSave: false,
129089
129090
  target: this.paymentMethodApiPath,
@@ -129142,6 +129143,10 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
129142
129143
  Input(),
129143
129144
  __metadata$3("design:type", String)
129144
129145
  ], StripePaymentMethodListComponent.prototype, "addCardButtonText", void 0);
129146
+ __decorate$4([
129147
+ Input(),
129148
+ __metadata$3("design:type", Boolean)
129149
+ ], StripePaymentMethodListComponent.prototype, "addCardDisabled", void 0);
129145
129150
  __decorate$4([
129146
129151
  Input(),
129147
129152
  __metadata$3("design:type", Object)
@@ -161573,47 +161578,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161573
161578
  };
161574
161579
  });
161575
161580
 
161576
- System.register(["reflect-metadata", "lodash", "@angular/core"], function (exports_1, context_1) {
161577
- var lodash_1, core_1, RootComponent;
161578
- context_1 && context_1.id;
161579
- return {
161580
- setters: [
161581
- function (_1) {
161582
- },
161583
- function (lodash_1_1) {
161584
- lodash_1 = lodash_1_1;
161585
- },
161586
- function (core_1_1) {
161587
- core_1 = core_1_1;
161588
- }
161589
- ],
161590
- execute: function () {
161591
- RootComponent = class RootComponent {
161592
- hydrate(elementRef, sanitizer, attrs) {
161593
- lodash_1.default.forEach(attrs, (attr) => {
161594
- const metaDataKeys = Reflect.getMetadataKeys(this, attr);
161595
- if (!lodash_1.default.includes(metaDataKeys, 'design:type')) {
161596
- return;
161597
- }
161598
- const attrKebab = lodash_1.default.kebabCase(attr);
161599
- const variants = [
161600
- attrKebab,
161601
- 'data-' + attrKebab
161602
- ];
161603
- const variant = lodash_1.default.find(variants, (v) => elementRef.nativeElement.hasAttribute(v));
161604
- if (lodash_1.default.isEmpty(variant)) {
161605
- return;
161606
- }
161607
- const value = sanitizer.sanitize(core_1.SecurityContext.HTML, elementRef.nativeElement.getAttribute(variant));
161608
- lodash_1.default.set(this, attr, value);
161609
- });
161610
- }
161611
- };
161612
- exports_1("RootComponent", RootComponent);
161613
- }
161614
- };
161615
- });
161616
-
161617
161581
  System.register(["@stratusjs/runtime/stratus", "lodash", "quill"], function (exports_1, context_1) {
161618
161582
  var stratus_1, lodash_1, quill_1, QuillInputButtonPlugin;
161619
161583
  context_1 && context_1.id;
@@ -161710,22 +161674,43 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161710
161674
  };
161711
161675
  });
161712
161676
 
161713
- System.register(["@stratusjs/angular/froala/editor/froala-editor.directive", "@stratusjs/angular/froala/editor/froala-editor.module"], function (exports_1, context_1) {
161677
+ System.register(["reflect-metadata", "lodash", "@angular/core"], function (exports_1, context_1) {
161678
+ var lodash_1, core_1, RootComponent;
161714
161679
  context_1 && context_1.id;
161715
161680
  return {
161716
161681
  setters: [
161717
- function (froala_editor_directive_1_1) {
161718
- exports_1({
161719
- "FroalaEditorDirective": froala_editor_directive_1_1["FroalaEditorDirective"]
161720
- });
161682
+ function (_1) {
161721
161683
  },
161722
- function (froala_editor_module_1_1) {
161723
- exports_1({
161724
- "FroalaEditorModule": froala_editor_module_1_1["FroalaEditorModule"]
161725
- });
161684
+ function (lodash_1_1) {
161685
+ lodash_1 = lodash_1_1;
161686
+ },
161687
+ function (core_1_1) {
161688
+ core_1 = core_1_1;
161726
161689
  }
161727
161690
  ],
161728
161691
  execute: function () {
161692
+ RootComponent = class RootComponent {
161693
+ hydrate(elementRef, sanitizer, attrs) {
161694
+ lodash_1.default.forEach(attrs, (attr) => {
161695
+ const metaDataKeys = Reflect.getMetadataKeys(this, attr);
161696
+ if (!lodash_1.default.includes(metaDataKeys, 'design:type')) {
161697
+ return;
161698
+ }
161699
+ const attrKebab = lodash_1.default.kebabCase(attr);
161700
+ const variants = [
161701
+ attrKebab,
161702
+ 'data-' + attrKebab
161703
+ ];
161704
+ const variant = lodash_1.default.find(variants, (v) => elementRef.nativeElement.hasAttribute(v));
161705
+ if (lodash_1.default.isEmpty(variant)) {
161706
+ return;
161707
+ }
161708
+ const value = sanitizer.sanitize(core_1.SecurityContext.HTML, elementRef.nativeElement.getAttribute(variant));
161709
+ lodash_1.default.set(this, attr, value);
161710
+ });
161711
+ }
161712
+ };
161713
+ exports_1("RootComponent", RootComponent);
161729
161714
  }
161730
161715
  };
161731
161716
  });
@@ -162053,6 +162038,61 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
162053
162038
  };
162054
162039
  });
162055
162040
 
162041
+ System.register(["@stratusjs/angular/froala/editor/froala-editor.directive", "@stratusjs/angular/froala/editor/froala-editor.module"], function (exports_1, context_1) {
162042
+ context_1 && context_1.id;
162043
+ return {
162044
+ setters: [
162045
+ function (froala_editor_directive_1_1) {
162046
+ exports_1({
162047
+ "FroalaEditorDirective": froala_editor_directive_1_1["FroalaEditorDirective"]
162048
+ });
162049
+ },
162050
+ function (froala_editor_module_1_1) {
162051
+ exports_1({
162052
+ "FroalaEditorModule": froala_editor_module_1_1["FroalaEditorModule"]
162053
+ });
162054
+ }
162055
+ ],
162056
+ execute: function () {
162057
+ }
162058
+ };
162059
+ });
162060
+
162061
+ System.register(["@angular/core", "@stratusjs/angular/froala/editor/froala-editor.directive"], function (exports_1, context_1) {
162062
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
162063
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
162064
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
162065
+ 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;
162066
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
162067
+ };
162068
+ var FroalaEditorModule_1, core_1, froala_editor_directive_1, FroalaEditorModule;
162069
+ context_1 && context_1.id;
162070
+ return {
162071
+ setters: [
162072
+ function (core_1_1) {
162073
+ core_1 = core_1_1;
162074
+ },
162075
+ function (froala_editor_directive_1_1) {
162076
+ froala_editor_directive_1 = froala_editor_directive_1_1;
162077
+ }
162078
+ ],
162079
+ execute: function () {
162080
+ FroalaEditorModule = FroalaEditorModule_1 = class FroalaEditorModule {
162081
+ static forRoot() {
162082
+ return { ngModule: FroalaEditorModule_1, providers: [] };
162083
+ }
162084
+ };
162085
+ FroalaEditorModule = FroalaEditorModule_1 = __decorate([
162086
+ core_1.NgModule({
162087
+ declarations: [froala_editor_directive_1.FroalaEditorDirective],
162088
+ exports: [froala_editor_directive_1.FroalaEditorDirective]
162089
+ })
162090
+ ], FroalaEditorModule);
162091
+ exports_1("FroalaEditorModule", FroalaEditorModule);
162092
+ }
162093
+ };
162094
+ });
162095
+
162056
162096
  System.register(["@angular/core"], function (exports_1, context_1) {
162057
162097
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
162058
162098
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -162135,41 +162175,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
162135
162175
  };
162136
162176
  });
162137
162177
 
162138
- System.register(["@angular/core", "@stratusjs/angular/froala/editor/froala-editor.directive"], function (exports_1, context_1) {
162139
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
162140
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
162141
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
162142
- 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;
162143
- return c > 3 && r && Object.defineProperty(target, key, r), r;
162144
- };
162145
- var FroalaEditorModule_1, core_1, froala_editor_directive_1, FroalaEditorModule;
162146
- context_1 && context_1.id;
162147
- return {
162148
- setters: [
162149
- function (core_1_1) {
162150
- core_1 = core_1_1;
162151
- },
162152
- function (froala_editor_directive_1_1) {
162153
- froala_editor_directive_1 = froala_editor_directive_1_1;
162154
- }
162155
- ],
162156
- execute: function () {
162157
- FroalaEditorModule = FroalaEditorModule_1 = class FroalaEditorModule {
162158
- static forRoot() {
162159
- return { ngModule: FroalaEditorModule_1, providers: [] };
162160
- }
162161
- };
162162
- FroalaEditorModule = FroalaEditorModule_1 = __decorate([
162163
- core_1.NgModule({
162164
- declarations: [froala_editor_directive_1.FroalaEditorDirective],
162165
- exports: [froala_editor_directive_1.FroalaEditorDirective]
162166
- })
162167
- ], FroalaEditorModule);
162168
- exports_1("FroalaEditorModule", FroalaEditorModule);
162169
- }
162170
- };
162171
- });
162172
-
162173
162178
  System.register(["@stratusjs/angular/froala/view/froala-view.directive", "@stratusjs/angular/froala/view/froala-view.module"], function (exports_1, context_1) {
162174
162179
  context_1 && context_1.id;
162175
162180
  return {