@resolveio/client-lib-core 15.1.11 → 15.1.12

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.
@@ -3151,7 +3151,6 @@ DialogLoginContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
3151
3151
  <img src="/assets/images/loginsignup/formimg.jpg" alt="images" class="img-fluid">
3152
3152
  <div class="textbox" *ngIf="showLoginText">
3153
3153
  <div class="login-logo"><img src="/assets/images/loginsignup/login-logo.png" alt="images"></div>
3154
- The All-in-One Solution for Tracking Inventory, Ordering, POs, Management, and Much More!
3155
3154
  </div>
3156
3155
  </div>
3157
3156
  </div>
@@ -3386,7 +3385,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3386
3385
  <img src="/assets/images/loginsignup/formimg.jpg" alt="images" class="img-fluid">
3387
3386
  <div class="textbox" *ngIf="showLoginText">
3388
3387
  <div class="login-logo"><img src="/assets/images/loginsignup/login-logo.png" alt="images"></div>
3389
- The All-in-One Solution for Tracking Inventory, Ordering, POs, Management, and Much More!
3390
3388
  </div>
3391
3389
  </div>
3392
3390
  </div>
@@ -3585,7 +3583,6 @@ DialogRegisterContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
3585
3583
  <img src="/assets/images/loginsignup/formimg.jpg" alt="images" class="img-fluid">
3586
3584
  <div class="textbox">
3587
3585
  <div class="login-logo"><img src="/assets/images/loginsignup/login-logo.png" alt="images"></div>
3588
- The All-in-One Solution for Tracking Inventory, Ordering, POs, Management, and Much More!
3589
3586
  </div>
3590
3587
  </div>
3591
3588
  </div>
@@ -3737,7 +3734,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3737
3734
  <img src="/assets/images/loginsignup/formimg.jpg" alt="images" class="img-fluid">
3738
3735
  <div class="textbox">
3739
3736
  <div class="login-logo"><img src="/assets/images/loginsignup/login-logo.png" alt="images"></div>
3740
- The All-in-One Solution for Tracking Inventory, Ordering, POs, Management, and Much More!
3741
3737
  </div>
3742
3738
  </div>
3743
3739
  </div>
