@stratusjs/angular 0.9.1 → 0.9.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.
@@ -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)
@@ -161525,95 +161530,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161525
161530
  };
161526
161531
  });
161527
161532
 
161528
- System.register(["quill"], function (exports_1, context_1) {
161529
- var quill_1, BaseImage, ATTRIBUTES, QuillImageFormatPlugin;
161530
- context_1 && context_1.id;
161531
- return {
161532
- setters: [
161533
- function (quill_1_1) {
161534
- quill_1 = quill_1_1;
161535
- }
161536
- ],
161537
- execute: function () {
161538
- BaseImage = quill_1.default.import('formats/image');
161539
- ATTRIBUTES = [
161540
- 'alt',
161541
- 'height',
161542
- 'width',
161543
- 'stratus-src',
161544
- 'stratusSrc'
161545
- ];
161546
- QuillImageFormatPlugin = class QuillImageFormatPlugin extends BaseImage {
161547
- constructor() {
161548
- super(...arguments);
161549
- this.blotName = 'imageCustom';
161550
- this.tagName = 'IMG';
161551
- }
161552
- format(name, value) {
161553
- console.log('format:', name, value, this.domNode.getAttribute('src'));
161554
- if (ATTRIBUTES.indexOf(name) === -1) {
161555
- super.format(name, value);
161556
- return;
161557
- }
161558
- if (!value) {
161559
- this.domNode.removeAttribute(name);
161560
- return;
161561
- }
161562
- if (name === 'stratus-src') {
161563
- console.log('stratus-src:', value);
161564
- }
161565
- if (name === 'stratusSrc') {
161566
- console.log('stratusSrc:', value);
161567
- }
161568
- this.domNode.setAttribute(name, value);
161569
- }
161570
- };
161571
- exports_1("QuillImageFormatPlugin", QuillImageFormatPlugin);
161572
- }
161573
- };
161574
- });
161575
-
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
161533
  System.register(["@stratusjs/runtime/stratus", "lodash", "quill"], function (exports_1, context_1) {
161618
161534
  var stratus_1, lodash_1, quill_1, QuillInputButtonPlugin;
161619
161535
  context_1 && context_1.id;
@@ -161710,6 +161626,95 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
161710
161626
  };
161711
161627
  });
161712
161628
 
161629
+ System.register(["quill"], function (exports_1, context_1) {
161630
+ var quill_1, BaseImage, ATTRIBUTES, QuillImageFormatPlugin;
161631
+ context_1 && context_1.id;
161632
+ return {
161633
+ setters: [
161634
+ function (quill_1_1) {
161635
+ quill_1 = quill_1_1;
161636
+ }
161637
+ ],
161638
+ execute: function () {
161639
+ BaseImage = quill_1.default.import('formats/image');
161640
+ ATTRIBUTES = [
161641
+ 'alt',
161642
+ 'height',
161643
+ 'width',
161644
+ 'stratus-src',
161645
+ 'stratusSrc'
161646
+ ];
161647
+ QuillImageFormatPlugin = class QuillImageFormatPlugin extends BaseImage {
161648
+ constructor() {
161649
+ super(...arguments);
161650
+ this.blotName = 'imageCustom';
161651
+ this.tagName = 'IMG';
161652
+ }
161653
+ format(name, value) {
161654
+ console.log('format:', name, value, this.domNode.getAttribute('src'));
161655
+ if (ATTRIBUTES.indexOf(name) === -1) {
161656
+ super.format(name, value);
161657
+ return;
161658
+ }
161659
+ if (!value) {
161660
+ this.domNode.removeAttribute(name);
161661
+ return;
161662
+ }
161663
+ if (name === 'stratus-src') {
161664
+ console.log('stratus-src:', value);
161665
+ }
161666
+ if (name === 'stratusSrc') {
161667
+ console.log('stratusSrc:', value);
161668
+ }
161669
+ this.domNode.setAttribute(name, value);
161670
+ }
161671
+ };
161672
+ exports_1("QuillImageFormatPlugin", QuillImageFormatPlugin);
161673
+ }
161674
+ };
161675
+ });
161676
+
161677
+ System.register(["reflect-metadata", "lodash", "@angular/core"], function (exports_1, context_1) {
161678
+ var lodash_1, core_1, RootComponent;
161679
+ context_1 && context_1.id;
161680
+ return {
161681
+ setters: [
161682
+ function (_1) {
161683
+ },
161684
+ function (lodash_1_1) {
161685
+ lodash_1 = lodash_1_1;
161686
+ },
161687
+ function (core_1_1) {
161688
+ core_1 = core_1_1;
161689
+ }
161690
+ ],
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);
161714
+ }
161715
+ };
161716
+ });
161717
+
161713
161718
  System.register(["@stratusjs/angular/froala/editor/froala-editor.directive", "@stratusjs/angular/froala/editor/froala-editor.module"], function (exports_1, context_1) {
161714
161719
  context_1 && context_1.id;
161715
161720
  return {
@@ -162053,6 +162058,41 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
162053
162058
  };
162054
162059
  });
162055
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 {