@zeedhi/teknisa-components-common 3.0.3 → 3.1.0

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.
Files changed (89) hide show
  1. package/coverage/clover.xml +6 -0
  2. package/coverage/coverage-final.json +1 -0
  3. package/coverage/lcov-report/base.css +224 -0
  4. package/coverage/lcov-report/block-navigation.js +87 -0
  5. package/coverage/lcov-report/favicon.png +0 -0
  6. package/coverage/lcov-report/index.html +101 -0
  7. package/coverage/lcov-report/prettify.css +1 -0
  8. package/coverage/lcov-report/prettify.js +2 -0
  9. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  10. package/coverage/lcov-report/sorter.js +210 -0
  11. package/coverage/lcov-report/tests/__helpers__/component-event-helper.ts.html +100 -0
  12. package/coverage/lcov-report/tests/__helpers__/create-component.ts.html +109 -0
  13. package/coverage/lcov-report/tests/__helpers__/find-component.ts.html +139 -0
  14. package/coverage/lcov-report/tests/__helpers__/flush-promises-helper.ts.html +94 -0
  15. package/coverage/lcov-report/tests/__helpers__/get-child-helper.ts.html +166 -0
  16. package/coverage/lcov-report/tests/__helpers__/index.html +221 -0
  17. package/coverage/lcov-report/tests/__helpers__/index.ts.html +106 -0
  18. package/coverage/lcov-report/tests/__helpers__/mock-created-helper.ts.html +121 -0
  19. package/coverage/lcov-report/tests/__helpers__/spy-on-all-methods.ts.html +223 -0
  20. package/coverage/lcov.info +0 -0
  21. package/dist/teknisa-components-common.js +73 -67
  22. package/dist/teknisa-components-common.min.js +73 -67
  23. package/dist/types/components/index.d.ts +2 -0
  24. package/dist/types/components/tek-datasource/tek-memory-datasource.d.ts +16 -16
  25. package/dist/types/components/tek-datasource/tek-rest-datasource.d.ts +18 -20
  26. package/dist/types/components/tek-grid/grouped-data-navigator.d.ts +12 -0
  27. package/dist/types/components/tek-grid/index.d.ts +1 -1
  28. package/dist/types/components/tek-grid/tek-grid.d.ts +2 -1
  29. package/dist/types/components/tek-loading/interfaces.d.ts +6 -0
  30. package/dist/types/components/tek-loading/loading.d.ts +16 -0
  31. package/environments.json +12 -0
  32. package/jest.config.cjs +23 -0
  33. package/package.json +5 -3
  34. package/src/components/index.ts +2 -2
  35. package/src/components/tek-datasource/tek-memory-datasource.ts +2 -2
  36. package/src/components/tek-datasource/tek-rest-datasource.ts +2 -2
  37. package/src/components/tek-grid/grid-filter-button.ts +5 -3
  38. package/src/components/tek-grid/grouped-data-navigator.ts +66 -0
  39. package/src/components/tek-grid/index.ts +1 -1
  40. package/src/components/tek-grid/tek-grid-column.ts +1 -1
  41. package/src/components/tek-grid/tek-grid.ts +19 -15
  42. package/src/components/tek-loading/interfaces.ts +7 -0
  43. package/src/components/tek-loading/loading.ts +27 -0
  44. package/tests/__helpers__/create-component.ts +8 -0
  45. package/tests/__helpers__/find-component.ts +18 -0
  46. package/tests/__helpers__/index.ts +4 -0
  47. package/tests/__helpers__/spy-on-all-methods.ts +46 -0
  48. package/tests/unit/components/tek-breadcrumb-header/tek-breadcrumb-header.spec.ts +2 -1
  49. package/tests/unit/components/tek-datasource/memory-datasource.spec.ts +4 -1
  50. package/tests/unit/components/tek-datasource/rest-datasource.spec.ts +1 -1
  51. package/tests/unit/components/tek-grid/filter-helper.spec.ts +8 -4
  52. package/tests/unit/components/tek-grid/grid-filter-button.spec.ts +1 -1
  53. package/tests/unit/components/tek-grid/grouped-data-manager.spec.ts +1 -1
  54. package/tests/unit/components/tek-grid/grouped-data-navigator.spec.ts +143 -0
  55. package/tests/unit/components/tek-grid/layout-options.spec.ts +1 -1
  56. package/tests/unit/components/tek-grid/tek-grid-column.spec.ts +23 -17
  57. package/tests/unit/components/tek-grid/tek-grid-columns-button.spec.ts +2 -1
  58. package/tests/unit/components/tek-grid/tek-grid.spec.ts +14 -12
  59. package/tests/unit/components/tek-grid/tek-memory-datasource.spec.ts +1 -1
  60. package/tests/unit/components/tek-grid/tek-rest-datasource.spec.ts +1 -1
  61. package/tests/unit/components/tek-loading/loading.spec.ts +29 -0
  62. package/tests/unit/components/tek-user-info/tek-user-info-list.spec.ts +12 -2
  63. package/tests/unit/components/tek-user-info/tek-user-info.spec.ts +18 -6
  64. package/tests/unit/utils/mock-console.ts +18 -0
  65. package/tests/unit/utils/setup.ts +5 -0
  66. package/dist/types/error/delete-rows-error.d.ts +0 -6
  67. package/jest.config.js +0 -1
  68. package/src/components/tek-grid/grouped-view-navigator.ts +0 -84
  69. package/tests/unit/components/crud/crud-add-button.spec.ts +0 -56
  70. package/tests/unit/components/crud/crud-button.spec.ts +0 -94
  71. package/tests/unit/components/crud/crud-cancel-button.spec.ts +0 -91
  72. package/tests/unit/components/crud/crud-delete-button.spec.ts +0 -122
  73. package/tests/unit/components/crud/crud-form.spec.ts +0 -165
  74. package/tests/unit/components/crud/crud-save-button.spec.ts +0 -118
  75. package/tests/unit/components/tek-card-title/CardTitle.spec.ts +0 -34
  76. package/tests/unit/components/tek-drag-grid/tek-drag-grid.spec.ts +0 -112
  77. package/tests/unit/components/tek-grid/grouped-view-navigator.spec.ts +0 -244
  78. package/tests/unit/components/tek-grid/multi-option.spec.ts +0 -139
  79. package/tests/unit/components/tek-image/Image.spec.ts +0 -67
  80. package/tests/unit/components/tek-iterable-carousel/iterable-carousel.spec.ts +0 -37
  81. package/tests/unit/components/tek-iterable-component-render/iterable-component-render.spec.ts +0 -200
  82. package/tests/unit/components/tek-loading/Loading.spec.ts +0 -30
  83. package/tests/unit/components/tek-notifications/notifications.spec.ts +0 -201
  84. package/tests/unit/components/tek-product-card/product-card.spec.ts +0 -61
  85. package/tests/unit/components/tree-grid/tree-grid.spec.ts +0 -776
  86. package/tests/unit/utils/grid-base/export-options/button-option.spec.ts +0 -44
  87. package/tests/unit/utils/grid-base/export-options/multi-option.spec.ts +0 -135
  88. package/tests/unit/utils/grid-base/grid-controller.spec.ts +0 -174
  89. package/tests/unit/utils/report-filter/report-filter.spec.ts +0 -66
