@madie/madie-design-system 1.0.39 → 1.0.41
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/components/Modal/index.jsx +1 -5
- package/components/Popover/index.js +19 -0
- package/coverage/clover.xml +191 -371
- package/coverage/coverage-final.json +14 -23
- package/coverage/lcov-report/SvgComponents.jsx.html +1702 -0
- package/coverage/lcov-report/components/Accordion/index.html +116 -0
- package/coverage/lcov-report/components/Accordion/index.jsx.html +370 -0
- package/coverage/lcov-report/components/Button/index.html +116 -0
- package/coverage/lcov-report/components/Button/index.js.html +385 -0
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +364 -0
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +178 -0
- package/coverage/lcov-report/components/Error/index.html +131 -0
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +496 -0
- package/coverage/lcov-report/components/Footer/LegacyFooterUI.jsx.html +697 -0
- package/coverage/lcov-report/components/Footer/index.html +131 -0
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +310 -0
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +208 -0
- package/coverage/lcov-report/components/Infotip/index.html +146 -0
- package/coverage/lcov-report/components/Infotip/index.js.html +94 -0
- package/coverage/lcov-report/components/InputLabel/index.html +116 -0
- package/coverage/lcov-report/components/InputLabel/index.jsx.html +244 -0
- package/coverage/lcov-report/components/MadieAlert/index.html +116 -0
- package/coverage/lcov-report/components/MadieAlert/index.jsx.html +304 -0
- package/coverage/lcov-report/components/MadieDeleteDialog/index.html +116 -0
- package/coverage/lcov-report/components/MadieDeleteDialog/index.jsx.html +244 -0
- package/coverage/lcov-report/components/MadieDialog/index.html +116 -0
- package/coverage/lcov-report/components/MadieDialog/index.jsx.html +856 -0
- package/coverage/lcov-report/components/MadieDiscardDialog/index.html +116 -0
- package/coverage/lcov-report/components/MadieDiscardDialog/index.jsx.html +232 -0
- package/coverage/lcov-report/components/MadieSpinner/index.html +116 -0
- package/coverage/lcov-report/components/MadieSpinner/index.jsx.html +190 -0
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +307 -0
- package/coverage/lcov-report/components/Modal/index.html +116 -0
- package/coverage/lcov-report/components/Pagination/index.html +116 -0
- package/coverage/lcov-report/components/Pagination/index.jsx.html +736 -0
- package/coverage/lcov-report/components/Popover/index.html +116 -0
- package/coverage/lcov-report/components/Popover/index.js.html +472 -0
- package/coverage/lcov-report/components/ReadOnlyTextField/index.html +116 -0
- package/coverage/lcov-report/components/ReadOnlyTextField/index.jsx.html +313 -0
- package/coverage/lcov-report/components/SanitizedContent/index.html +116 -0
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +685 -0
- package/coverage/lcov-report/components/Select/index.html +116 -0
- package/coverage/lcov-report/components/Select/index.jsx.html +610 -0
- package/coverage/lcov-report/components/TextField/index.html +116 -0
- package/coverage/lcov-report/components/TextField/index.jsx.html +496 -0
- package/coverage/lcov-report/components/Toast/index.html +116 -0
- package/coverage/lcov-report/components/Toast/index.jsx.html +430 -0
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +349 -0
- package/coverage/lcov-report/components/Tooltip/index.html +146 -0
- package/coverage/lcov-report/components/Tooltip/index.js.html +94 -0
- package/coverage/lcov-report/components/Tooltip/position.js.html +313 -0
- package/coverage/lcov-report/index.html +87 -132
- package/coverage/lcov-report/index.js.html +385 -0
- package/coverage/lcov-report/index.jsx.html +417 -129
- package/coverage/lcov-report/lib/Chevron.jsx.html +181 -0
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +1702 -0
- package/coverage/lcov-report/lib/index.html +131 -0
- package/coverage/lcov-report/react/components/Accordion/index.html +21 -21
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +29 -29
- package/coverage/lcov-report/react/components/Button/index.html +19 -19
- package/coverage/lcov-report/react/components/Button/index.js.html +45 -36
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +3 -3
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
- package/coverage/lcov-report/react/components/Footer/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/InputLabel/index.html +5 -5
- package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +8 -8
- package/coverage/lcov-report/react/components/MadieAlert/index.html +3 -18
- package/coverage/lcov-report/react/components/MadieAlert/index.jsx.html +76 -43
- package/coverage/lcov-report/react/components/MadieDeleteDialog/index.html +116 -0
- package/coverage/lcov-report/react/components/MadieDeleteDialog/index.jsx.html +244 -0
- package/coverage/lcov-report/react/components/MadieDialog/Index.jsx.html +9 -9
- package/coverage/lcov-report/react/components/MadieDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/MadieDiscardDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/MadieDiscardDialog/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/MadieSpinner/index.html +1 -1
- package/coverage/lcov-report/react/components/MadieSpinner/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.html +18 -33
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +9 -21
- package/coverage/lcov-report/react/components/Pagination/index.html +5 -5
- package/coverage/lcov-report/react/components/Pagination/index.jsx.html +62 -23
- package/coverage/lcov-report/react/components/Popover/index.html +116 -0
- package/coverage/lcov-report/react/components/Popover/index.js.html +472 -0
- package/coverage/lcov-report/react/components/ReadOnlyTextField/index.html +1 -1
- package/coverage/lcov-report/react/components/ReadOnlyTextField/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Select/index.html +3 -3
- package/coverage/lcov-report/react/components/Select/index.jsx.html +206 -23
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Textfield/index.html +3 -3
- package/coverage/lcov-report/react/components/Textfield/index.jsx.html +198 -9
- package/coverage/lcov-report/react/components/Toast/index.html +9 -9
- package/coverage/lcov-report/react/components/Toast/index.jsx.html +80 -119
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/react/components/index.html +1 -1
- package/coverage/lcov-report/react/index.html +13 -13
- package/coverage/lcov-report/react/index.js.html +7 -19
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +2 -2
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +158 -158
- package/coverage/lcov-report/react/lib/index.html +17 -17
- package/coverage/lcov-report/react/session/index.html +1 -1
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/logout.js.html +1 -1
- package/coverage/lcov-report/react/session/refresh.js.html +1 -1
- package/coverage/lcov-report/react/session/ttl.js.html +1 -1
- package/coverage/lcov.info +377 -735
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +12 -12
- package/dist/react/index.js.map +1 -1
- package/index.js +0 -4
- package/lib/SvgComponents.jsx +1 -1
- package/package.json +1 -1
- package/test/components/Accordion.test.js +21 -4
- package/test/components/Button.test.js +72 -0
- package/test/components/MadieAlert.test.js +1 -2
- package/test/components/MadieDeleteDialog.test.js +3 -1
- package/test/components/MadiePopover.test.js +9 -0
- package/test/components/Pagination.test.js +4 -0
- package/test/components/Select.test.js +37 -0
- package/test/components/TextField.test.js +36 -0
- package/test/lib/SvgComponents.test.js +212 -0
- package/components/Modal/LegacyModal.jsx +0 -74
- package/components/SessionDialog/sessionDialog.js +0 -26
- package/components/SessionDialogUI.jsx +0 -273
- package/session/index.js +0 -5
- package/session/logout.js +0 -65
- package/session/refresh.js +0 -49
- package/session/ttl.js +0 -37
- package/test/components/SessionDialogUI.test.js +0 -347
- package/test/session/session.test.js +0 -221
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>11/11</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>14/14</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>3/3</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>11/11</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -184,7 +184,136 @@
|
|
|
184
184
|
<a name='L119'></a><a href='#L119'>119</a>
|
|
185
185
|
<a name='L120'></a><a href='#L120'>120</a>
|
|
186
186
|
<a name='L121'></a><a href='#L121'>121</a>
|
|
187
|
-
<a name='L122'></a><a href='#L122'>122</a
|
|
187
|
+
<a name='L122'></a><a href='#L122'>122</a>
|
|
188
|
+
<a name='L123'></a><a href='#L123'>123</a>
|
|
189
|
+
<a name='L124'></a><a href='#L124'>124</a>
|
|
190
|
+
<a name='L125'></a><a href='#L125'>125</a>
|
|
191
|
+
<a name='L126'></a><a href='#L126'>126</a>
|
|
192
|
+
<a name='L127'></a><a href='#L127'>127</a>
|
|
193
|
+
<a name='L128'></a><a href='#L128'>128</a>
|
|
194
|
+
<a name='L129'></a><a href='#L129'>129</a>
|
|
195
|
+
<a name='L130'></a><a href='#L130'>130</a>
|
|
196
|
+
<a name='L131'></a><a href='#L131'>131</a>
|
|
197
|
+
<a name='L132'></a><a href='#L132'>132</a>
|
|
198
|
+
<a name='L133'></a><a href='#L133'>133</a>
|
|
199
|
+
<a name='L134'></a><a href='#L134'>134</a>
|
|
200
|
+
<a name='L135'></a><a href='#L135'>135</a>
|
|
201
|
+
<a name='L136'></a><a href='#L136'>136</a>
|
|
202
|
+
<a name='L137'></a><a href='#L137'>137</a>
|
|
203
|
+
<a name='L138'></a><a href='#L138'>138</a>
|
|
204
|
+
<a name='L139'></a><a href='#L139'>139</a>
|
|
205
|
+
<a name='L140'></a><a href='#L140'>140</a>
|
|
206
|
+
<a name='L141'></a><a href='#L141'>141</a>
|
|
207
|
+
<a name='L142'></a><a href='#L142'>142</a>
|
|
208
|
+
<a name='L143'></a><a href='#L143'>143</a>
|
|
209
|
+
<a name='L144'></a><a href='#L144'>144</a>
|
|
210
|
+
<a name='L145'></a><a href='#L145'>145</a>
|
|
211
|
+
<a name='L146'></a><a href='#L146'>146</a>
|
|
212
|
+
<a name='L147'></a><a href='#L147'>147</a>
|
|
213
|
+
<a name='L148'></a><a href='#L148'>148</a>
|
|
214
|
+
<a name='L149'></a><a href='#L149'>149</a>
|
|
215
|
+
<a name='L150'></a><a href='#L150'>150</a>
|
|
216
|
+
<a name='L151'></a><a href='#L151'>151</a>
|
|
217
|
+
<a name='L152'></a><a href='#L152'>152</a>
|
|
218
|
+
<a name='L153'></a><a href='#L153'>153</a>
|
|
219
|
+
<a name='L154'></a><a href='#L154'>154</a>
|
|
220
|
+
<a name='L155'></a><a href='#L155'>155</a>
|
|
221
|
+
<a name='L156'></a><a href='#L156'>156</a>
|
|
222
|
+
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
|
+
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
|
+
<a name='L159'></a><a href='#L159'>159</a>
|
|
225
|
+
<a name='L160'></a><a href='#L160'>160</a>
|
|
226
|
+
<a name='L161'></a><a href='#L161'>161</a>
|
|
227
|
+
<a name='L162'></a><a href='#L162'>162</a>
|
|
228
|
+
<a name='L163'></a><a href='#L163'>163</a>
|
|
229
|
+
<a name='L164'></a><a href='#L164'>164</a>
|
|
230
|
+
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
|
+
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
|
+
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
+
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
|
+
<a name='L169'></a><a href='#L169'>169</a>
|
|
235
|
+
<a name='L170'></a><a href='#L170'>170</a>
|
|
236
|
+
<a name='L171'></a><a href='#L171'>171</a>
|
|
237
|
+
<a name='L172'></a><a href='#L172'>172</a>
|
|
238
|
+
<a name='L173'></a><a href='#L173'>173</a>
|
|
239
|
+
<a name='L174'></a><a href='#L174'>174</a>
|
|
240
|
+
<a name='L175'></a><a href='#L175'>175</a>
|
|
241
|
+
<a name='L176'></a><a href='#L176'>176</a>
|
|
242
|
+
<a name='L177'></a><a href='#L177'>177</a>
|
|
243
|
+
<a name='L178'></a><a href='#L178'>178</a>
|
|
244
|
+
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
|
+
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
|
+
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
+
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
+
<a name='L183'></a><a href='#L183'>183</a>
|
|
249
|
+
<a name='L184'></a><a href='#L184'>184</a>
|
|
250
|
+
<a name='L185'></a><a href='#L185'>185</a>
|
|
251
|
+
<a name='L186'></a><a href='#L186'>186</a>
|
|
252
|
+
<a name='L187'></a><a href='#L187'>187</a>
|
|
253
|
+
<a name='L188'></a><a href='#L188'>188</a>
|
|
254
|
+
<a name='L189'></a><a href='#L189'>189</a>
|
|
255
|
+
<a name='L190'></a><a href='#L190'>190</a>
|
|
256
|
+
<a name='L191'></a><a href='#L191'>191</a>
|
|
257
|
+
<a name='L192'></a><a href='#L192'>192</a>
|
|
258
|
+
<a name='L193'></a><a href='#L193'>193</a>
|
|
259
|
+
<a name='L194'></a><a href='#L194'>194</a>
|
|
260
|
+
<a name='L195'></a><a href='#L195'>195</a>
|
|
261
|
+
<a name='L196'></a><a href='#L196'>196</a>
|
|
262
|
+
<a name='L197'></a><a href='#L197'>197</a>
|
|
263
|
+
<a name='L198'></a><a href='#L198'>198</a>
|
|
264
|
+
<a name='L199'></a><a href='#L199'>199</a>
|
|
265
|
+
<a name='L200'></a><a href='#L200'>200</a>
|
|
266
|
+
<a name='L201'></a><a href='#L201'>201</a>
|
|
267
|
+
<a name='L202'></a><a href='#L202'>202</a>
|
|
268
|
+
<a name='L203'></a><a href='#L203'>203</a>
|
|
269
|
+
<a name='L204'></a><a href='#L204'>204</a>
|
|
270
|
+
<a name='L205'></a><a href='#L205'>205</a>
|
|
271
|
+
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
|
+
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
|
+
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
+
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
|
+
<a name='L210'></a><a href='#L210'>210</a>
|
|
276
|
+
<a name='L211'></a><a href='#L211'>211</a>
|
|
277
|
+
<a name='L212'></a><a href='#L212'>212</a>
|
|
278
|
+
<a name='L213'></a><a href='#L213'>213</a>
|
|
279
|
+
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
|
+
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
|
+
<a name='L216'></a><a href='#L216'>216</a>
|
|
282
|
+
<a name='L217'></a><a href='#L217'>217</a>
|
|
283
|
+
<a name='L218'></a><a href='#L218'>218</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
284
|
+
<span class="cline-any cline-neutral"> </span>
|
|
285
|
+
<span class="cline-any cline-neutral"> </span>
|
|
286
|
+
<span class="cline-any cline-neutral"> </span>
|
|
287
|
+
<span class="cline-any cline-neutral"> </span>
|
|
288
|
+
<span class="cline-any cline-neutral"> </span>
|
|
289
|
+
<span class="cline-any cline-neutral"> </span>
|
|
290
|
+
<span class="cline-any cline-neutral"> </span>
|
|
291
|
+
<span class="cline-any cline-neutral"> </span>
|
|
292
|
+
<span class="cline-any cline-neutral"> </span>
|
|
293
|
+
<span class="cline-any cline-neutral"> </span>
|
|
294
|
+
<span class="cline-any cline-neutral"> </span>
|
|
295
|
+
<span class="cline-any cline-neutral"> </span>
|
|
296
|
+
<span class="cline-any cline-neutral"> </span>
|
|
297
|
+
<span class="cline-any cline-neutral"> </span>
|
|
298
|
+
<span class="cline-any cline-neutral"> </span>
|
|
299
|
+
<span class="cline-any cline-neutral"> </span>
|
|
300
|
+
<span class="cline-any cline-neutral"> </span>
|
|
301
|
+
<span class="cline-any cline-neutral"> </span>
|
|
302
|
+
<span class="cline-any cline-neutral"> </span>
|
|
303
|
+
<span class="cline-any cline-neutral"> </span>
|
|
304
|
+
<span class="cline-any cline-neutral"> </span>
|
|
305
|
+
<span class="cline-any cline-neutral"> </span>
|
|
306
|
+
<span class="cline-any cline-neutral"> </span>
|
|
307
|
+
<span class="cline-any cline-neutral"> </span>
|
|
308
|
+
<span class="cline-any cline-neutral"> </span>
|
|
309
|
+
<span class="cline-any cline-neutral"> </span>
|
|
310
|
+
<span class="cline-any cline-neutral"> </span>
|
|
311
|
+
<span class="cline-any cline-neutral"> </span>
|
|
312
|
+
<span class="cline-any cline-neutral"> </span>
|
|
313
|
+
<span class="cline-any cline-yes">1x</span>
|
|
314
|
+
<span class="cline-any cline-neutral"> </span>
|
|
315
|
+
<span class="cline-any cline-neutral"> </span>
|
|
316
|
+
<span class="cline-any cline-neutral"> </span>
|
|
188
317
|
<span class="cline-any cline-neutral"> </span>
|
|
189
318
|
<span class="cline-any cline-neutral"> </span>
|
|
190
319
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -195,27 +324,41 @@
|
|
|
195
324
|
<span class="cline-any cline-neutral"> </span>
|
|
196
325
|
<span class="cline-any cline-neutral"> </span>
|
|
197
326
|
<span class="cline-any cline-neutral"> </span>
|
|
327
|
+
<span class="cline-any cline-yes">1x</span>
|
|
328
|
+
<span class="cline-any cline-neutral"> </span>
|
|
329
|
+
<span class="cline-any cline-neutral"> </span>
|
|
330
|
+
<span class="cline-any cline-neutral"> </span>
|
|
331
|
+
<span class="cline-any cline-neutral"> </span>
|
|
332
|
+
<span class="cline-any cline-neutral"> </span>
|
|
333
|
+
<span class="cline-any cline-neutral"> </span>
|
|
334
|
+
<span class="cline-any cline-neutral"> </span>
|
|
335
|
+
<span class="cline-any cline-neutral"> </span>
|
|
336
|
+
<span class="cline-any cline-neutral"> </span>
|
|
337
|
+
<span class="cline-any cline-neutral"> </span>
|
|
338
|
+
<span class="cline-any cline-neutral"> </span>
|
|
339
|
+
<span class="cline-any cline-neutral"> </span>
|
|
340
|
+
<span class="cline-any cline-neutral"> </span>
|
|
341
|
+
<span class="cline-any cline-yes">3x</span>
|
|
342
|
+
<span class="cline-any cline-neutral"> </span>
|
|
343
|
+
<span class="cline-any cline-neutral"> </span>
|
|
344
|
+
<span class="cline-any cline-neutral"> </span>
|
|
345
|
+
<span class="cline-any cline-neutral"> </span>
|
|
346
|
+
<span class="cline-any cline-neutral"> </span>
|
|
347
|
+
<span class="cline-any cline-neutral"> </span>
|
|
198
348
|
<span class="cline-any cline-neutral"> </span>
|
|
199
349
|
<span class="cline-any cline-neutral"> </span>
|
|
200
350
|
<span class="cline-any cline-neutral"> </span>
|
|
201
351
|
<span class="cline-any cline-neutral"> </span>
|
|
202
352
|
<span class="cline-any cline-neutral"> </span>
|
|
203
|
-
<span class="cline-any cline-yes">6x</span>
|
|
204
|
-
<span class="cline-any cline-yes">6x</span>
|
|
205
353
|
<span class="cline-any cline-neutral"> </span>
|
|
206
|
-
<span class="cline-any cline-yes">6x</span>
|
|
207
354
|
<span class="cline-any cline-neutral"> </span>
|
|
208
355
|
<span class="cline-any cline-neutral"> </span>
|
|
209
356
|
<span class="cline-any cline-neutral"> </span>
|
|
210
|
-
<span class="cline-any cline-yes">6x</span>
|
|
211
357
|
<span class="cline-any cline-neutral"> </span>
|
|
212
358
|
<span class="cline-any cline-neutral"> </span>
|
|
213
359
|
<span class="cline-any cline-neutral"> </span>
|
|
214
|
-
<span class="cline-any cline-yes">6x</span>
|
|
215
|
-
<span class="cline-any cline-yes">6x</span>
|
|
216
360
|
<span class="cline-any cline-neutral"> </span>
|
|
217
361
|
<span class="cline-any cline-neutral"> </span>
|
|
218
|
-
<span class="cline-any cline-yes">6x</span>
|
|
219
362
|
<span class="cline-any cline-neutral"> </span>
|
|
220
363
|
<span class="cline-any cline-neutral"> </span>
|
|
221
364
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -239,9 +382,9 @@
|
|
|
239
382
|
<span class="cline-any cline-neutral"> </span>
|
|
240
383
|
<span class="cline-any cline-neutral"> </span>
|
|
241
384
|
<span class="cline-any cline-neutral"> </span>
|
|
385
|
+
<span class="cline-any cline-yes">9x</span>
|
|
242
386
|
<span class="cline-any cline-neutral"> </span>
|
|
243
387
|
<span class="cline-any cline-neutral"> </span>
|
|
244
|
-
<span class="cline-any cline-yes">6x</span>
|
|
245
388
|
<span class="cline-any cline-neutral"> </span>
|
|
246
389
|
<span class="cline-any cline-neutral"> </span>
|
|
247
390
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -285,6 +428,8 @@
|
|
|
285
428
|
<span class="cline-any cline-neutral"> </span>
|
|
286
429
|
<span class="cline-any cline-neutral"> </span>
|
|
287
430
|
<span class="cline-any cline-neutral"> </span>
|
|
431
|
+
<span class="cline-any cline-yes">18x</span>
|
|
432
|
+
<span class="cline-any cline-yes">2x</span>
|
|
288
433
|
<span class="cline-any cline-neutral"> </span>
|
|
289
434
|
<span class="cline-any cline-neutral"> </span>
|
|
290
435
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -304,136 +449,279 @@
|
|
|
304
449
|
<span class="cline-any cline-neutral"> </span>
|
|
305
450
|
<span class="cline-any cline-neutral"> </span>
|
|
306
451
|
<span class="cline-any cline-neutral"> </span>
|
|
452
|
+
<span class="cline-any cline-yes">16x</span>
|
|
453
|
+
<span class="cline-any cline-yes">1x</span>
|
|
454
|
+
<span class="cline-any cline-neutral"> </span>
|
|
455
|
+
<span class="cline-any cline-neutral"> </span>
|
|
456
|
+
<span class="cline-any cline-neutral"> </span>
|
|
457
|
+
<span class="cline-any cline-neutral"> </span>
|
|
458
|
+
<span class="cline-any cline-neutral"> </span>
|
|
459
|
+
<span class="cline-any cline-neutral"> </span>
|
|
460
|
+
<span class="cline-any cline-neutral"> </span>
|
|
461
|
+
<span class="cline-any cline-neutral"> </span>
|
|
462
|
+
<span class="cline-any cline-neutral"> </span>
|
|
463
|
+
<span class="cline-any cline-neutral"> </span>
|
|
464
|
+
<span class="cline-any cline-neutral"> </span>
|
|
465
|
+
<span class="cline-any cline-neutral"> </span>
|
|
466
|
+
<span class="cline-any cline-neutral"> </span>
|
|
467
|
+
<span class="cline-any cline-neutral"> </span>
|
|
468
|
+
<span class="cline-any cline-neutral"> </span>
|
|
469
|
+
<span class="cline-any cline-yes">15x</span>
|
|
470
|
+
<span class="cline-any cline-neutral"> </span>
|
|
471
|
+
<span class="cline-any cline-neutral"> </span>
|
|
472
|
+
<span class="cline-any cline-neutral"> </span>
|
|
473
|
+
<span class="cline-any cline-neutral"> </span>
|
|
474
|
+
<span class="cline-any cline-neutral"> </span>
|
|
475
|
+
<span class="cline-any cline-neutral"> </span>
|
|
476
|
+
<span class="cline-any cline-neutral"> </span>
|
|
477
|
+
<span class="cline-any cline-neutral"> </span>
|
|
478
|
+
<span class="cline-any cline-neutral"> </span>
|
|
479
|
+
<span class="cline-any cline-neutral"> </span>
|
|
480
|
+
<span class="cline-any cline-neutral"> </span>
|
|
307
481
|
<span class="cline-any cline-neutral"> </span>
|
|
308
|
-
<span class="cline-any cline-neutral"> </span
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
482
|
+
<span class="cline-any cline-neutral"> </span>
|
|
483
|
+
<span class="cline-any cline-neutral"> </span>
|
|
484
|
+
<span class="cline-any cline-yes">1x</span>
|
|
485
|
+
<span class="cline-any cline-neutral"> </span>
|
|
486
|
+
<span class="cline-any cline-neutral"> </span>
|
|
487
|
+
<span class="cline-any cline-neutral"> </span>
|
|
488
|
+
<span class="cline-any cline-neutral"> </span>
|
|
489
|
+
<span class="cline-any cline-neutral"> </span>
|
|
490
|
+
<span class="cline-any cline-neutral"> </span>
|
|
491
|
+
<span class="cline-any cline-neutral"> </span>
|
|
492
|
+
<span class="cline-any cline-neutral"> </span>
|
|
493
|
+
<span class="cline-any cline-neutral"> </span>
|
|
494
|
+
<span class="cline-any cline-neutral"> </span>
|
|
495
|
+
<span class="cline-any cline-neutral"> </span>
|
|
496
|
+
<span class="cline-any cline-neutral"> </span>
|
|
497
|
+
<span class="cline-any cline-neutral"> </span>
|
|
498
|
+
<span class="cline-any cline-neutral"> </span>
|
|
499
|
+
<span class="cline-any cline-neutral"> </span>
|
|
500
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
501
|
+
import PropTypes from "prop-types";
|
|
502
|
+
import { visuallyHidden } from '@mui/utils';
|
|
313
503
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
504
|
+
import {
|
|
505
|
+
Pagination as PaginationComponent,
|
|
506
|
+
PaginationItem,
|
|
507
|
+
Select,
|
|
508
|
+
MenuItem,
|
|
509
|
+
Typography,
|
|
510
|
+
} from "@mui/material";
|
|
511
|
+
import { styled } from "@mui/system";
|
|
512
|
+
|
|
513
|
+
// for ts later implemeentation.
|
|
514
|
+
// interface PaginationProps {
|
|
515
|
+
// totalItems: number; // total items
|
|
516
|
+
// visibleItems: number; // returned by paging object in spring
|
|
517
|
+
// count: number; // page count
|
|
518
|
+
// limit: number; // items per page
|
|
519
|
+
// limitOptions: number[]; // limit options
|
|
520
|
+
// shape?: "rounded" | "circular"; // style
|
|
521
|
+
// page: number; // current page zer0 indexed
|
|
522
|
+
// siblingCount?: number;
|
|
523
|
+
// boundaryCount?: number;
|
|
524
|
+
// handlePageChange: (e: any, v: any) => void;
|
|
525
|
+
// handleLimitChange: (e: any) => void;
|
|
526
|
+
// hidePrevButton: boolean;
|
|
527
|
+
// hideNextButton: boolean;
|
|
528
|
+
// }
|
|
337
529
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
530
|
+
const Container = styled("div")({
|
|
531
|
+
display: "flex",
|
|
532
|
+
flexGrow: 1,
|
|
533
|
+
flexDirection: "row",
|
|
534
|
+
justifyContent: "space-between",
|
|
535
|
+
alignItems: "center",
|
|
536
|
+
minHeight: 90,
|
|
537
|
+
padding: "0px 24px",
|
|
538
|
+
});
|
|
539
|
+
const Row = styled("div")({
|
|
540
|
+
display: "flex",
|
|
541
|
+
flexDirection: "row",
|
|
542
|
+
alignItems: "center",
|
|
543
|
+
});
|
|
544
|
+
const Pagination = ({
|
|
545
|
+
totalItems = 0,
|
|
546
|
+
visibleItems = 0,
|
|
547
|
+
count = 1,
|
|
548
|
+
offset = 0,
|
|
549
|
+
shape = "rounded",
|
|
550
|
+
page = 0,
|
|
551
|
+
limit = 10,
|
|
552
|
+
limitOptions = [10, 25, 50],
|
|
553
|
+
handlePageChange,
|
|
554
|
+
handleLimitChange,
|
|
555
|
+
hidePrevButton = true,
|
|
556
|
+
hideNextButton = false,
|
|
557
|
+
}) => {
|
|
365
558
|
return (
|
|
366
|
-
<
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
mb: 0,
|
|
393
|
-
p: 2.375,
|
|
394
|
-
fontFamily: 'Rubik',
|
|
395
|
-
fontWeight: 500,
|
|
396
|
-
fontSize: 14
|
|
559
|
+
<Container>
|
|
560
|
+
<Row>
|
|
561
|
+
{/*this span is only for screen reader*/}
|
|
562
|
+
<span
|
|
563
|
+
id="items-per-page"
|
|
564
|
+
style={visuallyHidden}
|
|
565
|
+
>
|
|
566
|
+
Items per page {limit}.
|
|
567
|
+
</span>
|
|
568
|
+
<Typography
|
|
569
|
+
fontSize={14}
|
|
570
|
+
fontFamily="Rubik"
|
|
571
|
+
sx={{
|
|
572
|
+
color: "#333333",
|
|
573
|
+
}}
|
|
574
|
+
>
|
|
575
|
+
Items per page
|
|
576
|
+
</Typography>
|
|
577
|
+
<Select
|
|
578
|
+
size="small"
|
|
579
|
+
sx={{
|
|
580
|
+
margin: "0 11px",
|
|
581
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
582
|
+
"& legend": {
|
|
583
|
+
width: 0,
|
|
584
|
+
},
|
|
397
585
|
},
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
color: '#fff'
|
|
403
|
-
}
|
|
586
|
+
"& .MuiInputBase-input": {
|
|
587
|
+
fontFamily: "Rubik",
|
|
588
|
+
fontSize: 14,
|
|
589
|
+
borderRadius: 3,
|
|
404
590
|
},
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
591
|
+
}}
|
|
592
|
+
id="pagination-limit-select"
|
|
593
|
+
value={limit}
|
|
594
|
+
label={null}
|
|
595
|
+
onChange={handleLimitChange}
|
|
596
|
+
inputProps={{
|
|
597
|
+
"aria-labelledby":"items-per-page",
|
|
598
|
+
"aria-describedby": "items-per-page offset-of-total-items",
|
|
599
|
+
}}
|
|
600
|
+
>
|
|
601
|
+
{limitOptions.map((val) => (
|
|
602
|
+
<MenuItem
|
|
603
|
+
value={val}
|
|
604
|
+
key={`limit-${val}`}
|
|
605
|
+
data-testid="limit-option"
|
|
606
|
+
>
|
|
607
|
+
{val}
|
|
608
|
+
</MenuItem>
|
|
609
|
+
))}
|
|
610
|
+
</Select>
|
|
611
|
+
<Typography
|
|
612
|
+
fontSize={14}
|
|
613
|
+
id="offset-of-total-items"
|
|
614
|
+
sx={{
|
|
615
|
+
color: "#757575",
|
|
616
|
+
}}
|
|
617
|
+
fontFamily="Rubik"
|
|
618
|
+
>{`${offset + 1} - ${
|
|
619
|
+
visibleItems + offset
|
|
620
|
+
} of ${totalItems}`}</Typography>
|
|
621
|
+
</Row>
|
|
622
|
+
<PaginationComponent
|
|
623
|
+
sx={{
|
|
624
|
+
"& .MuiPagination-ul": {
|
|
625
|
+
"& .MuiPaginationItem-root": {
|
|
626
|
+
color: "#0073C8",
|
|
627
|
+
border: "solid 1px #CACACA",
|
|
628
|
+
"&:focus": {
|
|
629
|
+
border: "0.0625rem solid #125496",
|
|
630
|
+
borderRadius: "0.1875rem",
|
|
631
|
+
boxShadow: "0 0 0 0.25rem #cbe4ff",
|
|
632
|
+
outline: "none",
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
"& .Mui-selected": {
|
|
636
|
+
color: "#fff",
|
|
637
|
+
backgroundColor: "#0073C8 !important",
|
|
638
|
+
},
|
|
639
|
+
"& .MuiPaginationItem-ellipsis": {
|
|
640
|
+
border: "solid 1px transparent",
|
|
641
|
+
},
|
|
642
|
+
"& .MuiPaginationItem-previousNext": {
|
|
643
|
+
border: "solid 1px transparent",
|
|
644
|
+
},
|
|
645
|
+
},
|
|
646
|
+
}}
|
|
647
|
+
renderItem={(props) => {
|
|
648
|
+
if (props.type === "next") {
|
|
649
|
+
return (
|
|
650
|
+
<PaginationItem
|
|
651
|
+
sx={{
|
|
652
|
+
border: "solid 1px transparent",
|
|
653
|
+
"& .Mui-selected": {
|
|
654
|
+
backgroundColor: "#0073C8",
|
|
655
|
+
border: "solid 1px #0073C8",
|
|
656
|
+
color: "#fff",
|
|
657
|
+
},
|
|
658
|
+
"&::before": {
|
|
659
|
+
content: '"Next "',
|
|
660
|
+
marginRight: "5px",
|
|
661
|
+
fontSize: 14,
|
|
662
|
+
fontFamily: "Rubik",
|
|
663
|
+
},
|
|
664
|
+
}}
|
|
665
|
+
{...props}
|
|
666
|
+
/>
|
|
667
|
+
);
|
|
411
668
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
669
|
+
if (props.type === "previous") {
|
|
670
|
+
return (
|
|
671
|
+
<PaginationItem
|
|
672
|
+
sx={{
|
|
673
|
+
border: "solid 1px transparent",
|
|
674
|
+
"& .Mui-selected": {},
|
|
675
|
+
"&::after": {
|
|
676
|
+
content: '" Previous"',
|
|
677
|
+
marginLeft: "5px",
|
|
678
|
+
fontSize: 14,
|
|
679
|
+
fontFamily: "Rubik",
|
|
680
|
+
},
|
|
681
|
+
}}
|
|
682
|
+
{...props}
|
|
683
|
+
/>
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
return <PaginationItem {...props} />;
|
|
687
|
+
}}
|
|
688
|
+
count={count}
|
|
689
|
+
page={page}
|
|
690
|
+
shape={shape}
|
|
691
|
+
siblingCount={2}
|
|
692
|
+
boundaryCount={0}
|
|
693
|
+
onChange={handlePageChange}
|
|
694
|
+
hidePrevButton={hidePrevButton}
|
|
695
|
+
hideNextButton={hideNextButton}
|
|
696
|
+
/>
|
|
697
|
+
</Container>
|
|
698
|
+
);
|
|
699
|
+
};
|
|
419
700
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
701
|
+
Pagination.propTypes = {
|
|
702
|
+
totalItems: PropTypes.number,
|
|
703
|
+
visibleItems: PropTypes.number,
|
|
704
|
+
count: PropTypes.number,
|
|
705
|
+
offset: PropTypes.number,
|
|
706
|
+
shape: PropTypes.string,
|
|
707
|
+
limit: PropTypes.number,
|
|
708
|
+
page: PropTypes.number,
|
|
709
|
+
limitOptions: PropTypes.array,
|
|
710
|
+
handlePageChange: PropTypes.func,
|
|
711
|
+
handleLimitChange: PropTypes.func,
|
|
712
|
+
hidePrevButton: PropTypes.bool,
|
|
713
|
+
hideNextButton: PropTypes.bool,
|
|
714
|
+
type: PropTypes.string,
|
|
715
|
+
};
|
|
427
716
|
|
|
428
|
-
export
|
|
429
|
-
</pre></td></tr></table></pre>
|
|
717
|
+
export { Pagination };</pre></td></tr></table></pre>
|
|
430
718
|
|
|
431
719
|
<div class='push'></div><!-- for sticky footer -->
|
|
432
720
|
</div><!-- /wrapper -->
|
|
433
721
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
434
722
|
Code coverage generated by
|
|
435
723
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
436
|
-
at
|
|
724
|
+
at 2023-01-27T17:32:44.199Z
|
|
437
725
|
</div>
|
|
438
726
|
<script src="prettify.js"></script>
|
|
439
727
|
<script>
|