@fileverse-dev/fortune-core 1.0.2-mod-60 → 1.0.2-mod-61-patch-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.
package/dist/index.esm.js CHANGED
@@ -141,27 +141,6 @@ var en = {
141
141
  cannotSelectMultiple: "Cannot select multiple selections"
142
142
  },
143
143
  functionlist: [].concat(_toConsumableArray(FUNCTION_LOCALE), [{
144
- n: "PnL",
145
- t: 0,
146
- d: "Subtract each element from A column from B column and return the total sum.",
147
- a: "Returns the total of A - B element-wise subtraction across two ranges.",
148
- m: [2],
149
- p: [{
150
- name: "A",
151
- detail: "The column or array of values to subtract from B (e.g. cost).",
152
- example: "A1:A10",
153
- require: "m",
154
- repeat: "n",
155
- type: "range"
156
- }, {
157
- name: "B",
158
- detail: "The column or array of values to subtract A from (e.g. revenue).",
159
- example: "B1:B10",
160
- require: "m",
161
- repeat: "n",
162
- type: "range"
163
- }]
164
- }, {
165
144
  n: "SUMIF",
166
145
  t: 0,
167
146
  d: "Returns a conditional sum across a range.",
@@ -3487,7 +3466,7 @@ var en = {
3487
3466
  p: [{
3488
3467
  name: "time",
3489
3468
  detail: "The time from which to calculate the second component",
3490
- example: "TIME(11",
3469
+ example: "\"11:40:59\"",
3491
3470
  require: "m",
3492
3471
  repeat: "n",
3493
3472
  type: "rangeall"
@@ -3501,7 +3480,7 @@ var en = {
3501
3480
  p: [{
3502
3481
  name: "time",
3503
3482
  detail: "The time from which to calculate the minute component.",
3504
- example: "TIME(11",
3483
+ example: "\"11:40:59\"",
3505
3484
  require: "m",
3506
3485
  repeat: "n",
3507
3486
  type: "rangeall"
@@ -3515,7 +3494,7 @@ var en = {
3515
3494
  p: [{
3516
3495
  name: "time",
3517
3496
  detail: "The time from which to calculate the hour component.",
3518
- example: "TIME(11",
3497
+ example: "\"11:40:59\"",
3519
3498
  require: "m",
3520
3499
  repeat: "n",
3521
3500
  type: "rangeall"
@@ -3536,21 +3515,21 @@ var en = {
3536
3515
  p: [{
3537
3516
  name: "start_date",
3538
3517
  detail: "The start date of the period from which to calculate the number of net working days.",
3539
- example: "DATE(1969",
3518
+ example: "\"16/07/1969\"",
3540
3519
  require: "m",
3541
3520
  repeat: "n",
3542
3521
  type: "rangeall"
3543
3522
  }, {
3544
3523
  name: "end_date",
3545
3524
  detail: "The end date of the period from which to calculate the number of net working days.",
3546
- example: "7",
3525
+ example: "\"24/07/1969\"",
3547
3526
  require: "m",
3548
3527
  repeat: "n",
3549
3528
  type: "rangeall"
3550
3529
  }, {
3551
3530
  name: "holidays",
3552
3531
  detail: "A range or array constant containing the date serial numbers to consider holidays.",
3553
- example: "16)",
3532
+ example: "A1:A10",
3554
3533
  require: "o",
3555
3534
  repeat: "n",
3556
3535
  type: "rangeall"
@@ -3564,28 +3543,28 @@ var en = {
3564
3543
  p: [{
3565
3544
  name: "start_date",
3566
3545
  detail: "The start date of the period from which to calculate the number of net working days.",
3567
- example: "DATE(1969",
3546
+ example: "\"16/07/1969\"",
3568
3547
  require: "m",
3569
3548
  repeat: "n",
3570
3549
  type: "rangeall"
3571
3550
  }, {
3572
3551
  name: "end_date",
3573
3552
  detail: "The end date of the period from which to calculate the number of net working days.",
3574
- example: "7",
3553
+ example: "\"24/07/1969\"",
3575
3554
  require: "m",
3576
3555
  repeat: "n",
3577
3556
  type: "rangeall"
3578
3557
  }, {
3579
3558
  name: "weekend",
3580
3559
  detail: "A number or string representing which days of the week are considered weekends.",
3581
- example: "16)",
3560
+ example: "1",
3582
3561
  require: "o",
3583
3562
  repeat: "n",
3584
3563
  type: "rangeall"
3585
3564
  }, {
3586
3565
  name: "holidays",
3587
3566
  detail: "A range or array constant containing the dates to consider as holidays.",
3588
- example: "DATE(1969",
3567
+ example: "A1:A10",
3589
3568
  require: "o",
3590
3569
  repeat: "n",
3591
3570
  type: "rangeall"
@@ -3669,14 +3648,14 @@ var en = {
3669
3648
  p: [{
3670
3649
  name: "end_date",
3671
3650
  detail: "The end of the date range.",
3672
- example: "2011-3-15",
3651
+ example: "\"24/07/1969\"",
3673
3652
  require: "m",
3674
3653
  repeat: "n",
3675
3654
  type: "rangeall"
3676
3655
  }, {
3677
3656
  name: "start_date",
3678
3657
  detail: "The start of the date range.",
3679
- example: "2011-2-1",
3658
+ example: "\"24/07/1969\"",
3680
3659
  require: "m",
3681
3660
  repeat: "n",
3682
3661
  type: "rangeall"
@@ -3690,21 +3669,21 @@ var en = {
3690
3669
  p: [{
3691
3670
  name: "start_date",
3692
3671
  detail: "The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3693
- example: "DATE(1969",
3672
+ example: "\"10/06/2025\"",
3694
3673
  require: "m",
3695
3674
  repeat: "n",
3696
3675
  type: "rangeall"
3697
3676
  }, {
3698
3677
  name: "end_date",
3699
3678
  detail: "The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3700
- example: "7",
3679
+ example: "\"19/08/2027\"",
3701
3680
  require: "m",
3702
3681
  repeat: "n",
3703
3682
  type: "rangeall"
3704
3683
  }, {
3705
3684
  name: "method",
3706
3685
  detail: "An indicator of what day count method to use.",
3707
- example: "FALSE()",
3686
+ example: "1",
3708
3687
  require: "o",
3709
3688
  repeat: "n",
3710
3689
  type: "rangeall"
@@ -3760,14 +3739,14 @@ var en = {
3760
3739
  p: [{
3761
3740
  name: "start_date",
3762
3741
  detail: "The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3763
- example: "\"1969-07-16\"",
3742
+ example: "\"16/07/1969\"",
3764
3743
  require: "m",
3765
3744
  repeat: "n",
3766
3745
  type: "rangeall"
3767
3746
  }, {
3768
3747
  name: "end_date",
3769
3748
  detail: "The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3770
- example: "\"1969-07-24\"",
3749
+ example: "\"24/07/1969\"",
3771
3750
  require: "m",
3772
3751
  repeat: "n",
3773
3752
  type: "rangeall"
@@ -3788,21 +3767,21 @@ var en = {
3788
3767
  p: [{
3789
3768
  name: "start_date",
3790
3769
  detail: "The date from which to begin counting.",
3791
- example: "DATE(1969",
3770
+ example: "\"20/07/1969\"",
3792
3771
  require: "m",
3793
3772
  repeat: "n",
3794
3773
  type: "rangeall"
3795
3774
  }, {
3796
3775
  name: "num_days",
3797
3776
  detail: "The number of working days to advance from `start_date`. If negative, counts backwards.",
3798
- example: "7",
3777
+ example: "4",
3799
3778
  require: "m",
3800
3779
  repeat: "n",
3801
3780
  type: "rangenumber"
3802
3781
  }, {
3803
3782
  name: "holidays",
3804
3783
  detail: "A range or array constant containing the dates to consider holidays.",
3805
- example: "16)",
3784
+ example: "A1:A10",
3806
3785
  require: "o",
3807
3786
  repeat: "n",
3808
3787
  type: "rangeall"
@@ -3816,28 +3795,28 @@ var en = {
3816
3795
  p: [{
3817
3796
  name: "start_date",
3818
3797
  detail: "The date from which to begin counting.",
3819
- example: "DATE(1969",
3798
+ example: "\"21/07/1969\"",
3820
3799
  require: "m",
3821
3800
  repeat: "n",
3822
3801
  type: "rangeall"
3823
3802
  }, {
3824
3803
  name: "num_days",
3825
3804
  detail: "The number of working days to advance from `start_date`. If negative, counts backwards.",
3826
- example: "7",
3805
+ example: "4",
3827
3806
  require: "m",
3828
3807
  repeat: "n",
3829
3808
  type: "rangenumber"
3830
3809
  }, {
3831
3810
  name: "weekend",
3832
3811
  detail: "A number or string representing which days of the week are considered weekends.",
3833
- example: "16)",
3812
+ example: "1",
3834
3813
  require: "o",
3835
3814
  repeat: "n",
3836
3815
  type: "rangeall"
3837
3816
  }, {
3838
3817
  name: "holidays",
3839
3818
  detail: "A range or array constant containing the dates to consider holidays.",
3840
- example: "DATE(1969",
3819
+ example: "A1:A10",
3841
3820
  require: "o",
3842
3821
  repeat: "n",
3843
3822
  type: "rangeall"
@@ -3865,21 +3844,21 @@ var en = {
3865
3844
  p: [{
3866
3845
  name: "start_date",
3867
3846
  detail: "The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3868
- example: "DATE(1969",
3847
+ example: "\"16/07/1969\"",
3869
3848
  require: "m",
3870
3849
  repeat: "n",
3871
3850
  type: "rangeall"
3872
3851
  }, {
3873
3852
  name: "end_date",
3874
3853
  detail: "The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3875
- example: "7",
3854
+ example: "\"24/07/1969\"",
3876
3855
  require: "m",
3877
3856
  repeat: "n",
3878
3857
  type: "rangeall"
3879
3858
  }, {
3880
3859
  name: "day_count_convention",
3881
3860
  detail: "An indicator of what day count method to use.",
3882
- example: "16)",
3861
+ example: "1",
3883
3862
  require: "o",
3884
3863
  repeat: "n",
3885
3864
  type: "rangenumber"
@@ -8323,7 +8302,7 @@ var en = {
8323
8302
  m: [1, 1],
8324
8303
  p: [{
8325
8304
  name: "value",
8326
- example: '"1990-01-01"',
8305
+ example: '"20/07/1969"',
8327
8306
  detail: "The value to be verified as a date.",
8328
8307
  require: "m",
8329
8308
  repeat: "n",
package/dist/index.js CHANGED
@@ -151,27 +151,6 @@ var en = {
151
151
  cannotSelectMultiple: "Cannot select multiple selections"
152
152
  },
153
153
  functionlist: [].concat(_toConsumableArray(cryptoConstants.FUNCTION_LOCALE), [{
154
- n: "PnL",
155
- t: 0,
156
- d: "Subtract each element from A column from B column and return the total sum.",
157
- a: "Returns the total of A - B element-wise subtraction across two ranges.",
158
- m: [2],
159
- p: [{
160
- name: "A",
161
- detail: "The column or array of values to subtract from B (e.g. cost).",
162
- example: "A1:A10",
163
- require: "m",
164
- repeat: "n",
165
- type: "range"
166
- }, {
167
- name: "B",
168
- detail: "The column or array of values to subtract A from (e.g. revenue).",
169
- example: "B1:B10",
170
- require: "m",
171
- repeat: "n",
172
- type: "range"
173
- }]
174
- }, {
175
154
  n: "SUMIF",
176
155
  t: 0,
177
156
  d: "Returns a conditional sum across a range.",
@@ -3497,7 +3476,7 @@ var en = {
3497
3476
  p: [{
3498
3477
  name: "time",
3499
3478
  detail: "The time from which to calculate the second component",
3500
- example: "TIME(11",
3479
+ example: "\"11:40:59\"",
3501
3480
  require: "m",
3502
3481
  repeat: "n",
3503
3482
  type: "rangeall"
@@ -3511,7 +3490,7 @@ var en = {
3511
3490
  p: [{
3512
3491
  name: "time",
3513
3492
  detail: "The time from which to calculate the minute component.",
3514
- example: "TIME(11",
3493
+ example: "\"11:40:59\"",
3515
3494
  require: "m",
3516
3495
  repeat: "n",
3517
3496
  type: "rangeall"
@@ -3525,7 +3504,7 @@ var en = {
3525
3504
  p: [{
3526
3505
  name: "time",
3527
3506
  detail: "The time from which to calculate the hour component.",
3528
- example: "TIME(11",
3507
+ example: "\"11:40:59\"",
3529
3508
  require: "m",
3530
3509
  repeat: "n",
3531
3510
  type: "rangeall"
@@ -3546,21 +3525,21 @@ var en = {
3546
3525
  p: [{
3547
3526
  name: "start_date",
3548
3527
  detail: "The start date of the period from which to calculate the number of net working days.",
3549
- example: "DATE(1969",
3528
+ example: "\"16/07/1969\"",
3550
3529
  require: "m",
3551
3530
  repeat: "n",
3552
3531
  type: "rangeall"
3553
3532
  }, {
3554
3533
  name: "end_date",
3555
3534
  detail: "The end date of the period from which to calculate the number of net working days.",
3556
- example: "7",
3535
+ example: "\"24/07/1969\"",
3557
3536
  require: "m",
3558
3537
  repeat: "n",
3559
3538
  type: "rangeall"
3560
3539
  }, {
3561
3540
  name: "holidays",
3562
3541
  detail: "A range or array constant containing the date serial numbers to consider holidays.",
3563
- example: "16)",
3542
+ example: "A1:A10",
3564
3543
  require: "o",
3565
3544
  repeat: "n",
3566
3545
  type: "rangeall"
@@ -3574,28 +3553,28 @@ var en = {
3574
3553
  p: [{
3575
3554
  name: "start_date",
3576
3555
  detail: "The start date of the period from which to calculate the number of net working days.",
3577
- example: "DATE(1969",
3556
+ example: "\"16/07/1969\"",
3578
3557
  require: "m",
3579
3558
  repeat: "n",
3580
3559
  type: "rangeall"
3581
3560
  }, {
3582
3561
  name: "end_date",
3583
3562
  detail: "The end date of the period from which to calculate the number of net working days.",
3584
- example: "7",
3563
+ example: "\"24/07/1969\"",
3585
3564
  require: "m",
3586
3565
  repeat: "n",
3587
3566
  type: "rangeall"
3588
3567
  }, {
3589
3568
  name: "weekend",
3590
3569
  detail: "A number or string representing which days of the week are considered weekends.",
3591
- example: "16)",
3570
+ example: "1",
3592
3571
  require: "o",
3593
3572
  repeat: "n",
3594
3573
  type: "rangeall"
3595
3574
  }, {
3596
3575
  name: "holidays",
3597
3576
  detail: "A range or array constant containing the dates to consider as holidays.",
3598
- example: "DATE(1969",
3577
+ example: "A1:A10",
3599
3578
  require: "o",
3600
3579
  repeat: "n",
3601
3580
  type: "rangeall"
@@ -3679,14 +3658,14 @@ var en = {
3679
3658
  p: [{
3680
3659
  name: "end_date",
3681
3660
  detail: "The end of the date range.",
3682
- example: "2011-3-15",
3661
+ example: "\"24/07/1969\"",
3683
3662
  require: "m",
3684
3663
  repeat: "n",
3685
3664
  type: "rangeall"
3686
3665
  }, {
3687
3666
  name: "start_date",
3688
3667
  detail: "The start of the date range.",
3689
- example: "2011-2-1",
3668
+ example: "\"24/07/1969\"",
3690
3669
  require: "m",
3691
3670
  repeat: "n",
3692
3671
  type: "rangeall"
@@ -3700,21 +3679,21 @@ var en = {
3700
3679
  p: [{
3701
3680
  name: "start_date",
3702
3681
  detail: "The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3703
- example: "DATE(1969",
3682
+ example: "\"10/06/2025\"",
3704
3683
  require: "m",
3705
3684
  repeat: "n",
3706
3685
  type: "rangeall"
3707
3686
  }, {
3708
3687
  name: "end_date",
3709
3688
  detail: "The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3710
- example: "7",
3689
+ example: "\"19/08/2027\"",
3711
3690
  require: "m",
3712
3691
  repeat: "n",
3713
3692
  type: "rangeall"
3714
3693
  }, {
3715
3694
  name: "method",
3716
3695
  detail: "An indicator of what day count method to use.",
3717
- example: "FALSE()",
3696
+ example: "1",
3718
3697
  require: "o",
3719
3698
  repeat: "n",
3720
3699
  type: "rangeall"
@@ -3770,14 +3749,14 @@ var en = {
3770
3749
  p: [{
3771
3750
  name: "start_date",
3772
3751
  detail: "The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3773
- example: "\"1969-07-16\"",
3752
+ example: "\"16/07/1969\"",
3774
3753
  require: "m",
3775
3754
  repeat: "n",
3776
3755
  type: "rangeall"
3777
3756
  }, {
3778
3757
  name: "end_date",
3779
3758
  detail: "The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3780
- example: "\"1969-07-24\"",
3759
+ example: "\"24/07/1969\"",
3781
3760
  require: "m",
3782
3761
  repeat: "n",
3783
3762
  type: "rangeall"
@@ -3798,21 +3777,21 @@ var en = {
3798
3777
  p: [{
3799
3778
  name: "start_date",
3800
3779
  detail: "The date from which to begin counting.",
3801
- example: "DATE(1969",
3780
+ example: "\"20/07/1969\"",
3802
3781
  require: "m",
3803
3782
  repeat: "n",
3804
3783
  type: "rangeall"
3805
3784
  }, {
3806
3785
  name: "num_days",
3807
3786
  detail: "The number of working days to advance from `start_date`. If negative, counts backwards.",
3808
- example: "7",
3787
+ example: "4",
3809
3788
  require: "m",
3810
3789
  repeat: "n",
3811
3790
  type: "rangenumber"
3812
3791
  }, {
3813
3792
  name: "holidays",
3814
3793
  detail: "A range or array constant containing the dates to consider holidays.",
3815
- example: "16)",
3794
+ example: "A1:A10",
3816
3795
  require: "o",
3817
3796
  repeat: "n",
3818
3797
  type: "rangeall"
@@ -3826,28 +3805,28 @@ var en = {
3826
3805
  p: [{
3827
3806
  name: "start_date",
3828
3807
  detail: "The date from which to begin counting.",
3829
- example: "DATE(1969",
3808
+ example: "\"21/07/1969\"",
3830
3809
  require: "m",
3831
3810
  repeat: "n",
3832
3811
  type: "rangeall"
3833
3812
  }, {
3834
3813
  name: "num_days",
3835
3814
  detail: "The number of working days to advance from `start_date`. If negative, counts backwards.",
3836
- example: "7",
3815
+ example: "4",
3837
3816
  require: "m",
3838
3817
  repeat: "n",
3839
3818
  type: "rangenumber"
3840
3819
  }, {
3841
3820
  name: "weekend",
3842
3821
  detail: "A number or string representing which days of the week are considered weekends.",
3843
- example: "16)",
3822
+ example: "1",
3844
3823
  require: "o",
3845
3824
  repeat: "n",
3846
3825
  type: "rangeall"
3847
3826
  }, {
3848
3827
  name: "holidays",
3849
3828
  detail: "A range or array constant containing the dates to consider holidays.",
3850
- example: "DATE(1969",
3829
+ example: "A1:A10",
3851
3830
  require: "o",
3852
3831
  repeat: "n",
3853
3832
  type: "rangeall"
@@ -3875,21 +3854,21 @@ var en = {
3875
3854
  p: [{
3876
3855
  name: "start_date",
3877
3856
  detail: "The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3878
- example: "DATE(1969",
3857
+ example: "\"16/07/1969\"",
3879
3858
  require: "m",
3880
3859
  repeat: "n",
3881
3860
  type: "rangeall"
3882
3861
  }, {
3883
3862
  name: "end_date",
3884
3863
  detail: "The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
3885
- example: "7",
3864
+ example: "\"24/07/1969\"",
3886
3865
  require: "m",
3887
3866
  repeat: "n",
3888
3867
  type: "rangeall"
3889
3868
  }, {
3890
3869
  name: "day_count_convention",
3891
3870
  detail: "An indicator of what day count method to use.",
3892
- example: "16)",
3871
+ example: "1",
3893
3872
  require: "o",
3894
3873
  repeat: "n",
3895
3874
  type: "rangenumber"
@@ -8333,7 +8312,7 @@ var en = {
8333
8312
  m: [1, 1],
8334
8313
  p: [{
8335
8314
  name: "value",
8336
- example: '"1990-01-01"',
8315
+ example: '"20/07/1969"',
8337
8316
  detail: "The value to be verified as a date.",
8338
8317
  require: "m",
8339
8318
  repeat: "n",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.2-mod-60",
3
+ "version": "1.0.2-mod-61-patch-1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "repository": "https://github.com/ruilisi/fortune-sheet",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@fileverse-dev/formula-parser": "0.2.13-mod-12",
13
+ "@fileverse-dev/formula-parser": "0.2.13-mod-13",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",