@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.cjs.js CHANGED
@@ -44814,7 +44814,7 @@ var getSlackChannelErrors = function getSlackChannelErrors(slackChannels, action
44814
44814
 
44815
44815
  function cov_ydtn5b3nu() {
44816
44816
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/DropdownField.jsx";
44817
- var hash = "4bfaf367b7f98c3365bcf2170fdae32ec4959128";
44817
+ var hash = "f757258b10f39c22c2519e0f955df06c0555bce5";
44818
44818
  var global = new Function("return this")();
44819
44819
  var gcv = "__coverage__";
44820
44820
  var coverageData = {
@@ -44836,7 +44836,7 @@ function cov_ydtn5b3nu() {
44836
44836
  column: 22
44837
44837
  },
44838
44838
  end: {
44839
- line: 155,
44839
+ line: 156,
44840
44840
  column: 1
44841
44841
  }
44842
44842
  },
@@ -44996,7 +44996,7 @@ function cov_ydtn5b3nu() {
44996
44996
  column: 36
44997
44997
  },
44998
44998
  end: {
44999
- line: 68,
44999
+ line: 69,
45000
45000
  column: 3
45001
45001
  }
45002
45002
  },
@@ -45006,7 +45006,7 @@ function cov_ydtn5b3nu() {
45006
45006
  column: 4
45007
45007
  },
45008
45008
  end: {
45009
- line: 67,
45009
+ line: 68,
45010
45010
  column: 5
45011
45011
  }
45012
45012
  },
@@ -45026,7 +45026,7 @@ function cov_ydtn5b3nu() {
45026
45026
  column: 6
45027
45027
  },
45028
45028
  end: {
45029
- line: 64,
45029
+ line: 65,
45030
45030
  column: 7
45031
45031
  }
45032
45032
  },
@@ -45052,121 +45052,131 @@ function cov_ydtn5b3nu() {
45052
45052
  },
45053
45053
  "23": {
45054
45054
  start: {
45055
- line: 66,
45055
+ line: 64,
45056
+ column: 8
45057
+ },
45058
+ end: {
45059
+ line: 64,
45060
+ column: 34
45061
+ }
45062
+ },
45063
+ "24": {
45064
+ start: {
45065
+ line: 67,
45056
45066
  column: 6
45057
45067
  },
45058
45068
  end: {
45059
- line: 66,
45069
+ line: 67,
45060
45070
  column: 56
45061
45071
  }
45062
45072
  },
