@resolveio/client-lib-core 15.1.11 → 15.1.13

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