ProgressBars.spec.js.snap 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ProgressBars.vue renders correctly 1`] = `
  3. <div>
  4. <ccard-stub>
  5. <ccardheader-stub>
  6. <cicon-stub
  7. name="cil-justify-center"
  8. />
  9. <strong>
  10. Bootstrap Progress
  11. </strong>
  12. <div
  13. class="card-header-actions"
  14. >
  15. <a
  16. class="card-header-action"
  17. href="https://coreui.io/vue/docs/components/progress"
  18. rel="noreferrer noopener"
  19. target="_blank"
  20. >
  21. <small
  22. class="text-muted"
  23. >
  24. docs
  25. </small>
  26. </a>
  27. </div>
  28. </ccardheader-stub>
  29. <ccardbody-stub>
  30. <cprogress-stub
  31. animated="true"
  32. max="100"
  33. precision="0"
  34. showpercentage="true"
  35. value="73"
  36. />
  37. <cprogress-stub
  38. class="mt-1"
  39. max="100"
  40. precision="0"
  41. showvalue="true"
  42. value="0"
  43. >
  44. <cprogressbar-stub
  45. color="gradient-success"
  46. max="100"
  47. precision="0"
  48. value="43.8"
  49. />
  50. <cprogressbar-stub
  51. color="gradient-warning"
  52. max="100"
  53. precision="0"
  54. value="18.25"
  55. />
  56. <cprogressbar-stub
  57. color="gradient-danger"
  58. max="100"
  59. precision="0"
  60. value="10.95"
  61. />
  62. </cprogress-stub>
  63. <cbutton-stub
  64. activeclass="router-link-active"
  65. class="mt-4"
  66. color="secondary"
  67. event="click"
  68. exactactiveclass="router-link-exact-active"
  69. routertag="a"
  70. target="_self"
  71. type="button"
  72. >
  73. Click me to animate progress bars
  74. </cbutton-stub>
  75. </ccardbody-stub>
  76. </ccard-stub>
  77. <ccard-stub>
  78. <ccardheader-stub>
  79. <cicon-stub
  80. name="cil-justify-center"
  81. />
  82. <strong>
  83. Progress
  84. </strong>
  85. <small>
  86. labels
  87. </small>
  88. </ccardheader-stub>
  89. <ccardbody-stub>
  90. <h6>
  91. No label
  92. </h6>
  93. <cprogress-stub
  94. class="mb-3"
  95. max="50"
  96. precision="0"
  97. value="33.333333333"
  98. />
  99. <h6>
  100. Value label
  101. </h6>
  102. <cprogress-stub
  103. class="mb-3"
  104. max="50"
  105. precision="0"
  106. showvalue="true"
  107. value="33.333333333"
  108. />
  109. <h6>
  110. Progress label
  111. </h6>
  112. <cprogress-stub
  113. class="mb-3"
  114. max="50"
  115. precision="0"
  116. showpercentage="true"
  117. value="33.333333333"
  118. />
  119. <h6>
  120. Value label with precision
  121. </h6>
  122. <cprogress-stub
  123. class="mb-3"
  124. max="50"
  125. precision="2"
  126. showvalue="true"
  127. value="33.333333333"
  128. />
  129. <h6>
  130. Progress label with precision
  131. </h6>
  132. <cprogress-stub
  133. class="mb-3"
  134. max="50"
  135. precision="2"
  136. showpercentage="true"
  137. value="33.333333333"
  138. />
  139. </ccardbody-stub>
  140. </ccard-stub>
  141. <ccard-stub>
  142. <ccardheader-stub>
  143. <cicon-stub
  144. name="cil-justify-center"
  145. />
  146. <strong>
  147. Progress
  148. </strong>
  149. <small>
  150. width
  151. </small>
  152. </ccardheader-stub>
  153. <ccardbody-stub>
  154. <h6>
  155. Default width
  156. </h6>
  157. <cprogress-stub
  158. class="mb-3"
  159. max="100"
  160. precision="0"
  161. value="75"
  162. />
  163. <h6>
  164. Custom widths
  165. </h6>
  166. <cprogress-stub
  167. class="w-75 mb-2"
  168. max="100"
  169. precision="0"
  170. value="75"
  171. />
  172. <cprogress-stub
  173. class="w-50 mb-2"
  174. max="100"
  175. precision="0"
  176. value="75"
  177. />
  178. <cprogress-stub
  179. class="w-25"
  180. max="100"
  181. precision="0"
  182. value="75"
  183. />
  184. </ccardbody-stub>
  185. </ccard-stub>
  186. <ccard-stub>
  187. <ccardheader-stub>
  188. <cicon-stub
  189. name="cil-justify-center"
  190. />
  191. <strong>
  192. Progress
  193. </strong>
  194. <small>
  195. height
  196. </small>
  197. </ccardheader-stub>
  198. <ccardbody-stub>
  199. <h6>
  200. Default height
  201. </h6>
  202. <cprogress-stub
  203. class="mb-3"
  204. max="100"
  205. precision="0"
  206. showpercentage="true"
  207. value="75"
  208. />
  209. <h6>
  210. Custom heights
  211. </h6>
  212. <cprogress-stub
  213. class="mb-2"
  214. max="100"
  215. precision="0"
  216. showpercentage="true"
  217. size="xs"
  218. value="75"
  219. />
  220. <cprogress-stub
  221. class="mb-2"
  222. max="100"
  223. precision="0"
  224. showpercentage="true"
  225. size="sm"
  226. value="75"
  227. />
  228. <cprogress-stub
  229. class="mb-2"
  230. max="100"
  231. precision="0"
  232. showpercentage="true"
  233. style="height: 2rem;"
  234. value="75"
  235. />
  236. <cprogress-stub
  237. class="mb-2"
  238. max="100"
  239. precision="0"
  240. showpercentage="true"
  241. style="height: 20px;"
  242. value="75"
  243. />
  244. <cprogress-stub
  245. max="100"
  246. precision="0"
  247. style="height: 2px;"
  248. value="75"
  249. />
  250. </ccardbody-stub>
  251. </ccard-stub>
  252. <ccard-stub>
  253. <ccardheader-stub>
  254. <cicon-stub
  255. name="cil-justify-center"
  256. />
  257. <strong>
  258. Progress
  259. </strong>
  260. <small>
  261. colors
  262. </small>
  263. </ccardheader-stub>
  264. <ccardbody-stub>
  265. <div
  266. class="row mb-1"
  267. >
  268. <div
  269. class="col-sm-2"
  270. >
  271. gradient-success:
  272. </div>
  273. <div
  274. class="col-sm-10 pt-1"
  275. >
  276. <cprogress-stub
  277. color="gradient-success"
  278. max="100"
  279. precision="0"
  280. value="75"
  281. />
  282. </div>
  283. </div>
  284. <div
  285. class="row mb-1"
  286. >
  287. <div
  288. class="col-sm-2"
  289. >
  290. gradient-info:
  291. </div>
  292. <div
  293. class="col-sm-10 pt-1"
  294. >
  295. <cprogress-stub
  296. color="gradient-info"
  297. max="100"
  298. precision="0"
  299. value="75"
  300. />
  301. </div>
  302. </div>
  303. <div
  304. class="row mb-1"
  305. >
  306. <div
  307. class="col-sm-2"
  308. >
  309. gradient-warning:
  310. </div>
  311. <div
  312. class="col-sm-10 pt-1"
  313. >
  314. <cprogress-stub
  315. color="gradient-warning"
  316. max="100"
  317. precision="0"
  318. value="75"
  319. />
  320. </div>
  321. </div>
  322. <div
  323. class="row mb-1"
  324. >
  325. <div
  326. class="col-sm-2"
  327. >
  328. gradient-danger:
  329. </div>
  330. <div
  331. class="col-sm-10 pt-1"
  332. >
  333. <cprogress-stub
  334. color="gradient-danger"
  335. max="100"
  336. precision="0"
  337. value="75"
  338. />
  339. </div>
  340. </div>
  341. <div
  342. class="row mb-1"
  343. >
  344. <div
  345. class="col-sm-2"
  346. >
  347. gradient-primary:
  348. </div>
  349. <div
  350. class="col-sm-10 pt-1"
  351. >
  352. <cprogress-stub
  353. color="gradient-primary"
  354. max="100"
  355. precision="0"
  356. value="75"
  357. />
  358. </div>
  359. </div>
  360. <div
  361. class="row mb-1"
  362. >
  363. <div
  364. class="col-sm-2"
  365. >
  366. gradient-secondary:
  367. </div>
  368. <div
  369. class="col-sm-10 pt-1"
  370. >
  371. <cprogress-stub
  372. color="gradient-secondary"
  373. max="100"
  374. precision="0"
  375. value="75"
  376. />
  377. </div>
  378. </div>
  379. <div
  380. class="row mb-1"
  381. >
  382. <div
  383. class="col-sm-2"
  384. >
  385. gradient-dark:
  386. </div>
  387. <div
  388. class="col-sm-10 pt-1"
  389. >
  390. <cprogress-stub
  391. color="gradient-dark"
  392. max="100"
  393. precision="0"
  394. value="75"
  395. />
  396. </div>
  397. </div>
  398. </ccardbody-stub>
  399. </ccard-stub>
  400. <ccard-stub>
  401. <ccardheader-stub>
  402. <cicon-stub
  403. name="cil-justify-center"
  404. />
  405. <strong>
  406. Progress
  407. </strong>
  408. <small>
  409. striped
  410. </small>
  411. </ccardheader-stub>
  412. <ccardbody-stub>
  413. <cprogress-stub
  414. class="mb-2"
  415. color="success"
  416. max="100"
  417. precision="0"
  418. striped="true"
  419. value="25"
  420. />
  421. <cprogress-stub
  422. class="mb-2"
  423. color="info"
  424. max="100"
  425. precision="0"
  426. striped="true"
  427. value="50"
  428. />
  429. <cprogress-stub
  430. class="mb-2"
  431. color="warning"
  432. max="100"
  433. precision="0"
  434. striped="true"
  435. value="75"
  436. />
  437. <cprogress-stub
  438. class="mb-2"
  439. color="danger"
  440. max="100"
  441. precision="0"
  442. striped="true"
  443. value="100"
  444. />
  445. <cbutton-stub
  446. activeclass="router-link-active"
  447. color="secondary"
  448. event="click"
  449. exactactiveclass="router-link-exact-active"
  450. routertag="a"
  451. target="_self"
  452. type="button"
  453. >
  454. Remove Striped
  455. </cbutton-stub>
  456. </ccardbody-stub>
  457. </ccard-stub>
  458. <ccard-stub>
  459. <ccardheader-stub>
  460. <cicon-stub
  461. name="cil-justify-center"
  462. />
  463. <strong>
  464. Progress
  465. </strong>
  466. <small>
  467. animated
  468. </small>
  469. </ccardheader-stub>
  470. <ccardbody-stub>
  471. <cprogress-stub
  472. animated="true"
  473. class="mb-2"
  474. color="success"
  475. max="100"
  476. precision="0"
  477. striped="true"
  478. value="25"
  479. />
  480. <cprogress-stub
  481. animated="true"
  482. class="mb-2"
  483. color="info"
  484. max="100"
  485. precision="0"
  486. striped="true"
  487. value="50"
  488. />
  489. <cprogress-stub
  490. animated="true"
  491. class="mb-2"
  492. color="warning"
  493. max="100"
  494. precision="0"
  495. striped="true"
  496. value="75"
  497. />
  498. <cprogress-stub
  499. animated="true"
  500. class="mb-3"
  501. color="danger"
  502. max="100"
  503. precision="0"
  504. value="100"
  505. />
  506. <cbutton-stub
  507. activeclass="router-link-active"
  508. color="secondary"
  509. event="click"
  510. exactactiveclass="router-link-exact-active"
  511. routertag="a"
  512. target="_self"
  513. type="button"
  514. >
  515. Stop Animation
  516. </cbutton-stub>
  517. </ccardbody-stub>
  518. </ccard-stub>
  519. <ccard-stub>
  520. <ccardheader-stub>
  521. <cicon-stub
  522. name="cil-justify-center"
  523. />
  524. <strong>
  525. Progress
  526. </strong>
  527. <small>
  528. multiple bars
  529. </small>
  530. </ccardheader-stub>
  531. <ccardbody-stub>
  532. <cprogress-stub
  533. class="mb-3"
  534. max="100"
  535. precision="0"
  536. value="0"
  537. >
  538. <cprogressbar-stub
  539. color="gradient-primary"
  540. max="100"
  541. precision="0"
  542. value="15"
  543. />
  544. <cprogressbar-stub
  545. color="gradient-success"
  546. max="100"
  547. precision="0"
  548. value="30"
  549. />
  550. <cprogressbar-stub
  551. color="gradient-info"
  552. max="100"
  553. precision="0"
  554. value="20"
  555. />
  556. </cprogress-stub>
  557. <cprogress-stub
  558. class="mb-3"
  559. max="100"
  560. precision="0"
  561. showpercentage="true"
  562. value="0"
  563. >
  564. <cprogressbar-stub
  565. color="gradient-primary"
  566. max="100"
  567. precision="0"
  568. value="15"
  569. />
  570. <cprogressbar-stub
  571. color="gradient-success"
  572. max="100"
  573. precision="0"
  574. value="30"
  575. />
  576. <cprogressbar-stub
  577. color="gradient-info"
  578. max="100"
  579. precision="0"
  580. value="20"
  581. />
  582. </cprogress-stub>
  583. <cprogress-stub
  584. class="mb-3"
  585. max="100"
  586. precision="0"
  587. showvalue="true"
  588. striped="true"
  589. value="0"
  590. >
  591. <cprogressbar-stub
  592. color="gradient-primary"
  593. max="100"
  594. precision="0"
  595. value="15"
  596. />
  597. <cprogressbar-stub
  598. color="gradient-success"
  599. max="100"
  600. precision="0"
  601. value="30"
  602. />
  603. <cprogressbar-stub
  604. color="gradient-info"
  605. max="100"
  606. precision="0"
  607. value="20"
  608. />
  609. </cprogress-stub>
  610. <cprogress-stub
  611. class="mb-3"
  612. max="100"
  613. precision="0"
  614. value="0"
  615. >
  616. <cprogressbar-stub
  617. color="gradient-primary"
  618. max="100"
  619. precision="0"
  620. showpercentage="true"
  621. value="15"
  622. />
  623. <cprogressbar-stub
  624. animated="true"
  625. color="success"
  626. max="100"
  627. precision="0"
  628. showpercentage="true"
  629. value="30"
  630. />
  631. <cprogressbar-stub
  632. color="gradient-info"
  633. max="100"
  634. precision="0"
  635. showpercentage="true"
  636. striped="true"
  637. value="20"
  638. />
  639. </cprogress-stub>
  640. </ccardbody-stub>
  641. </ccard-stub>
  642. </div>
  643. `;