@@ -8632,6 +8628,8 @@ class DateShortcutComponent extends BaseComponent {
8632
8628
  this._cd = _cd;
8633
8629
  this.startDateObjChange = new EventEmitter();
8634
8630
  this.endDateObjChange = new EventEmitter();
8631
+ this.startDateObjFormChange = new EventEmitter();
8632
+ this.endDateObjFormChange = new EventEmitter();
8635
8633
  this.datesChanged = new EventEmitter();
8636
8634
  this.shortcutValue = null;
8637
8635
  this.shortcutValueChange = new EventEmitter();
@@ -8646,100 +8644,191 @@ class DateShortcutComponent extends BaseComponent {
8646
8644
  }
8647
8645
  onSelectShortcut() {
8648
8646
  if (this.shortcutValue) {
8649
- let startDate = moment(new Date(this.startDateObj['year'], this.startDateObj['month'] - 1, this.startDateObj['day'])).toDate();
8650
- let endDate = moment(new Date(this.endDateObj['year'], this.endDateObj['month'] - 1, this.endDateObj['day'])).toDate();
8651
- if (this.shortcutValue === 'Q1') {
8652
- startDate = moment().startOf('year').toDate();
8653
- endDate = moment().startOf('year').quarter(2).subtract(1, 'days').toDate();
8654
- }
8655
- else if (this.shortcutValue === 'Q2') {
8656
- startDate = moment().startOf('year').quarter(2).toDate();
8657
- endDate = moment().startOf('year').quarter(3).subtract(1, 'days').toDate();
8658
- }
8659
- else if (this.shortcutValue === 'Q3') {
8660
- startDate = moment().startOf('year').quarter(3).toDate();
8661
- endDate = moment().startOf('year').quarter(4).subtract(1, 'days').toDate();
8662
- }
8663
- else if (this.shortcutValue === 'Q4') {
8664
- startDate = moment().startOf('year').quarter(4).toDate();
8665
- endDate = moment().endOf('year').toDate();
8666
- }
8667
- else if (this.shortcutValue === 'Last Q1') {
8668
- startDate = moment().startOf('year').subtract(1, 'year').toDate();
8669
- endDate = moment().startOf('year').subtract(1, 'year').quarter(2).subtract(1, 'days').toDate();
8670
- }
8671
- else if (this.shortcutValue === 'Last Q2') {
8672
- startDate = moment().startOf('year').subtract(1, 'year').quarter(2).toDate();
8673
- endDate = moment().startOf('year').subtract(1, 'year').quarter(3).subtract(1, 'days').toDate();
8674
- }
8675
- else if (this.shortcutValue === 'Last Q3') {
8676
- startDate = moment().startOf('year').subtract(1, 'year').quarter(3).toDate();
8677
- endDate = moment().startOf('year').subtract(1, 'year').quarter(4).subtract(1, 'days').toDate();
8678
- }
8679
- else if (this.shortcutValue === 'Last Q4') {
8680
- startDate = moment().startOf('year').subtract(1, 'year').quarter(4).toDate();
8681
- endDate = moment().endOf('year').subtract(1, 'year').toDate();
8682
- }
8683
- else if (this.shortcutValue === 'Today') {
8684
- startDate = moment().startOf('day').toDate();
8685
- endDate = new Date();
8686
- }
8687
- else if (this.shortcutValue === 'Yesterday') {
8688
- startDate = moment().subtract(1, 'days').startOf('day').toDate();
8689
- endDate = moment().subtract(1, 'days').endOf('day').toDate();
8690
- }
8691
- else if (this.shortcutValue === 'Week') {
8692
- startDate = moment().startOf('isoWeek').toDate();
8693
- endDate = new Date();
8694
- }
8695
- else if (this.shortcutValue === 'Last Week') {
8696
- endDate = moment().startOf('isoWeek').subtract(1, 'days').toDate();
8697
- startDate = moment(endDate).startOf('isoWeek').toDate();
8698
- }
8699
- else if (this.shortcutValue === 'Month') {
8700
- startDate = moment().startOf('month').toDate();
8701
- endDate = new Date();
8702
- }
8703
- else if (this.shortcutValue === 'Last Month') {
8704
- endDate = moment().startOf('month').subtract(1, 'days').endOf('day').toDate();
8705
- startDate = moment(endDate).startOf('month').toDate();
8706
- }
8707
- else if (this.shortcutValue === 'Last 30 Days') {
8708
- endDate = new Date();
8709
- startDate = moment().subtract(30, 'days').startOf('day').toDate();
8710
- }
8711
- else if (this.shortcutValue === 'Quarter') {
8712
- startDate = moment().startOf('year').quarter(moment().quarter()).toDate();
8713
- endDate = new Date();
8714
- }
8715
- else if (this.shortcutValue === 'Last Quarter') {
8716
- endDate = moment().startOf('year').quarter(moment().quarter()).subtract(1, 'days').endOf('day').toDate();
8717
- startDate = moment(endDate).startOf('quarter').toDate();
8718
- }
8719
- else if (this.shortcutValue === 'Year') {
8720
- startDate = moment().startOf('year').toDate();
8721
- endDate = new Date();
8722
- }
8723
- else if (this.shortcutValue === 'Last Year') {
8724
- endDate = moment().startOf('year').subtract(1, 'days').endOf('day').toDate();
8725
- startDate = moment(endDate).startOf('year').toDate();
8726
- }
8727
- else if (this.shortcutValue === 'All') {
8728
- startDate = new Date(2017, 0, 1, 0, 0, 0, 0);
8729
- endDate = new Date();
8730
- }
8731
- this.startDateObj = { year: startDate.getFullYear(), month: startDate.getMonth() + 1, day: startDate.getDate() };
8732
- this.endDateObj = { year: endDate.getFullYear(), month: endDate.getMonth() + 1, day: endDate.getDate() };
8733
- this.startDateObjChange.emit(this.startDateObj);
8734
- this.endDateObjChange.emit(this.endDateObj);
8735
- this.datesChanged.emit([this.startDateObj, this.endDateObj]);
8647
+ if (this.startDateObj && this.endDateObj) {
8648
+ let startDate = moment(new Date(this.startDateObj['year'], this.startDateObj['month'] - 1, this.startDateObj['day'])).toDate();
8649
+ let endDate = moment(new Date(this.endDateObj['year'], this.endDateObj['month'] - 1, this.endDateObj['day'])).toDate();
8650
+ if (this.shortcutValue === 'Q1') {
8651
+ startDate = moment().startOf('year').toDate();
8652
+ endDate = moment().startOf('year').quarter(2).subtract(1, 'days').toDate();
8653
+ }
8654
+ else if (this.shortcutValue === 'Q2') {
8655
+ startDate = moment().startOf('year').quarter(2).toDate();
8656
+ endDate = moment().startOf('year').quarter(3).subtract(1, 'days').toDate();
8657
+ }
8658
+ else if (this.shortcutValue === 'Q3') {
8659
+ startDate = moment().startOf('year').quarter(3).toDate();
8660
+ endDate = moment().startOf('year').quarter(4).subtract(1, 'days').toDate();
8661
+ }
8662
+ else if (this.shortcutValue === 'Q4') {
8663
+ startDate = moment().startOf('year').quarter(4).toDate();
8664
+ endDate = moment().endOf('year').toDate();
8665
+ }
8666
+ else if (this.shortcutValue === 'Last Q1') {
8667
+ startDate = moment().startOf('year').subtract(1, 'year').toDate();
8668
+ endDate = moment().startOf('year').subtract(1, 'year').quarter(2).subtract(1, 'days').toDate();
8669
+ }
8670
+ else if (this.shortcutValue === 'Last Q2') {
8671
+ startDate = moment().startOf('year').subtract(1, 'year').quarter(2).toDate();
8672
+ endDate = moment().startOf('year').subtract(1, 'year').quarter(3).subtract(1, 'days').toDate();
8673
+ }
8674
+ else if (this.shortcutValue === 'Last Q3') {
8675
+ startDate = moment().startOf('year').subtract(1, 'year').quarter(3).toDate();
8676
+ endDate = moment().startOf('year').subtract(1, 'year').quarter(4).subtract(1, 'days').toDate();
8677
+ }
8678
+ else if (this.shortcutValue === 'Last Q4') {
8679
+ startDate = moment().startOf('year').subtract(1, 'year').quarter(4).toDate();
8680
+ endDate = moment().endOf('year').subtract(1, 'year').toDate();
8681
+ }
8682
+ else if (this.shortcutValue === 'Today') {
8683
+ startDate = moment().startOf('day').toDate();
8684
+ endDate = new Date();
8685
+ }
8686
+ else if (this.shortcutValue === 'Yesterday') {
8687
+ startDate = moment().subtract(1, 'days').startOf('day').toDate();
8688
+ endDate = moment().subtract(1, 'days').endOf('day').toDate();
8689
+ }
8690
+ else if (this.shortcutValue === 'Week') {
8691
+ startDate = moment().startOf('isoWeek').toDate();
8692
+ endDate = new Date();
8693
+ }
8694
+ else if (this.shortcutValue === 'Last Week') {
8695
+ endDate = moment().startOf('isoWeek').subtract(1, 'days').toDate();
8696
+ startDate = moment(endDate).startOf('isoWeek').toDate();
8697
+ }
8698
+ else if (this.shortcutValue === 'Month') {
8699
+ startDate = moment().startOf('month').toDate();
8700
+ endDate = new Date();
8701
+ }
8702
+ else if (this.shortcutValue === 'Last Month') {
8703
+ endDate = moment().startOf('month').subtract(1, 'days').endOf('day').toDate();
8704
+ startDate = moment(endDate).startOf('month').toDate();
8705
+ }
8706
+ else if (this.shortcutValue === 'Last 30 Days') {
8707
+ endDate = new Date();
8708
+ startDate = moment().subtract(30, 'days').startOf('day').toDate();
8709
+ }
8710
+ else if (this.shortcutValue === 'Quarter') {
8711
+ startDate = moment().startOf('year').quarter(moment().quarter()).toDate();
8712
+ endDate = new Date();
8713
+ }
8714
+ else if (this.shortcutValue === 'Last Quarter') {
8715
+ endDate = moment().startOf('year').quarter(moment().quarter()).subtract(1, 'days').endOf('day').toDate();
8716
+ startDate = moment(endDate).startOf('quarter').toDate();
8717
+ }
8718
+ else if (this.shortcutValue === 'Year') {
8719
+ startDate = moment().startOf('year').toDate();
8720
+ endDate = new Date();
8721
+ }
8722
+ else if (this.shortcutValue === 'Last Year') {
8723
+ endDate = moment().startOf('year').subtract(1, 'days').endOf('day').toDate();
8724
+ startDate = moment(endDate).startOf('year').toDate();
8725
+ }
8726
+ else if (this.shortcutValue === 'All') {
8727
+ startDate = new Date(2017, 0, 1, 0, 0, 0, 0);
8728
+ endDate = new Date();
8729
+ }
8730
+ this.startDateObj = { year: startDate.getFullYear(), month: startDate.getMonth() + 1, day: startDate.getDate() };
8731
+ this.endDateObj = { year: endDate.getFullYear(), month: endDate.getMonth() + 1, day: endDate.getDate() };
8732
+ this.startDateObjChange.emit(this.startDateObj);
8733
+ this.endDateObjChange.emit(this.endDateObj);
8734
+ this.datesChanged.emit([this.startDateObj, this.endDateObj]);
8735
+ }
8736
+ else if (this.startDateObjForm && this.endDateObjForm) {
8737
+ let startDate = moment(new Date(this.startDateObjForm.value['year'], this.startDateObj.value['month'] - 1, this.startDateObj.value['day'])).toDate();
8738
+ let endDate = moment(new Date(this.endDateObj.value['year'], this.endDateObj.value['month'] - 1, this.endDateObj.value['day'])).toDate();
8739
+ if (this.shortcutValue === 'Q1') {
8740
+ startDate = moment().startOf('year').toDate();
8741
+ endDate = moment().startOf('year').quarter(2).subtract(1, 'days').toDate();
8742
+ }
8743
+ else if (this.shortcutValue === 'Q2') {
8744
+ startDate = moment().startOf('year').quarter(2).toDate();
8745
+ endDate = moment().startOf('year').quarter(3).subtract(1, 'days').toDate();
8746
+ }
8747
+ else if (this.shortcutValue === 'Q3') {
8748
+ startDate = moment().startOf('year').quarter(3).toDate();
8749
+ endDate = moment().startOf('year').quarter(4).subtract(1, 'days').toDate();
8750
+ }
8751
+ else if (this.shortcutValue === 'Q4') {
8752
+ startDate = moment().startOf('year').quarter(4).toDate();
8753
+ endDate = moment().endOf('year').toDate();
8754
+ }
8755
+ else if (this.shortcutValue === 'Last Q1') {
8756
+ startDate = moment().startOf('year').subtract(1, 'year').toDate();
8757
+ endDate = moment().startOf('year').subtract(1, 'year').quarter(2).subtract(1, 'days').toDate();
8758
+ }
8759
+ else if (this.shortcutValue === 'Last Q2') {
8760
+ startDate = moment().startOf('year').subtract(1, 'year').quarter(2).toDate();
8761
+ endDate = moment().startOf('year').subtract(1, 'year').quarter(3).subtract(1, 'days').toDate();
8762
+ }
8763
+ else if (this.shortcutValue === 'Last Q3') {
8764
+ startDate = moment().startOf('year').subtract(1, 'year').quarter(3).toDate();
8765
+ endDate = moment().startOf('year').subtract(1, 'year').quarter(4).subtract(1, 'days').toDate();
8766
+ }
8767
+ else if (this.shortcutValue === 'Last Q4') {
8768
+ startDate = moment().startOf('year').subtract(1, 'year').quarter(4).toDate();
8769
+ endDate = moment().endOf('year').subtract(1, 'year').toDate();
8770
+ }
8771
+ else if (this.shortcutValue === 'Today') {
8772
+ startDate = moment().startOf('day').toDate();
8773
+ endDate = new Date();
8774
+ }
8775
+ else if (this.shortcutValue === 'Yesterday') {
8776
+ startDate = moment().subtract(1, 'days').startOf('day').toDate();
8777
+ endDate = moment().subtract(1, 'days').endOf('day').toDate();
8778
+ }
8779
+ else if (this.shortcutValue === 'Week') {
8780
+ startDate = moment().startOf('isoWeek').toDate();
8781
+ endDate = new Date();
8782
+ }
8783
+ else if (this.shortcutValue === 'Last Week') {
8784
+ endDate = moment().startOf('isoWeek').subtract(1, 'days').toDate();
8785
+ startDate = moment(endDate).startOf('isoWeek').toDate();
8786
+ }
8787
+ else if (this.shortcutValue === 'Month') {
8788
+ startDate = moment().startOf('month').toDate();
8789
+ endDate = new Date();
8790
+ }
8791
+ else if (this.shortcutValue === 'Last Month') {
8792
+ endDate = moment().startOf('month').subtract(1, 'days').endOf('day').toDate();
8793
+ startDate = moment(endDate).startOf('month').toDate();
8794
+ }
8795
+ else if (this.shortcutValue === 'Last 30 Days') {
8796
+ endDate = new Date();
8797
+ startDate = moment().subtract(30, 'days').startOf('day').toDate();
8798
+ }
8799
+ else if (this.shortcutValue === 'Quarter') {
8800
+ startDate = moment().startOf('year').quarter(moment().quarter()).toDate();
8801
+ endDate = new Date();
8802
+ }
8803
+ else if (this.shortcutValue === 'Last Quarter') {
8804
+ endDate = moment().startOf('year').quarter(moment().quarter()).subtract(1, 'days').endOf('day').toDate();
8805
+ startDate = moment(endDate).startOf('quarter').toDate();
8806
+ }
8807
+ else if (this.shortcutValue === 'Year') {
8808
+ startDate = moment().startOf('year').toDate();
8809
+ endDate = new Date();
8810
+ }
8811
+ else if (this.shortcutValue === 'Last Year') {
8812
+ endDate = moment().startOf('year').subtract(1, 'days').endOf('day').toDate();
8813
+ startDate = moment(endDate).startOf('year').toDate();
8814
+ }
8815
+ else if (this.shortcutValue === 'All') {
8816
+ startDate = new Date(2017, 0, 1, 0, 0, 0, 0);
8817
+ endDate = new Date();
8818
+ }
8819
+ this.startDateObjForm.setValue({ year: startDate.getFullYear(), month: startDate.getMonth() + 1, day: startDate.getDate() });
8820
+ this.endDateObjForm.setValue({ year: endDate.getFullYear(), month: endDate.getMonth() + 1, day: endDate.getDate() });
8821
+ this.startDateObjFormChange.emit(this.startDateObjForm);
8822
+ this.endDateObjFormChange.emit(this.endDateObjForm);
8823
+ this.datesChanged.emit([this.startDateObjForm, this.endDateObjForm]);
8824
+ }
8736
8825
  this.shortcutValueChange.emit(this.shortcutValue);
8737
8826
  }
8738
8827
  this._cd.detectChanges();
8739
8828
  }
8740
8829
  }
