@sankhyalabs/core 5.20.0-dev.22 → 5.20.0-dev.24

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.
@@ -4,122 +4,122 @@
4
4
  <testCase name="HttpProvider Metodo GET" duration="4"/>
5
5
  </file>
6
6
  <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
7
- <testCase name="HttpProvider Metodo POST" duration="86"/>
7
+ <testCase name="HttpProvider Metodo POST" duration="85"/>
8
+ </file>
9
+ <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
10
+ <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="92"/>
11
+ <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the setters methods" duration="1"/>
12
+ <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="99"/>
8
13
  </file>
9
14
  <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
10
- <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="86"/>
15
+ <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="85"/>
11
16
  <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="1"/>
12
17
  <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="1"/>
13
18
  <testCase name="StringUtils it should return a Criteria class with &quot;expression&quot; and &quot;parameters&quot; as needed setted through &quot;append&quot; method" duration="2"/>
14
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;append&quot; method" duration="1"/>
15
- <testCase name="StringUtils it should return undefined as &quot;expression&quot; and &quot;[]&quot; as parameters as we use an empty criteria as first entry in the constructor" duration="1"/>
16
- <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="2"/>
19
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;append&quot; method" duration="2"/>
20
+ <testCase name="StringUtils it should return undefined as &quot;expression&quot; and &quot;[]&quot; as parameters as we use an empty criteria as first entry in the constructor" duration="3"/>
21
+ <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
22
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="13"/>
17
23
  <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
18
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
19
- <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
20
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="0"/>
24
+ <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="89"/>
25
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
21
26
  <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
22
27
  <testCase name="StringUtils it should return a toJSON object with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
23
28
  <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
24
29
  </file>
25
- <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
26
- <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="189"/>
27
- <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the setters methods" duration="1"/>
28
- <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
29
- </file>
30
30
  <file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
31
- <testCase name="Mask Formatter mask:CPF complete valid" duration="84"/>
32
- <testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
33
- <testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
31
+ <testCase name="Mask Formatter mask:CPF complete valid" duration="8"/>
32
+ <testCase name="Mask Formatter mask:CPF complete valid literals" duration="81"/>
33
+ <testCase name="Mask Formatter mask:CPF incomplete valid" duration="0"/>
34
34
  <testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
35
- <testCase name="Mask Formatter mask:CPF too long valid" duration="2"/>
36
- <testCase name="Mask Formatter mask:CPF invalid for string" duration="103"/>
35
+ <testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
36
+ <testCase name="Mask Formatter mask:CPF invalid for string" duration="108"/>
37
37
  <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="0"/>
38
38
  <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
39
39
  <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
40
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
41
- <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
42
- <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
43
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="86"/>
44
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
45
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
40
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
41
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="0"/>
42
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
46
43
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
47
44
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
48
45
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
49
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
46
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="0"/>
50
47
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
51
48
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
52
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
49
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="0"/>
50
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
51
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
52
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="0"/>
53
53
  </file>
54
54
  <file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
55
- <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="99"/>
55
+ <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="3"/>
56
56
  <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="1"/>
57
57
  <testCase name="TimeFormatter Case: validateTime" duration="1"/>
58
58
  </file>
59
59
  <file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
60
- <testCase name="StringUtils valor vazio" duration="7"/>
61
- <testCase name="StringUtils valor em branco" duration="1"/>
60
+ <testCase name="StringUtils valor vazio" duration="5"/>
61
+ <testCase name="StringUtils valor em branco" duration="88"/>
62
62
  <testCase name="StringUtils valor null" duration="0"/>
63
- <testCase name="StringUtils valor undefined" duration="1"/>
64
- <testCase name="StringUtils valor 0" duration="0"/>
65
- <testCase name="StringUtils com valor" duration="1"/>
66
- <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
63
+ <testCase name="StringUtils valor undefined" duration="0"/>
64
+ <testCase name="StringUtils valor 0" duration="1"/>
65
+ <testCase name="StringUtils com valor" duration="0"/>
66
+ <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="2"/>
67
67
  <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
68
- <testCase name="StringUtils should return the original value when called with undefined" duration="81"/>
69
- </file>
70
- <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
71
- <testCase name="StringUtils stringToNumber" duration="8"/>
72
- <testCase name="StringUtils format" duration="106"/>
73
- <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
74
- <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
75
- <testCase name="StringUtils format round number" duration="2"/>
68
+ <testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
76
69
  </file>
77
70
  <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
78
- <testCase name="OverflowWatcher should initialize with provided parameters" duration="92"/>
71
+ <testCase name="OverflowWatcher should initialize with provided parameters" duration="11"/>
79
72
  <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
80
- <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="297"/>
81
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="13"/>
82
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="9"/>
83
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="82"/>
73
+ <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="488"/>
74
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="194"/>
75
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="10"/>
76
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="91"/>
84
77
  <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="4"/>
85
- <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="12"/>
78
+ <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="101"/>
86
79
  <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
87
80
  </file>
81
+ <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
82
+ <testCase name="StringUtils stringToNumber" duration="91"/>
83
+ <testCase name="StringUtils format" duration="101"/>
84
+ <testCase name="StringUtils format without formatnumber parameter" duration="0"/>
85
+ <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
86
+ <testCase name="StringUtils format round number" duration="1"/>
87
+ </file>
88
88
  <file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
89
- <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="5"/>
90
- <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
89
+ <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="4"/>
90
+ <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="0"/>
91
91
  <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
92
92
  <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
93
- <testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="0"/>
93
+ <testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
94
94
  <testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="0"/>
95
95
  </file>
96
96
  <file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