@@ -0,0 +1,166 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for tests/__helpers__/get-child-helper.ts</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> / <a href="index.html">tests/__helpers__</a> get-child-helper.ts</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">100% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>11/11</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">100% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>5/5</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>2/2</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">100% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>10/10</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <pre><table class="coverage">
66
+ <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
+ <a name='L2'></a><a href='#L2'>2</a>
68
+ <a name='L3'></a><a href='#L3'>3</a>
69
+ <a name='L4'></a><a href='#L4'>4</a>
70
+ <a name='L5'></a><a href='#L5'>5</a>
71
+ <a name='L6'></a><a href='#L6'>6</a>
72
+ <a name='L7'></a><a href='#L7'>7</a>
73
+ <a name='L8'></a><a href='#L8'>8</a>
74
+ <a name='L9'></a><a href='#L9'>9</a>
75
+ <a name='L10'></a><a href='#L10'>10</a>
76
+ <a name='L11'></a><a href='#L11'>11</a>
77
+ <a name='L12'></a><a href='#L12'>12</a>
78
+ <a name='L13'></a><a href='#L13'>13</a>
79
+ <a name='L14'></a><a href='#L14'>14</a>
80
+ <a name='L15'></a><a href='#L15'>15</a>
81
+ <a name='L16'></a><a href='#L16'>16</a>
82
+ <a name='L17'></a><a href='#L17'>17</a>
83
+ <a name='L18'></a><a href='#L18'>18</a>
84
+ <a name='L19'></a><a href='#L19'>19</a>
85
+ <a name='L20'></a><a href='#L20'>20</a>
86
+ <a name='L21'></a><a href='#L21'>21</a>
87
+ <a name='L22'></a><a href='#L22'>22</a>
88
+ <a name='L23'></a><a href='#L23'>23</a>
89
+ <a name='L24'></a><a href='#L24'>24</a>
90
+ <a name='L25'></a><a href='#L25'>25</a>
91
+ <a name='L26'></a><a href='#L26'>26</a>
92
+ <a name='L27'></a><a href='#L27'>27</a>
93
+ <a name='L28'></a><a href='#L28'>28</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
94
+ <span class="cline-any cline-neutral">&nbsp;</span>
95
+ <span class="cline-any cline-neutral">&nbsp;</span>
96
+ <span class="cline-any cline-neutral">&nbsp;</span>
97
+ <span class="cline-any cline-neutral">&nbsp;</span>
98
+ <span class="cline-any cline-neutral">&nbsp;</span>
99
+ <span class="cline-any cline-neutral">&nbsp;</span>
100
+ <span class="cline-any cline-yes">9x</span>
101
+ <span class="cline-any cline-neutral">&nbsp;</span>
102
+ <span class="cline-any cline-neutral">&nbsp;</span>
103
+ <span class="cline-any cline-yes">245x</span>
104
+ <span class="cline-any cline-yes">675x</span>
105
+ <span class="cline-any cline-yes">33x</span>
106
+ <span class="cline-any cline-yes">33x</span>
107
+ <span class="cline-any cline-neutral">&nbsp;</span>
108
+ <span class="cline-any cline-neutral">&nbsp;</span>
109
+ <span class="cline-any cline-yes">642x</span>
110
+ <span class="cline-any cline-yes">212x</span>
111
+ <span class="cline-any cline-neutral">&nbsp;</span>
112
+ <span class="cline-any cline-yes">212x</span>
113
+ <span class="cline-any cline-neutral">&nbsp;</span>
114
+ <span class="cline-any cline-neutral">&nbsp;</span>
115
+ <span class="cline-any cline-neutral">&nbsp;</span>
116
+ <span class="cline-any cline-yes">245x</span>
117
+ <span class="cline-any cline-neutral">&nbsp;</span>
118
+ <span class="cline-any cline-neutral">&nbsp;</span>
119
+ <span class="cline-any cline-yes">9x</span>
120
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import type { IComponent } from '@zeedhi/common';
121
+ &nbsp;
122
+ /**
123
+ * Search for a component inside an array of children
124
+ *
125
+ * The children array can be either an array of IComponent or an array of Component
126
+ */
127
+ const getChild = &lt;T extends IComponent&gt;(children: any[], name: string): T =&gt; {
128
+ let found: any;
129
+ &nbsp;
130
+ children.forEach((child) =&gt; {
131
+ if (child.name === name) {
132
+ found = child;
133
+ return;
134
+ }
135
+ &nbsp;
136
+ if (child.children &amp;&amp; child.children.length &gt; 0) {
137
+ const result = getChild&lt;T&gt;(child.children, name) as T;
138
+ &nbsp;
139
+ if (result) found = result;
140
+ }
141
+ });
142
+ &nbsp;
143
+ return found;
144
+ };
145
+ &nbsp;
146
+ export { getChild };
147
+ &nbsp;</pre></td></tr></table></pre>
148
+
149
+ <div class='push'></div><!-- for sticky footer -->
150
+ </div><!-- /wrapper -->
151
+ <div class='footer quiet pad2 space-top1 center small'>
152
+ Code coverage generated by
153
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
154
+ at 2026-03-06T21:24:11.995Z
155
+ </div>
156
+ <script src="../../prettify.js"></script>
157
+ <script>
158
+ window.onload = function () {
159
+ prettyPrint();
160
+ };
161
+ </script>
162
+ <script src="../../sorter.js"></script>
163
+ <script src="../../block-navigation.js"></script>
164
+ </body>
165
+ </html>
166
+
@@ -0,0 +1,221 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for tests/__helpers__</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> tests/__helpers__</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">100% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>59/59</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">100% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>27/27</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>12/12</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">100% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>55/55</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <div class="pad1">
66
+ <table class="coverage-summary">
67
+ <thead>
68
+ <tr>
69
+ <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
70
+ <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
71
+ <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
72
+ <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
73
+ <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
74
+ <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
75
+ <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
76
+ <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
77
+ <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
78
+ <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
79
+ </tr>
80
+ </thead>
81
+ <tbody><tr>
82
+ <td class="file high" data-value="component-event-helper.ts"><a href="component-event-helper.ts.html">component-event-helper.ts</a></td>
83
+ <td data-value="100" class="pic high">
84
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
85
+ </td>
86
+ <td data-value="100" class="pct high">100%</td>
87
+ <td data-value="3" class="abs high">3/3</td>
88
+ <td data-value="100" class="pct high">100%</td>
89
+ <td data-value="1" class="abs high">1/1</td>
90
+ <td data-value="100" class="pct high">100%</td>
91
+ <td data-value="1" class="abs high">1/1</td>
92
+ <td data-value="100" class="pct high">100%</td>
93
+ <td data-value="2" class="abs high">2/2</td>
94
+ </tr>
95
+
96
+ <tr>
97
+ <td class="file high" data-value="create-component.ts"><a href="create-component.ts.html">create-component.ts</a></td>
98
+ <td data-value="100" class="pic high">
99
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
100
+ </td>
101
+ <td data-value="100" class="pct high">100%</td>
102
+ <td data-value="4" class="abs high">4/4</td>
103
+ <td data-value="100" class="pct high">100%</td>
104
+ <td data-value="0" class="abs high">0/0</td>
105
+ <td data-value="100" class="pct high">100%</td>
106
+ <td data-value="1" class="abs high">1/1</td>
107
+ <td data-value="100" class="pct high">100%</td>
108
+ <td data-value="4" class="abs high">4/4</td>
109
+ </tr>
110
+
111
+ <tr>
112
+ <td class="file high" data-value="find-component.ts"><a href="find-component.ts.html">find-component.ts</a></td>
113
+ <td data-value="100" class="pic high">
114
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
115
+ </td>
116
+ <td data-value="100" class="pct high">100%</td>
117
+ <td data-value="10" class="abs high">10/10</td>
118
+ <td data-value="100" class="pct high">100%</td>
119
+ <td data-value="5" class="abs high">5/5</td>
120
+ <td data-value="100" class="pct high">100%</td>
121
+ <td data-value="2" class="abs high">2/2</td>
122
+ <td data-value="100" class="pct high">100%</td>
123
+ <td data-value="9" class="abs high">9/9</td>
124
+ </tr>
125
+
126
+ <tr>
127
+ <td class="file high" data-value="flush-promises-helper.ts"><a href="flush-promises-helper.ts.html">flush-promises-helper.ts</a></td>
128
+ <td data-value="100" class="pic high">
129
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
130
+ </td>
131
+ <td data-value="100" class="pct high">100%</td>
132
+ <td data-value="3" class="abs high">3/3</td>
133
+ <td data-value="100" class="pct high">100%</td>
134
+ <td data-value="0" class="abs high">0/0</td>
135
+ <td data-value="100" class="pct high">100%</td>
136
+ <td data-value="1" class="abs high">1/1</td>
137
+ <td data-value="100" class="pct high">100%</td>
138
+ <td data-value="2" class="abs high">2/2</td>
139
+ </tr>
140
+
141
+ <tr>
142
+ <td class="file high" data-value="get-child-helper.ts"><a href="get-child-helper.ts.html">get-child-helper.ts</a></td>
143
+ <td data-value="100" class="pic high">
144
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
145
+ </td>
146
+ <td data-value="100" class="pct high">100%</td>
147
+ <td data-value="11" class="abs high">11/11</td>
148
+ <td data-value="100" class="pct high">100%</td>
149
+ <td data-value="5" class="abs high">5/5</td>
150
+ <td data-value="100" class="pct high">100%</td>
151
+ <td data-value="2" class="abs high">2/2</td>
152
+ <td data-value="100" class="pct high">100%</td>
153
+ <td data-value="10" class="abs high">10/10</td>
154
+ </tr>
155
+
156
+ <tr>
157
+ <td class="file high" data-value="index.ts"><a href="index.ts.html">index.ts</a></td>
158
+ <td data-value="100" class="pic high">
159
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
160
+ </td>
161
+ <td data-value="100" class="pct high">100%</td>
162
+ <td data-value="7" class="abs high">7/7</td>
163
+ <td data-value="100" class="pct high">100%</td>
164
+ <td data-value="0" class="abs high">0/0</td>
165
+ <td data-value="100" class="pct high">100%</td>
166
+ <td data-value="0" class="abs high">0/0</td>
167
+ <td data-value="100" class="pct high">100%</td>
168
+ <td data-value="7" class="abs high">7/7</td>
169
+ </tr>
170
+
171
+ <tr>
172
+ <td class="file high" data-value="mock-created-helper.ts"><a href="mock-created-helper.ts.html">mock-created-helper.ts</a></td>
173
+ <td data-value="100" class="pic high">
174
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
175
+ </td>
176
+ <td data-value="100" class="pct high">100%</td>
177
+ <td data-value="4" class="abs high">4/4</td>
178
+ <td data-value="100" class="pct high">100%</td>
179
+ <td data-value="0" class="abs high">0/0</td>
180
+ <td data-value="100" class="pct high">100%</td>
181
+ <td data-value="2" class="abs high">2/2</td>
182
+ <td data-value="100" class="pct high">100%</td>
183
+ <td data-value="4" class="abs high">4/4</td>
184
+ </tr>
185
+
186
+ <tr>
187
+ <td class="file high" data-value="spy-on-all-methods.ts"><a href="spy-on-all-methods.ts.html">spy-on-all-methods.ts</a></td>
188
+ <td data-value="100" class="pic high">
189
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
190
+ </td>
191
+ <td data-value="100" class="pct high">100%</td>
192
+ <td data-value="17" class="abs high">17/17</td>
193
+ <td data-value="100" class="pct high">100%</td>
194
+ <td data-value="16" class="abs high">16/16</td>
195
+ <td data-value="100" class="pct high">100%</td>
196
+ <td data-value="3" class="abs high">3/3</td>
197
+ <td data-value="100" class="pct high">100%</td>
198
+ <td data-value="17" class="abs high">17/17</td>
199
+ </tr>
200
+
201
+ </tbody>
202
+ </table>
203
+ </div>
204
+ <div class='push'></div><!-- for sticky footer -->
205
+ </div><!-- /wrapper -->
206
+ <div class='footer quiet pad2 space-top1 center small'>
207
+ Code coverage generated by
208
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
209
+ at 2026-03-06T21:24:11.995Z
210
+ </div>
211
+ <script src="../../prettify.js"></script>
212
+ <script>
213
+ window.onload = function () {
214
+ prettyPrint();
215
+ };
216
+ </script>
217
+ <script src="../../sorter.js"></script>
218
+ <script src="../../block-navigation.js"></script>
219
+ </body>
220
+ </html>
221
+
@@ -0,0 +1,106 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for tests/__helpers__/index.ts</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> / <a href="index.html">tests/__helpers__</a> index.ts</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">100% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>7/7</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">100% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>0/0</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>0/0</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">100% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>7/7</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <pre><table class="coverage">
66
+ <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
+ <a name='L2'></a><a href='#L2'>2</a>
68
+ <a name='L3'></a><a href='#L3'>3</a>
69
+ <a name='L4'></a><a href='#L4'>4</a>
70
+ <a name='L5'></a><a href='#L5'>5</a>
71
+ <a name='L6'></a><a href='#L6'>6</a>
72
+ <a name='L7'></a><a href='#L7'>7</a>
73
+ <a name='L8'></a><a href='#L8'>8</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">9x</span>
74
+ <span class="cline-any cline-yes">9x</span>
75
+ <span class="cline-any cline-yes">9x</span>
76
+ <span class="cline-any cline-yes">9x</span>
77
+ <span class="cline-any cline-yes">9x</span>
78
+ <span class="cline-any cline-yes">9x</span>
79
+ <span class="cline-any cline-yes">9x</span>
80
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">export * from './component-event-helper';
81
+ export * from './get-child-helper';
82
+ export * from './mock-created-helper';
83
+ export * from './spy-on-all-methods';
84
+ export * from './flush-promises-helper';
85
+ export * from './create-component';
86
+ export * from './find-component';
87
+ &nbsp;</pre></td></tr></table></pre>
88
+
89
+ <div class='push'></div><!-- for sticky footer -->
90
+ </div><!-- /wrapper -->
91
+ <div class='footer quiet pad2 space-top1 center small'>
92
+ Code coverage generated by
93
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
94
+ at 2026-03-06T21:24:11.995Z
95
+ </div>
96
+ <script src="../../prettify.js"></script>
97
+ <script>
98
+ window.onload = function () {
99
+ prettyPrint();
100
+ };
101
+ </script>
102
+ <script src="../../sorter.js"></script>
103
+ <script src="../../block-navigation.js"></script>
104
+ </body>
105
+ </html>
106
+
@@ -0,0 +1,121 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for tests/__helpers__/mock-created-helper.ts</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> / <a href="index.html">tests/__helpers__</a> mock-created-helper.ts</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">100% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>4/4</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">100% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>0/0</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>2/2</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">100% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>4/4</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <pre><table class="coverage">
66
+ <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
+ <a name='L2'></a><a href='#L2'>2</a>
68
+ <a name='L3'></a><a href='#L3'>3</a>
69
+ <a name='L4'></a><a href='#L4'>4</a>
70
+ <a name='L5'></a><a href='#L5'>5</a>
71
+ <a name='L6'></a><a href='#L6'>6</a>
72
+ <a name='L7'></a><a href='#L7'>7</a>
73
+ <a name='L8'></a><a href='#L8'>8</a>
74
+ <a name='L9'></a><a href='#L9'>9</a>
75
+ <a name='L10'></a><a href='#L10'>10</a>
76
+ <a name='L11'></a><a href='#L11'>11</a>
77
+ <a name='L12'></a><a href='#L12'>12</a>
78
+ <a name='L13'></a><a href='#L13'>13</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
79
+ <span class="cline-any cline-neutral">&nbsp;</span>
80
+ <span class="cline-any cline-neutral">&nbsp;</span>
81
+ <span class="cline-any cline-neutral">&nbsp;</span>
82
+ <span class="cline-any cline-neutral">&nbsp;</span>
83
+ <span class="cline-any cline-yes">10x</span>
84
+ <span class="cline-any cline-yes">16x</span>
85
+ <span class="cline-any cline-yes">16x</span>
86
+ <span class="cline-any cline-neutral">&nbsp;</span>
87
+ <span class="cline-any cline-neutral">&nbsp;</span>
88
+ <span class="cline-any cline-neutral">&nbsp;</span>
89
+ <span class="cline-any cline-yes">10x</span>
90
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import type { ComponentRender } from '@zeedhi/common';
91
+ &nbsp;
92
+ /**
93
+ * Function used to spy on a class' onCreated and always assign the componentId as 1
94
+ */
95
+ const mockCreated = &lt;T extends ComponentRender&gt;(component: T, prototype: any) =&gt; {
96
+ jest.spyOn(prototype, 'onCreated').mockImplementation(() =&gt; {
97
+ component.componentId = 1;
98
+ });
99
+ };
100
+ &nbsp;
101
+ export { mockCreated };
102
+ &nbsp;</pre></td></tr></table></pre>
103
+
104
+ <div class='push'></div><!-- for sticky footer -->
105
+ </div><!-- /wrapper -->
106
+ <div class='footer quiet pad2 space-top1 center small'>
107
+ Code coverage generated by
108
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
109
+ at 2026-03-06T21:24:11.995Z
110
+ </div>
111
+ <script src="../../prettify.js"></script>
112
+ <script>
113
+ window.onload = function () {
114
+ prettyPrint();
115
+ };
116
+ </script>
117
+ <script src="../../sorter.js"></script>
118
+ <script src="../../block-navigation.js"></script>
119
+ </body>
120
+ </html>
121
+