@bigbinary/neeto-rules-frontend 0.3.0 → 0.3.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.js CHANGED
@@ -44783,7 +44783,7 @@ var getSlackChannelErrors = function getSlackChannelErrors(slackChannels, action
44783
44783
 
44784
44784
  function cov_ydtn5b3nu() {
44785
44785
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/DropdownField.jsx";
44786
- var hash = "4bfaf367b7f98c3365bcf2170fdae32ec4959128";
44786
+ var hash = "f757258b10f39c22c2519e0f955df06c0555bce5";
44787
44787
  var global = new Function("return this")();
44788
44788
  var gcv = "__coverage__";
44789
44789
  var coverageData = {
@@ -44805,7 +44805,7 @@ function cov_ydtn5b3nu() {
44805
44805
  column: 22
44806
44806
  },
44807
44807
  end: {
44808
- line: 155,
44808
+ line: 156,
44809
44809
  column: 1
44810
44810
  }
44811
44811
  },
@@ -44965,7 +44965,7 @@ function cov_ydtn5b3nu() {
44965
44965
  column: 36
44966
44966
  },
44967
44967
  end: {
44968
- line: 68,
44968
+ line: 69,
44969
44969
  column: 3
44970
44970
  }
44971
44971
  },
@@ -44975,7 +44975,7 @@ function cov_ydtn5b3nu() {
44975
44975
  column: 4
44976
44976
  },
44977
44977
  end: {
44978
- line: 67,
44978
+ line: 68,
44979
44979
  column: 5
44980
44980
  }
44981
44981
  },
@@ -44995,7 +44995,7 @@ function cov_ydtn5b3nu() {
44995
44995
  column: 6
44996
44996
  },
44997
44997
  end: {
44998
- line: 64,
44998
+ line: 65,
44999
44999
  column: 7
45000
45000
  }
45001
45001
  },
@@ -45021,121 +45021,131 @@ function cov_ydtn5b3nu() {
45021
45021
  },
45022
45022
  "23": {
45023
45023
  start: {
45024
- line: 66,
45024
+ line: 64,
45025
+ column: 8
45026
+ },
45027
+ end: {
45028
+ line: 64,
45029
+ column: 34
45030
+ }
45031
+ },
45032
+ "24": {
45033
+ start: {
45034
+ line: 67,
45025
45035
  column: 6
45026
45036
  },
45027
45037
  end: {
45028
- line: 66,
45038
+ line: 67,
45029
45039
  column: 56
45030
45040
  }
45031
45041
  },