97
- <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="9"/>
98
- <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="2"/>
97
+ <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="70"/>
98
+ <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="1"/>
99
99
  <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
100
100
  <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="1"/>
101
101
  <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
102
- <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
103
- <testCase name="addIDInfo 7 - should add data-element-id with valid id &quot;componenteNameTest_snkApplication&quot;" duration="0"/>
102
+ <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="2"/>
103
+ <testCase name="addIDInfo 7 - should add data-element-id with valid id &quot;componenteNameTest_snkApplication&quot;" duration="1"/>
104
104
  <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="1"/>
105
105
  <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
106
106
  <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
107
107
  <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
108
108
  <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
109
109
  <testCase name="addIDInfo 13 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
110
- <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="1"/>
110
+ <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="2"/>
111
111
  <testCase name="addIDInfo 15 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
112
- <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
113
- <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
112
+ <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="0"/>
113
+ <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="0"/>
114
114
  <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
115
115
  <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
116
116
  <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
117
- <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
118
- <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="1"/>
117
+ <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="0"/>
118
+ <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="4"/>
119
119
  </file>
120
120
  <file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
121
- <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="28"/>
122
- <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="1"/>
123
- <testCase name="calcMarginSize should threat values defined as zero" duration="3"/>
121
+ <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="29"/>
122
+ <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="3"/>
123
+ <testCase name="calcMarginSize should threat values defined as zero" duration="2"/>
124
124
  </file>
125
125
  </unitTest>
@@ -41,7 +41,7 @@ export default class DataUnit {
41
41
  private _sortingProvider?: SortingProvider;
42
42
  private _filterProviders: Map<string, FilterProvider>;
43
43
  private _stateManager: StateManager;
44
- private _interceptors: Array<DUActionInterceptor>;
44
+ private _interceptors: Map<string, DUActionInterceptor>;
45
45
  private _pageSize: number;
46
46
  private _childByName = new Map<string, DataUnit>();
47
47
  private _parentDataUnit: DataUnit | undefined;
@@ -79,7 +79,7 @@ export default class DataUnit {
79
79
  this._filterProviders = new Map<string, FilterProvider>();
80
80
  this._sortingProvider = undefined;
81
81
  this._defaultSorting = [];
82
- this._interceptors = [];
82
+ this._interceptors = new Map();
83
83
  this._parentDataUnit = parentDataUnit;
84
84
  this._parentDataUnit?.subscribe(this.onDataUnitParentEvent);
85
85
  this._loadingLockers = [];
@@ -113,7 +113,7 @@ export default class DataUnit {
113
113
  this._observers = [];
114
114
  this._filterProviders = new Map<string, FilterProvider>();
115
115
  this._sortingProvider = undefined;
116
- this._interceptors = [];
116
+ this._interceptors = new Map();
117
117
  }
118
118
 
119
119
  /**
@@ -241,10 +241,10 @@ export default class DataUnit {
241
241
  async response => {
242
242
  await this.dispatchAction(
243
243
  Action.DATA_LOADED,
244
- {...response, keepSelection: request.keepSelection, filters: request.filters},
244
+ {...response, keepSelection: request.keepSelection, filters: request.filters, selectFirstRecord},
245
245
  executionCtx
246
246
  );
247
-
247
+
248
248
  await this.dispatchAction(Action.LOADING_PROPERTIES_CLEANED);
249
249
 
250
250
  if(selectFirstRecord){
@@ -317,13 +317,16 @@ export default class DataUnit {
317
317
 
318
318
  await this.processLoadingLockers();
319
319
 
320
- if (this._parentDataUnit && !this._parentDataUnit.getSelectedRecord()) {
320
+ if (this._parentDataUnit) {
321
+ const parentRecord = this._parentDataUnit.getSelectedRecord();
322
+ if(parentRecord == undefined || this._parentDataUnit.isNewRecord(parentRecord.__record__id__)){
321
323
  if(this.records){
322
324
  this.clearDataUnit();
323
325
  }
324
326
  return Promise.resolve({
325
327
  records: []
326
328
  });
329
+ }
327
330
  }
328
331
 
329
332
  const loadDataRequest = this.getLoadDataRequest(quickFilter, source);
@@ -336,7 +339,7 @@ export default class DataUnit {
336
339
  *
337
340
  * @param page - Número da página desejada.
338
341
  * @param executionCtx - Contexto de execução do carregamento dos registros do DataUnit.
339
- *
342
+ *
340
343
  * @returns - Registros da página desejada.
341
344
  *
342
345
  */
@@ -665,7 +668,7 @@ export default class DataUnit {
665
668
  *
666
669
  */
667
670
  public addInterceptor(interceptor: DUActionInterceptor): void {
668
- this._interceptors.push(interceptor);
671
+ this._interceptors.set(interceptor.interceptAction.toString(), interceptor);
669
672
  }
670
673
 
671
674
  /**
@@ -676,7 +679,7 @@ export default class DataUnit {
676
679
  *
677
680
  */
678
681
  public removeInterceptor(interceptor: DUActionInterceptor) {
679
- this._interceptors = this._interceptors.filter(i => i !== interceptor);
682
+ this._interceptors.delete(interceptor.interceptAction.toString())
680
683
  }
681
684
 
682
685
  /**
@@ -1440,7 +1443,7 @@ export default class DataUnit {
1440
1443
  if (executionCtx && executionCtx.before) {
1441
1444
  action = executionCtx.before(action);
1442
1445
  }
1443
- if (action && this._interceptors && this._interceptors.length > 0) {
1446
+ if (action && this._interceptors && this._interceptors.size > 0) {
1444
1447
  action = await this.intercept(action, this._interceptors.values());
1445
1448
  }
1446
1449
  if (action) {