8741
8830
  DateShortcutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateShortcutComponent, deps: [{ token: ProviderService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
8742
- DateShortcutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateShortcutComponent, selector: "date-shortcut", inputs: { startDateObj: "startDateObj", endDateObj: "endDateObj", shortcutValue: "shortcutValue" }, outputs: { startDateObjChange: "startDateObjChange", endDateObjChange: "endDateObjChange", datesChanged: "datesChanged", shortcutValueChange: "shortcutValueChange" }, providers: [ProviderService], usesInheritance: true, ngImport: i0, template: `
8831
+ DateShortcutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateShortcutComponent, selector: "date-shortcut", inputs: { startDateObj: "startDateObj", endDateObj: "endDateObj", startDateObjForm: "startDateObjForm", endDateObjForm: "endDateObjForm", shortcutValue: "shortcutValue" }, outputs: { startDateObjChange: "startDateObjChange", endDateObjChange: "endDateObjChange", startDateObjFormChange: "startDateObjFormChange", endDateObjFormChange: "endDateObjFormChange", datesChanged: "datesChanged", shortcutValueChange: "shortcutValueChange" }, providers: [ProviderService], usesInheritance: true, ngImport: i0, template: `
8743
8832
  <label class="form-control-label">Date Shortcuts</label>
8744
8833
  <ng-select [(ngModel)]="shortcutValue" (change)="onSelectShortcut()" placeholder="Select Shortcut" [clearable]="false">
8745
8834
  <ng-option value="Today">Today</ng-option>
@@ -8800,10 +8889,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8800
8889
  type: Input
8801
8890
  }], endDateObj: [{
8802
8891
  type: Input
8892
+ }], startDateObjForm: [{
8893
+ type: Input
8894
+ }], endDateObjForm: [{
8895
+ type: Input
8803
8896
  }], startDateObjChange: [{
8804
8897
  type: Output
8805
8898
  }], endDateObjChange: [{
8806
8899
  type: Output
8900
+ }], startDateObjFormChange: [{
8901
+ type: Output
8902
+ }], endDateObjFormChange: [{
8903
+ type: Output
8807
8904
  }], datesChanged: [{
8808
8905
  type: Output
8809
8906
  }], shortcutValue: [{