45032
- "24": {
45042
+ "25": {
45033
45043
  start: {
45034
- line: 70,
45044
+ line: 71,
45035
45045
  column: 2
45036
45046
  },
45037
45047
  end: {
45038
- line: 72,
45048
+ line: 73,
45039
45049
  column: 38
45040
45050
  }
45041
45051
  },
45042
- "25": {
45052
+ "26": {
45043
45053
  start: {
45044
- line: 71,
45054
+ line: 72,
45045
45055
  column: 4
45046
45056
  },
45047
45057
  end: {
45048
- line: 71,
45058
+ line: 72,
45049
45059
  column: 32
45050
45060
  }
45051
45061
  },
45052
- "26": {
45062
+ "27": {
45053
45063
  start: {
45054
- line: 74,
45064
+ line: 75,
45055
45065
  column: 2
45056
45066
  },
45057
45067
  end: {
45058
- line: 154,
45068
+ line: 155,
45059
45069
  column: 4
45060
45070
  }
45061
45071
  },
45062
- "27": {
45072
+ "28": {
45063
45073
  start: {
45064
- line: 102,
45074
+ line: 103,
45065
45075
  column: 14
45066
45076
  },
45067
45077
  end: {
45068
- line: 102,
45078
+ line: 103,
45069
45079
  column: 80
45070
45080
  }
45071
45081
  },
45072
- "28": {
45082
+ "29": {
45073
45083
  start: {
45074
- line: 103,
45084
+ line: 104,
45075
45085
  column: 14
45076
45086
  },
45077
45087
  end: {
45078
- line: 103,
45088
+ line: 104,
45079
45089
  column: 51
45080
45090
  }
45081
45091
  },
45082
- "29": {
45092
+ "30": {
45083
45093
  start: {
45084
- line: 103,
45094
+ line: 104,
45085
45095
  column: 39
45086
45096
  },
45087
45097
  end: {
45088
- line: 103,
45098
+ line: 104,
45089
45099
  column: 49
45090
45100
  }
45091
45101
  },
45092
- "30": {
45102
+ "31": {
45093
45103
  start: {
45094
- line: 120,
45104
+ line: 121,
45095
45105
  column: 29
45096
45106
  },
45097
45107
  end: {
45098
- line: 120,
45108
+ line: 121,
45099
45109
  column: 58
45100
45110
  }
45101
45111
  },
45102
- "31": {
45112
+ "32": {
45103
45113
  start: {
45104
- line: 121,
45114
+ line: 122,
45105
45115
  column: 28
45106
45116
  },
45107
45117
  end: {
45108
- line: 121,
45118
+ line: 122,
45109
45119
  column: 47
45110
45120
  }
45111
45121
  },
45112
- "32": {
45122
+ "33": {
45113
45123
  start: {
45114
- line: 128,
45124
+ line: 129,
45115
45125
  column: 14
45116
45126
  },
45117
45127
  end: {
45118
- line: 143,
45128
+ line: 144,
45119
45129
  column: 32
45120
45130
  }
45121
45131
  },
45122
- "33": {
45132
+ "34": {
45123
45133
  start: {
45124
- line: 140,
45134
+ line: 141,
45125
45135
  column: 31
45126
45136
  },
45127
45137
  end: {
45128
- line: 140,
45138
+ line: 141,
45129
45139
  column: 57
45130
45140
  }
45131
45141
  },
45132
- "34": {
45142
+ "35": {
45133
45143
  start: {
45134
- line: 157,
45144
+ line: 158,
45135
45145
  column: 0
45136
45146
  },
45137
45147
  end: {
45138
- line: 161,
45148
+ line: 162,
45139
45149
  column: 2
45140
45150
  }
45141
45151
  }
@@ -45159,7 +45169,7 @@ function cov_ydtn5b3nu() {
45159
45169
  column: 75
45160
45170
  },
45161
45171
  end: {
45162
- line: 155,
45172
+ line: 156,
45163
45173
  column: 1
45164
45174
  }
45165
45175
  },
@@ -45231,7 +45241,7 @@ function cov_ydtn5b3nu() {
45231
45241
  column: 42
45232
45242
  },
45233
45243
  end: {
45234
- line: 68,
45244
+ line: 69,
45235
45245
  column: 3
45236
45246
  }
45237
45247
  },
@@ -45241,169 +45251,169 @@ function cov_ydtn5b3nu() {
45241
45251
  name: "(anonymous_4)",
45242
45252
  decl: {
45243
45253
  start: {
45244
- line: 70,
45254
+ line: 71,
45245
45255
  column: 12
45246
45256
  },
45247
45257
  end: {
45248
- line: 70,
45258
+ line: 71,
45249
45259
  column: 13
45250
45260
  }
45251
45261
  },
45252
45262
  loc: {
45253
45263
  start: {
45254
- line: 70,
45264
+ line: 71,
45255
45265
  column: 18
45256
45266
  },
45257
45267
  end: {
45258
- line: 72,
45268
+ line: 73,
45259
45269
  column: 3
45260
45270
  }
45261
45271
  },
45262
- line: 70
45272
+ line: 71
45263
45273
  },
45264
45274
  "5": {
45265
45275
  name: "(anonymous_5)",
45266
45276
  decl: {
45267
45277
  start: {
45268
- line: 101,
45278
+ line: 102,
45269
45279
  column: 21
45270
45280
  },
45271
45281
  end: {
45272
- line: 101,
45282
+ line: 102,
45273
45283
  column: 22
45274
45284
  }
45275
45285
  },
45276
45286
  loc: {
45277
45287
  start: {
45278
- line: 101,
45288
+ line: 102,
45279
45289
  column: 27
45280
45290
  },
45281
45291
  end: {
45282
- line: 104,
45292
+ line: 105,
45283
45293
  column: 13
45284
45294
  }
45285
45295
  },
45286
- line: 101
45296
+ line: 102
45287
45297
  },
45288
45298
  "6": {
45289
45299
  name: "(anonymous_6)",
45290
45300
  decl: {
45291
45301
  start: {
45292
- line: 103,
45302
+ line: 104,
45293
45303
  column: 26
45294
45304
  },
45295
45305
  end: {
45296
- line: 103,
45306
+ line: 104,
45297
45307
  column: 27
45298
45308
  }
45299
45309
  },
45300
45310
  loc: {
45301
45311
  start: {
45302
- line: 103,
45312
+ line: 104,
45303
45313
  column: 39
45304
45314
  },
45305
45315
  end: {
45306
- line: 103,
45316
+ line: 104,
45307
45317
  column: 49
45308
45318
  }
45309
45319
  },
45310
- line: 103
45320
+ line: 104
45311
45321
  },
45312
45322
  "7": {
45313
45323
  name: "(anonymous_7)",
45314
45324
  decl: {
45315
45325
  start: {
45316
- line: 120,
45326
+ line: 121,
45317
45327
  column: 24
45318
45328
  },
45319
45329
  end: {
45320
- line: 120,
45330
+ line: 121,
45321
45331
  column: 25
45322
45332
  }
45323
45333
  },
45324
45334
  loc: {
45325
45335
  start: {
45326
- line: 120,
45336
+ line: 121,
45327
45337
  column: 29
45328
45338
  },
45329
45339
  end: {
45330
- line: 120,
45340
+ line: 121,
45331
45341
  column: 58
45332
45342
  }
45333
45343
  },
45334
- line: 120
45344
+ line: 121
45335
45345
  },
45336
45346
  "8": {
45337
45347
  name: "(anonymous_8)",
45338
45348
  decl: {
45339
45349
  start: {
45340
- line: 121,
45350
+ line: 122,
45341
45351
  column: 23
45342
45352
  },
45343
45353
  end: {
45344
- line: 121,
45354
+ line: 122,
45345
45355
  column: 24
45346
45356
  }
45347
45357
  },
45348
45358
  loc: {
45349
45359
  start: {
45350
- line: 121,
45360
+ line: 122,
45351
45361
  column: 28
45352
45362
  },
45353
45363
  end: {
45354
- line: 121,
45364
+ line: 122,
45355
45365
  column: 47
45356
45366
  }
45357
45367
  },
45358
- line: 121
45368
+ line: 122
45359
45369
  },
45360
45370
  "9": {
45361
45371
  name: "(anonymous_9)",
45362
45372
  decl: {
45363
45373
  start: {
45364
- line: 127,
45374
+ line: 128,
45365
45375
  column: 33
45366
45376
  },
45367
45377
  end: {
45368
- line: 127,
45378
+ line: 128,
45369
45379
  column: 34
45370
45380
  }
45371
45381
  },
45372
45382
  loc: {
45373
45383
  start: {
45374
- line: 128,
45384
+ line: 129,
45375
45385
  column: 14
45376
45386
  },
45377
45387
  end: {
45378
- line: 143,
45388
+ line: 144,
45379
45389
  column: 32
45380
45390
  }
45381
45391
  },
45382
- line: 128
45392
+ line: 129
45383
45393
  },
45384
45394
  "10": {
45385
45395
  name: "(anonymous_10)",
45386
45396
  decl: {
45387
45397
  start: {
45388
- line: 140,
45398
+ line: 141,
45389
45399
  column: 25
45390
45400
  },
45391
45401
  end: {
45392
- line: 140,
45402
+ line: 141,
45393
45403
  column: 26
45394
45404
  }
45395
45405
  },
45396
45406
  loc: {
45397
45407
  start: {
45398
- line: 140,
45408
+ line: 141,
45399
45409
  column: 31
45400
45410
  },
45401
45411
  end: {
45402
- line: 140,
45412
+ line: 141,
45403
45413
  column: 57
45404
45414
  }
45405
45415
  },
45406
- line: 140
45416
+ line: 141
45407
45417
  }
45408
45418
  },
45409
45419
  branchMap: {
@@ -45531,7 +45541,7 @@ function cov_ydtn5b3nu() {
45531
45541
  column: 4
45532
45542
  },
45533
45543
  end: {
45534
- line: 67,
45544
+ line: 68,
45535
45545
  column: 5
45536
45546
  }
45537
45547
  },
@@ -45542,16 +45552,16 @@ function cov_ydtn5b3nu() {
45542
45552
  column: 4
45543
45553
  },
45544
45554
  end: {
45545
- line: 67,
45555
+ line: 68,
45546
45556
  column: 5
45547
45557
  }
45548
45558
  }, {
45549
45559
  start: {
45550
- line: 65,
45560
+ line: 66,
45551
45561
  column: 11
45552
45562
  },
45553
45563
  end: {
45554
- line: 67,
45564
+ line: 68,
45555
45565
  column: 5
45556
45566
  }
45557
45567
  }],
@@ -45564,7 +45574,7 @@ function cov_ydtn5b3nu() {
45564
45574
  column: 6
45565
45575
  },
45566
45576
  end: {
45567
- line: 64,
45577
+ line: 65,
45568
45578
  column: 7
45569
45579
  }
45570
45580
  },
@@ -45575,7 +45585,7 @@ function cov_ydtn5b3nu() {
45575
45585
  column: 6
45576
45586
  },
45577
45587
  end: {
45578
- line: 64,
45588
+ line: 65,
45579
45589
  column: 7
45580
45590
  }
45581
45591
  }, {
@@ -45584,7 +45594,7 @@ function cov_ydtn5b3nu() {
45584
45594
  column: 13
45585
45595
  },
45586
45596
  end: {
45587
- line: 64,
45597
+ line: 65,
45588
45598
  column: 7
45589
45599
  }
45590
45600
  }],
@@ -45593,134 +45603,134 @@ function cov_ydtn5b3nu() {
45593
45603
  "5": {
45594
45604
  loc: {
45595
45605
  start: {
45596
- line: 76,
45606
+ line: 77,
45597
45607
  column: 7
45598
45608
  },
45599
45609
  end: {
45600
- line: 85,
45610
+ line: 86,
45601
45611
  column: 7
45602
45612
  }
45603
45613
  },
45604
45614
  type: "binary-expr",
45605
45615
  locations: [{
45606
45616
  start: {
45607
- line: 76,
45617
+ line: 77,
45608
45618
  column: 7
45609
45619
  },
45610
45620
  end: {
45611
- line: 76,
45621
+ line: 77,
45612
45622
  column: 35
45613
45623
  }
45614
45624
  }, {
45615
45625
  start: {
45616
- line: 77,
45626
+ line: 78,
45617
45627
  column: 8
45618
45628
  },
45619
45629
  end: {
45620
- line: 84,
45630
+ line: 85,
45621
45631
  column: 21
45622
45632
  }
45623
45633
  }],
45624
- line: 76
45634
+ line: 77
45625
45635
  },
45626
45636
  "6": {
45627
45637
  loc: {
45628
45638
  start: {
45629
- line: 112,
45639
+ line: 113,
45630
45640
  column: 11
45631
45641
  },
45632
45642
  end: {
45633
- line: 123,
45643
+ line: 124,
45634
45644
  column: 11
45635
45645
  }
45636
45646
  },
45637
45647
  type: "binary-expr",
45638
45648
  locations: [{
45639
45649
  start: {
45640
- line: 112,
45650
+ line: 113,
45641
45651
  column: 11
45642
45652
  },
45643
45653
  end: {
45644
- line: 112,
45654
+ line: 113,
45645
45655
  column: 57
45646
45656
  }
45647
45657
  }, {
45648
45658
  start: {
45649
- line: 113,
45659
+ line: 114,
45650
45660
  column: 12
45651
45661
  },
45652
45662
  end: {
45653
- line: 122,
45663
+ line: 123,
45654
45664
  column: 14
45655
45665
  }
45656
45666
  }],
45657
- line: 112
45667
+ line: 113
45658
45668
  },
45659
45669
  "7": {
45660
45670
  loc: {
45661
45671
  start: {
45662
- line: 136,
45672
+ line: 137,
45663
45673
  column: 18
45664
45674
  },
45665
45675
  end: {
45666
- line: 138,
45676
+ line: 139,
45667
45677
  column: 19
45668
45678
  }
45669
45679
  },
45670
45680
  type: "binary-expr",
45671
45681
  locations: [{
45672
45682
  start: {
45673
- line: 136,
45683
+ line: 137,
45674
45684
  column: 18
45675
45685
  },
45676
45686
  end: {
45677
- line: 136,
45687
+ line: 137,
45678
45688
  column: 62
45679
45689
  }
45680
45690
  }, {
45681
45691
  start: {
45682
- line: 137,
45692
+ line: 138,
45683
45693
  column: 20
45684
45694
  },
45685
45695
  end: {
45686
- line: 137,
45696
+ line: 138,
45687
45697
  column: 67
45688
45698
  }
45689
45699
  }],
45690
- line: 136
45700
+ line: 137
45691
45701
  },
45692
45702
  "8": {
45693
45703
  loc: {
45694
45704
  start: {
45695
- line: 146,
45705
+ line: 147,
45696
45706
  column: 11
45697
45707
  },
45698
45708
  end: {
45699
- line: 150,
45709
+ line: 151,
45700
45710
  column: 11
45701
45711
  }
45702
45712
  },
45703
45713
  type: "binary-expr",
45704
45714
  locations: [{
45705
45715
  start: {
45706
- line: 146,
45716
+ line: 147,
45707
45717
  column: 11
45708
45718
  },
45709
45719
  end: {
45710
- line: 146,
45720
+ line: 147,
45711
45721
  column: 35
45712
45722
  }
45713
45723
  }, {
45714
45724
  start: {
45715
- line: 147,
45725
+ line: 148,
45716
45726
  column: 12
45717
45727
  },
45718
45728
  end: {
45719
- line: 149,
45729
+ line: 150,
45720
45730
  column: 30
45721
45731
  }
45722
45732
  }],
45723
- line: 146
45733
+ line: 147
45724
45734
  }
45725
45735
  },
45726
45736
  s: {
@@ -45758,7 +45768,8 @@ function cov_ydtn5b3nu() {
45758
45768
  "31": 0,
45759
45769
  "32": 0,
45760
45770
  "33": 0,
45761
- "34": 0
45771
+ "34": 0,
45772
+ "35": 0
45762
45773
  },
45763
45774
  f: {
45764
45775
  "0": 0,
@@ -45785,7 +45796,7 @@ function cov_ydtn5b3nu() {
45785
45796
  "8": [0, 0]
45786
45797
  },
45787
45798
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
45788
- hash: "4bfaf367b7f98c3365bcf2170fdae32ec4959128"
45799
+ hash: "f757258b10f39c22c2519e0f955df06c0555bce5"
45789
45800
  };
45790
45801
  var coverage = global[gcv] || (global[gcv] = {});
45791
45802
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -45873,22 +45884,24 @@ var DropdownField$1 = function DropdownField(_ref2) {
45873
45884
  setDefaultSelectedOption({
45874
45885
  label: defaultLabel
45875
45886
  });
45887
+ cov_ydtn5b3nu().s[23]++;
45888
+ setFieldValue(name, null);
45876
45889
  }
45877
45890
  } else {
45878
45891
  cov_ydtn5b3nu().b[3][1]++;
45879
- cov_ydtn5b3nu().s[23]++;
45892
+ cov_ydtn5b3nu().s[24]++;
45880
45893
  setDefaultSelectedOption({
45881
45894
  label: defaultLabel
45882
45895
  });
45883
45896
  }
45884
45897
  };
45885
- cov_ydtn5b3nu().s[24]++;
45898
+ cov_ydtn5b3nu().s[25]++;
45886
45899
  useEffect(function () {
45887
45900
  cov_ydtn5b3nu().f[4]++;
45888
- cov_ydtn5b3nu().s[25]++;
45901
+ cov_ydtn5b3nu().s[26]++;
45889
45902
  findDefaultSelectedOption();
45890
45903
  }, [defaultValue, dropdownOptions]);
45891
- cov_ydtn5b3nu().s[26]++;
45904
+ cov_ydtn5b3nu().s[27]++;
45892
45905
  return /*#__PURE__*/React.createElement(React.Fragment, null, (cov_ydtn5b3nu().b[5][0]++, !selectedField.hideSeparator) && (cov_ydtn5b3nu().b[5][1]++, /*#__PURE__*/React.createElement(Typography, {
45893
45906
  className: "neeto-ui-text-gray-700 mt-1",
45894
45907
  "data-cy": "action-dropdown-seperator-text",
@@ -45907,12 +45920,12 @@ var DropdownField$1 = function DropdownField(_ref2) {
45907
45920
  }),
45908
45921
  onClick: function onClick() {
45909
45922
  cov_ydtn5b3nu().f[5]++;
45910
- cov_ydtn5b3nu().s[27]++;
45911
- setTouched(assocPath(["actions", "value", index], true, touched));
45912
45923
  cov_ydtn5b3nu().s[28]++;
45924
+ setTouched(assocPath(["actions", "value", index], true, touched));
45925
+ cov_ydtn5b3nu().s[29]++;
45913
45926
  setIsActive(function (prevState) {
45914
45927
  cov_ydtn5b3nu().f[6]++;
45915
- cov_ydtn5b3nu().s[29]++;
45928
+ cov_ydtn5b3nu().s[30]++;
45916
45929
  return !prevState;
45917
45930
  });
45918
45931
  }
@@ -45929,19 +45942,19 @@ var DropdownField$1 = function DropdownField(_ref2) {
45929
45942
  value: searchTerm,
45930
45943
  onChange: function onChange(e) {
45931
45944
  cov_ydtn5b3nu().f[7]++;
45932
- cov_ydtn5b3nu().s[30]++;
45945
+ cov_ydtn5b3nu().s[31]++;
45933
45946
  return setSearchTerm(e.target.value);
45934
45947
  },
45935
45948
  onClick: function onClick(e) {
45936
45949
  cov_ydtn5b3nu().f[8]++;
45937
- cov_ydtn5b3nu().s[31]++;
45950
+ cov_ydtn5b3nu().s[32]++;
45938
45951
  return e.stopPropagation();
45939
45952
  }
45940
45953
  })), /*#__PURE__*/React.createElement(OptionsWrapper, {
45941
45954
  hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3
45942
45955
  }, searchedOptions.map(function (option, idx) {
45943
45956
  cov_ydtn5b3nu().f[9]++;
45944
- cov_ydtn5b3nu().s[32]++;
45957
+ cov_ydtn5b3nu().s[33]++;
45945
45958
  return /*#__PURE__*/React.createElement(MenuItem$9.Button, {
45946
45959
  "data-cy": "".concat(joinHyphenCase(option.label), "-menu-item"),
45947
45960
  key: idx,
@@ -45953,7 +45966,7 @@ var DropdownField$1 = function DropdownField(_ref2) {
45953
45966
  })),
45954
45967
  onClick: function onClick() {
45955
45968
  cov_ydtn5b3nu().f[10]++;
45956
- cov_ydtn5b3nu().s[33]++;
45969
+ cov_ydtn5b3nu().s[34]++;
45957
45970
  return handleSelectOption(option);
45958
45971
  }
45959
45972
  }, option.label);
@@ -45961,7 +45974,7 @@ var DropdownField$1 = function DropdownField(_ref2) {
45961
45974
  "data-cy": "no-options-menu-item"
45962
45975
  }, t("common.noOptions"))))));
45963
45976
  };
45964
- cov_ydtn5b3nu().s[34]++;
45977
+ cov_ydtn5b3nu().s[35]++;
45965
45978
 
45966
45979
  function cov_1ifnsi25f3() {
45967
45980
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/EditorAction.jsx";