45063
- "24": {
45073
+ "25": {
45064
45074
  start: {
45065
- line: 70,
45075
+ line: 71,
45066
45076
  column: 2
45067
45077
  },
45068
45078
  end: {
45069
- line: 72,
45079
+ line: 73,
45070
45080
  column: 38
45071
45081
  }
45072
45082
  },
45073
- "25": {
45083
+ "26": {
45074
45084
  start: {
45075
- line: 71,
45085
+ line: 72,
45076
45086
  column: 4
45077
45087
  },
45078
45088
  end: {
45079
- line: 71,
45089
+ line: 72,
45080
45090
  column: 32
45081
45091
  }
45082
45092
  },
45083
- "26": {
45093
+ "27": {
45084
45094
  start: {
45085
- line: 74,
45095
+ line: 75,
45086
45096
  column: 2
45087
45097
  },
45088
45098
  end: {
45089
- line: 154,
45099
+ line: 155,
45090
45100
  column: 4
45091
45101
  }
45092
45102
  },
45093
- "27": {
45103
+ "28": {
45094
45104
  start: {
45095
- line: 102,
45105
+ line: 103,
45096
45106
  column: 14
45097
45107
  },
45098
45108
  end: {
45099
- line: 102,
45109
+ line: 103,
45100
45110
  column: 80
45101
45111
  }
45102
45112
  },
45103
- "28": {
45113
+ "29": {
45104
45114
  start: {
45105
- line: 103,
45115
+ line: 104,
45106
45116
  column: 14
45107
45117
  },
45108
45118
  end: {
45109
- line: 103,
45119
+ line: 104,
45110
45120
  column: 51
45111
45121
  }
45112
45122
  },
45113
- "29": {
45123
+ "30": {
45114
45124
  start: {
45115
- line: 103,
45125
+ line: 104,
45116
45126
  column: 39
45117
45127
  },
45118
45128
  end: {
45119
- line: 103,
45129
+ line: 104,
45120
45130
  column: 49
45121
45131
  }
45122
45132
  },
45123
- "30": {
45133
+ "31": {
45124
45134
  start: {
45125
- line: 120,
45135
+ line: 121,
45126
45136
  column: 29
45127
45137
  },
45128
45138
  end: {
45129
- line: 120,
45139
+ line: 121,
45130
45140
  column: 58
45131
45141
  }
45132
45142
  },
45133
- "31": {
45143
+ "32": {
45134
45144
  start: {
45135
- line: 121,
45145
+ line: 122,
45136
45146
  column: 28
45137
45147
  },
45138
45148
  end: {
45139
- line: 121,
45149
+ line: 122,
45140
45150
  column: 47
45141
45151
  }
45142
45152
  },
45143
- "32": {
45153
+ "33": {
45144
45154
  start: {
45145
- line: 128,
45155
+ line: 129,
45146
45156
  column: 14
45147
45157
  },
45148
45158
  end: {
45149
- line: 143,
45159
+ line: 144,
45150
45160
  column: 32
45151
45161
  }
45152
45162
  },
45153
- "33": {
45163
+ "34": {
45154
45164
  start: {
45155
- line: 140,
45165
+ line: 141,
45156
45166
  column: 31
45157
45167
  },
45158
45168
  end: {
45159
- line: 140,
45169
+ line: 141,
45160
45170
  column: 57
45161
45171
  }
45162
45172
  },
45163
- "34": {
45173
+ "35": {
45164
45174
  start: {
45165
- line: 157,
45175
+ line: 158,
45166
45176
  column: 0
45167
45177
  },
45168
45178
  end: {
45169
- line: 161,
45179
+ line: 162,
45170
45180
  column: 2
45171
45181
  }
45172
45182
  }
@@ -45190,7 +45200,7 @@ function cov_ydtn5b3nu() {
45190
45200
  column: 75
45191
45201
  },
45192
45202
  end: {
45193
- line: 155,
45203
+ line: 156,
45194
45204
  column: 1
45195
45205
  }
45196
45206
  },
@@ -45262,7 +45272,7 @@ function cov_ydtn5b3nu() {
45262
45272
  column: 42
45263
45273
  },
45264
45274
  end: {
45265
- line: 68,
45275
+ line: 69,
45266
45276
  column: 3
45267
45277
  }
45268
45278
  },
@@ -45272,169 +45282,169 @@ function cov_ydtn5b3nu() {
45272
45282
  name: "(anonymous_4)",
45273
45283
  decl: {
45274
45284
  start: {
45275
- line: 70,
45285
+ line: 71,
45276
45286
  column: 12
45277
45287
  },
45278
45288
  end: {
45279
- line: 70,
45289
+ line: 71,
45280
45290
  column: 13
45281
45291
  }
45282
45292
  },
45283
45293
  loc: {
45284
45294
  start: {
45285
- line: 70,
45295
+ line: 71,
45286
45296
  column: 18
45287
45297
  },
45288
45298
  end: {
45289
- line: 72,
45299
+ line: 73,
45290
45300
  column: 3
45291
45301
  }
45292
45302
  },
45293
- line: 70
45303
+ line: 71
45294
45304
  },
45295
45305
  "5": {
45296
45306
  name: "(anonymous_5)",
45297
45307
  decl: {
45298
45308
  start: {
45299
- line: 101,
45309
+ line: 102,
45300
45310
  column: 21
45301
45311
  },
45302
45312
  end: {
45303
- line: 101,
45313
+ line: 102,
45304
45314
  column: 22
45305
45315
  }
45306
45316
  },
45307
45317
  loc: {
45308
45318
  start: {
45309
- line: 101,
45319
+ line: 102,
45310
45320
  column: 27
45311
45321
  },
45312
45322
  end: {
45313
- line: 104,
45323
+ line: 105,
45314
45324
  column: 13
45315
45325
  }
45316
45326
  },
45317
- line: 101
45327
+ line: 102
45318
45328
  },
45319
45329
  "6": {
45320
45330
  name: "(anonymous_6)",
45321
45331
  decl: {
45322
45332
  start: {
45323
- line: 103,
45333
+ line: 104,
45324
45334
  column: 26
45325
45335
  },
45326
45336
  end: {
45327
- line: 103,
45337
+ line: 104,
45328
45338
  column: 27
45329
45339
  }
45330
45340
  },
45331
45341
  loc: {
45332
45342
  start: {
45333
- line: 103,
45343
+ line: 104,
45334
45344
  column: 39
45335
45345
  },
45336
45346
  end: {
45337
- line: 103,
45347
+ line: 104,
45338
45348
  column: 49
45339
45349
  }
45340
45350
  },
45341
- line: 103
45351
+ line: 104
45342
45352
  },
45343
45353
  "7": {
45344
45354
  name: "(anonymous_7)",
45345
45355
  decl: {
45346
45356
  start: {
45347
- line: 120,
45357
+ line: 121,
45348
45358
  column: 24
45349
45359
  },
45350
45360
  end: {
45351
- line: 120,
45361
+ line: 121,
45352
45362
  column: 25
45353
45363
  }
45354
45364
  },
45355
45365
  loc: {
45356
45366
  start: {
45357
- line: 120,
45367
+ line: 121,
45358
45368
  column: 29
45359
45369
  },
45360
45370
  end: {
45361
- line: 120,
45371
+ line: 121,
45362
45372
  column: 58
45363
45373
  }
45364
45374
  },
45365
- line: 120
45375
+ line: 121
45366
45376
  },
45367
45377
  "8": {
45368
45378
  name: "(anonymous_8)",
45369
45379
  decl: {
45370
45380
  start: {
45371
- line: 121,
45381
+ line: 122,
45372
45382
  column: 23
45373
45383
  },
45374
45384
  end: {
45375
- line: 121,
45385
+ line: 122,
45376
45386
  column: 24
45377
45387
  }
45378
45388
  },
45379
45389
  loc: {
45380
45390
  start: {
45381
- line: 121,
45391
+ line: 122,
45382
45392
  column: 28
45383
45393
  },
45384
45394
  end: {
45385
- line: 121,
45395
+ line: 122,
45386
45396
  column: 47
45387
45397
  }
45388
45398
  },
45389
- line: 121
45399
+ line: 122
45390
45400
  },
45391
45401
  "9": {
45392
45402
  name: "(anonymous_9)",
45393
45403
  decl: {
45394
45404
  start: {
45395
- line: 127,
45405
+ line: 128,
45396
45406
  column: 33
45397
45407
  },
45398
45408
  end: {
45399
- line: 127,
45409
+ line: 128,
45400
45410
  column: 34
45401
45411
  }
45402
45412
  },
45403
45413
  loc: {
45404
45414
  start: {
45405
- line: 128,
45415
+ line: 129,
45406
45416
  column: 14
45407
45417
  },
45408
45418
  end: {
45409
- line: 143,
45419
+ line: 144,
45410
45420
  column: 32
45411
45421
  }
45412
45422
  },
45413
- line: 128
45423
+ line: 129
45414
45424
  },
45415
45425
  "10": {
45416
45426
  name: "(anonymous_10)",
45417
45427
  decl: {
45418
45428
  start: {
45419
- line: 140,
45429
+ line: 141,
45420
45430
  column: 25
45421
45431
  },
45422
45432
  end: {
45423
- line: 140,
45433
+ line: 141,
45424
45434
  column: 26
45425
45435
  }
45426
45436
  },
45427
45437
  loc: {
45428
45438
  start: {
45429
- line: 140,
45439
+ line: 141,
45430
45440
  column: 31
45431
45441
  },
45432
45442
  end: {
45433
- line: 140,
45443
+ line: 141,
45434
45444
  column: 57
45435
45445
  }
45436
45446
  },
45437
- line: 140
45447
+ line: 141
45438
45448
  }
45439
45449
  },
45440
45450
  branchMap: {
@@ -45562,7 +45572,7 @@ function cov_ydtn5b3nu() {
45562
45572
  column: 4
45563
45573
  },
45564
45574
  end: {
45565
- line: 67,
45575
+ line: 68,
45566
45576
  column: 5
45567
45577
  }
45568
45578
  },
@@ -45573,16 +45583,16 @@ function cov_ydtn5b3nu() {
45573
45583
  column: 4
45574
45584
  },
45575
45585
  end: {
45576
- line: 67,
45586
+ line: 68,
45577
45587
  column: 5
45578
45588
  }
45579
45589
  }, {
45580
45590
  start: {
45581
- line: 65,
45591
+ line: 66,
45582
45592
  column: 11
45583
45593
  },
45584
45594
  end: {
45585
- line: 67,
45595
+ line: 68,
45586
45596
  column: 5
45587
45597
  }
45588
45598
  }],
@@ -45595,7 +45605,7 @@ function cov_ydtn5b3nu() {
45595
45605
  column: 6
45596
45606
  },
45597
45607
  end: {
45598
- line: 64,
45608
+ line: 65,
45599
45609
  column: 7
45600
45610
  }
45601
45611
  },
@@ -45606,7 +45616,7 @@ function cov_ydtn5b3nu() {
45606
45616
  column: 6
45607
45617
  },
45608
45618
  end: {
45609
- line: 64,
45619
+ line: 65,
45610
45620
  column: 7
45611
45621
  }
45612
45622
  }, {
@@ -45615,7 +45625,7 @@ function cov_ydtn5b3nu() {
45615
45625
  column: 13
45616
45626
  },
45617
45627
  end: {
45618
- line: 64,
45628
+ line: 65,
45619
45629
  column: 7
45620
45630
  }
45621
45631
  }],
@@ -45624,134 +45634,134 @@ function cov_ydtn5b3nu() {
45624
45634
  "5": {
45625
45635
  loc: {
45626
45636
  start: {
45627
- line: 76,
45637
+ line: 77,
45628
45638
  column: 7
45629
45639
  },
45630
45640
  end: {
45631
- line: 85,
45641
+ line: 86,
45632
45642
  column: 7
45633
45643
  }
45634
45644
  },
45635
45645
  type: "binary-expr",
45636
45646
  locations: [{
45637
45647
  start: {
45638
- line: 76,
45648
+ line: 77,
45639
45649
  column: 7
45640
45650
  },
45641
45651
  end: {
45642
- line: 76,
45652
+ line: 77,
45643
45653
  column: 35
45644
45654
  }
45645
45655
  }, {
45646
45656
  start: {
45647
- line: 77,
45657
+ line: 78,
45648
45658
  column: 8
45649
45659
  },
45650
45660
  end: {
45651
- line: 84,
45661
+ line: 85,
45652
45662
  column: 21
45653
45663
  }
45654
45664
  }],
45655
- line: 76
45665
+ line: 77
45656
45666
  },
45657
45667
  "6": {
45658
45668
  loc: {
45659
45669
  start: {
45660
- line: 112,
45670
+ line: 113,
45661
45671
  column: 11
45662
45672
  },
45663
45673
  end: {
45664
- line: 123,
45674
+ line: 124,
45665
45675
  column: 11
45666
45676
  }
45667
45677
  },
45668
45678
  type: "binary-expr",
45669
45679
  locations: [{
45670
45680
  start: {
45671
- line: 112,
45681
+ line: 113,
45672
45682
  column: 11
45673
45683
  },
45674
45684
  end: {
45675
- line: 112,
45685
+ line: 113,
45676
45686
  column: 57
45677
45687
  }
45678
45688
  }, {
45679
45689
  start: {
45680
- line: 113,
45690
+ line: 114,
45681
45691
  column: 12
45682
45692
  },
45683
45693
  end: {
45684
- line: 122,
45694
+ line: 123,
45685
45695
  column: 14
45686
45696
  }
45687
45697
  }],
45688
- line: 112
45698
+ line: 113
45689
45699
  },
45690
45700
  "7": {
45691
45701
  loc: {
45692
45702
  start: {
45693
- line: 136,
45703
+ line: 137,
45694
45704
  column: 18
45695
45705
  },
45696
45706
  end: {
45697
- line: 138,
45707
+ line: 139,
45698
45708
  column: 19
45699
45709
  }
45700
45710
  },
45701
45711
  type: "binary-expr",
45702
45712
  locations: [{
45703
45713
  start: {
45704
- line: 136,
45714
+ line: 137,
45705
45715
  column: 18
45706
45716
  },
45707
45717
  end: {
45708
- line: 136,
45718
+ line: 137,
45709
45719
  column: 62
45710
45720
  }
45711
45721
  }, {
45712
45722
  start: {
45713
- line: 137,
45723
+ line: 138,
45714
45724
  column: 20
45715
45725
  },
45716
45726
  end: {
45717
- line: 137,
45727
+ line: 138,
45718
45728
  column: 67
45719
45729
  }
45720
45730
  }],
45721
- line: 136
45731
+ line: 137
45722
45732
  },
45723
45733
  "8": {
45724
45734
  loc: {
45725
45735
  start: {
45726
- line: 146,
45736
+ line: 147,
45727
45737
  column: 11
45728
45738
  },
45729
45739
  end: {
45730
- line: 150,
45740
+ line: 151,
45731
45741
  column: 11
45732
45742
  }
45733
45743
  },
45734
45744
  type: "binary-expr",
45735
45745
  locations: [{
45736
45746
  start: {
45737
- line: 146,
45747
+ line: 147,
45738
45748
  column: 11
45739
45749
  },
45740
45750
  end: {
45741
- line: 146,
45751
+ line: 147,
45742
45752
  column: 35
45743
45753
  }
45744
45754
  }, {
45745
45755
  start: {
45746
- line: 147,
45756
+ line: 148,
45747
45757
  column: 12
45748
45758
  },
45749
45759
  end: {
45750
- line: 149,
45760
+ line: 150,
45751
45761
  column: 30
45752
45762
  }
45753
45763
  }],
45754
- line: 146
45764
+ line: 147
45755
45765
  }
45756
45766
  },
45757
45767
  s: {
@@ -45789,7 +45799,8 @@ function cov_ydtn5b3nu() {
45789
45799
  "31": 0,
45790
45800
  "32": 0,
45791
45801
  "33": 0,
45792
- "34": 0
45802
+ "34": 0,
45803
+ "35": 0
45793
45804
  },
45794
45805
  f: {
45795
45806
  "0": 0,
@@ -45816,7 +45827,7 @@ function cov_ydtn5b3nu() {
45816
45827
  "8": [0, 0]
45817
45828
  },
45818
45829
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
45819
- hash: "4bfaf367b7f98c3365bcf2170fdae32ec4959128"
45830
+ hash: "f757258b10f39c22c2519e0f955df06c0555bce5"
45820
45831
  };
45821
45832
  var coverage = global[gcv] || (global[gcv] = {});
45822
45833
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -45904,22 +45915,24 @@ var DropdownField$1 = function DropdownField(_ref2) {
45904
45915
  setDefaultSelectedOption({
45905
45916
  label: defaultLabel
45906
45917
  });
45918
+ cov_ydtn5b3nu().s[23]++;
45919
+ setFieldValue(name, null);
45907
45920
  }
45908
45921
  } else {
45909
45922
  cov_ydtn5b3nu().b[3][1]++;
45910
- cov_ydtn5b3nu().s[23]++;
45923
+ cov_ydtn5b3nu().s[24]++;
45911
45924
  setDefaultSelectedOption({
45912
45925
  label: defaultLabel
45913
45926
  });
45914
45927
  }
45915
45928
  };
45916
- cov_ydtn5b3nu().s[24]++;
45929
+ cov_ydtn5b3nu().s[25]++;
45917
45930
  React.useEffect(function () {
45918
45931
  cov_ydtn5b3nu().f[4]++;
45919
- cov_ydtn5b3nu().s[25]++;
45932
+ cov_ydtn5b3nu().s[26]++;
45920
45933
  findDefaultSelectedOption();
45921
45934
  }, [defaultValue, dropdownOptions]);
45922
- cov_ydtn5b3nu().s[26]++;
45935
+ cov_ydtn5b3nu().s[27]++;
45923
45936
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (cov_ydtn5b3nu().b[5][0]++, !selectedField.hideSeparator) && (cov_ydtn5b3nu().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
45924
45937
  className: "neeto-ui-text-gray-700 mt-1",
45925
45938
  "data-cy": "action-dropdown-seperator-text",
@@ -45938,12 +45951,12 @@ var DropdownField$1 = function DropdownField(_ref2) {
45938
45951
  }),
45939
45952
  onClick: function onClick() {
45940
45953
  cov_ydtn5b3nu().f[5]++;
45941
- cov_ydtn5b3nu().s[27]++;
45942
- setTouched(ramda.assocPath(["actions", "value", index], true, touched));
45943
45954
  cov_ydtn5b3nu().s[28]++;
45955
+ setTouched(ramda.assocPath(["actions", "value", index], true, touched));
45956
+ cov_ydtn5b3nu().s[29]++;
45944
45957
  setIsActive(function (prevState) {
45945
45958
  cov_ydtn5b3nu().f[6]++;
45946
- cov_ydtn5b3nu().s[29]++;
45959
+ cov_ydtn5b3nu().s[30]++;
45947
45960
  return !prevState;
45948
45961
  });
45949
45962
  }
@@ -45960,19 +45973,19 @@ var DropdownField$1 = function DropdownField(_ref2) {
45960
45973
  value: searchTerm,
45961
45974
  onChange: function onChange(e) {
45962
45975
  cov_ydtn5b3nu().f[7]++;
45963
- cov_ydtn5b3nu().s[30]++;
45976
+ cov_ydtn5b3nu().s[31]++;
45964
45977
  return setSearchTerm(e.target.value);
45965
45978
  },
45966
45979
  onClick: function onClick(e) {
45967
45980
  cov_ydtn5b3nu().f[8]++;
45968
- cov_ydtn5b3nu().s[31]++;
45981
+ cov_ydtn5b3nu().s[32]++;
45969
45982
  return e.stopPropagation();
45970
45983
  }
45971
45984
  })), /*#__PURE__*/React__default["default"].createElement(OptionsWrapper, {
45972
45985
  hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3
45973
45986
  }, searchedOptions.map(function (option, idx) {
45974
45987
  cov_ydtn5b3nu().f[9]++;
45975
- cov_ydtn5b3nu().s[32]++;
45988
+ cov_ydtn5b3nu().s[33]++;
45976
45989
  return /*#__PURE__*/React__default["default"].createElement(MenuItem$9.Button, {
45977
45990
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
45978
45991
  key: idx,
@@ -45984,7 +45997,7 @@ var DropdownField$1 = function DropdownField(_ref2) {
45984
45997
  })),
45985
45998
  onClick: function onClick() {
45986
45999
  cov_ydtn5b3nu().f[10]++;
45987
- cov_ydtn5b3nu().s[33]++;
46000
+ cov_ydtn5b3nu().s[34]++;
45988
46001
  return handleSelectOption(option);
45989
46002
  }
45990
46003
  }, option.label);
@@ -45992,7 +46005,7 @@ var DropdownField$1 = function DropdownField(_ref2) {
45992
46005
  "data-cy": "no-options-menu-item"
45993
46006
  }, t("common.noOptions"))))));
45994
46007
  };
45995
- cov_ydtn5b3nu().s[34]++;
46008
+ cov_ydtn5b3nu().s[35]++;
45996
46009
 
45997
46010
  function cov_1ifnsi25f3() {
45998
46011
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/EditorAction.jsx";