ButtonGroups.spec.js.snap 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ButtonGroups.vue renders correctly 1`] = `
  3. <crow-stub
  4. gutters="true"
  5. tag="div"
  6. >
  7. <ccol-stub
  8. col="12"
  9. tag="div"
  10. >
  11. <ccard-stub>
  12. <ccardheader-stub>
  13. <cicon-stub
  14. name="cil-justify-center"
  15. />
  16. <strong>
  17. Bootstrap button group
  18. </strong>
  19. <div
  20. class="card-header-actions"
  21. >
  22. <a
  23. class="card-header-action"
  24. href="https://coreui.io/vue/docs/components/button-components"
  25. rel="noreferrer noopener"
  26. target="_blank"
  27. >
  28. <small
  29. class="text-muted"
  30. >
  31. docs
  32. </small>
  33. </a>
  34. </div>
  35. </ccardheader-stub>
  36. <ccardbody-stub>
  37. <div>
  38. <cbuttongroup-stub>
  39. <cbutton-stub
  40. activeclass="router-link-active"
  41. color="secondary"
  42. event="click"
  43. exactactiveclass="router-link-exact-active"
  44. routertag="a"
  45. target="_self"
  46. type="button"
  47. >
  48. One
  49. </cbutton-stub>
  50. <cbutton-stub
  51. activeclass="router-link-active"
  52. color="secondary"
  53. event="click"
  54. exactactiveclass="router-link-exact-active"
  55. routertag="a"
  56. target="_self"
  57. type="button"
  58. >
  59. Two
  60. </cbutton-stub>
  61. <cbutton-stub
  62. activeclass="router-link-active"
  63. color="secondary"
  64. event="click"
  65. exactactiveclass="router-link-exact-active"
  66. routertag="a"
  67. target="_self"
  68. type="button"
  69. >
  70. Three
  71. </cbutton-stub>
  72. <cbutton-stub
  73. activeclass="router-link-active"
  74. color="secondary"
  75. event="click"
  76. exactactiveclass="router-link-exact-active"
  77. routertag="a"
  78. target="_self"
  79. type="button"
  80. >
  81. Four
  82. </cbutton-stub>
  83. <cbutton-stub
  84. activeclass="router-link-active"
  85. class="d-sm-down-none"
  86. color="secondary"
  87. event="click"
  88. exactactiveclass="router-link-exact-active"
  89. routertag="a"
  90. target="_self"
  91. type="button"
  92. >
  93. Five
  94. </cbutton-stub>
  95. </cbuttongroup-stub>
  96. <br />
  97. <br />
  98. <cbuttongroup-stub>
  99. <cbutton-stub
  100. activeclass="router-link-active"
  101. class="d-sm-down-none"
  102. color="success"
  103. event="click"
  104. exactactiveclass="router-link-exact-active"
  105. routertag="a"
  106. target="_self"
  107. type="button"
  108. >
  109. Success
  110. </cbutton-stub>
  111. <cbutton-stub
  112. activeclass="router-link-active"
  113. color="info"
  114. event="click"
  115. exactactiveclass="router-link-exact-active"
  116. routertag="a"
  117. target="_self"
  118. type="button"
  119. >
  120. Info
  121. </cbutton-stub>
  122. <cbutton-stub
  123. activeclass="router-link-active"
  124. color="warning"
  125. event="click"
  126. exactactiveclass="router-link-exact-active"
  127. routertag="a"
  128. target="_self"
  129. type="button"
  130. >
  131. Warn
  132. </cbutton-stub>
  133. <cbutton-stub
  134. activeclass="router-link-active"
  135. class="d-sm-down-none"
  136. color="primary"
  137. event="click"
  138. exactactiveclass="router-link-exact-active"
  139. routertag="a"
  140. target="_self"
  141. type="button"
  142. >
  143. Primary
  144. </cbutton-stub>
  145. <cbutton-stub
  146. activeclass="router-link-active"
  147. color="danger"
  148. event="click"
  149. exactactiveclass="router-link-exact-active"
  150. routertag="a"
  151. target="_self"
  152. type="button"
  153. >
  154. Danger
  155. </cbutton-stub>
  156. <cbutton-stub
  157. activeclass="router-link-active"
  158. color="link"
  159. event="click"
  160. exactactiveclass="router-link-exact-active"
  161. routertag="a"
  162. target="_self"
  163. type="button"
  164. >
  165. Link
  166. </cbutton-stub>
  167. </cbuttongroup-stub>
  168. </div>
  169. </ccardbody-stub>
  170. </ccard-stub>
  171. </ccol-stub>
  172. <ccol-stub
  173. col="12"
  174. tag="div"
  175. >
  176. <ccard-stub>
  177. <ccardheader-stub>
  178. <cicon-stub
  179. name="cil-justify-center"
  180. />
  181. <strong>
  182. Button group
  183. </strong>
  184. sizing
  185. </ccardheader-stub>
  186. <ccardbody-stub>
  187. <div>
  188. <cbuttongroup-stub>
  189. <cbutton-stub
  190. activeclass="router-link-active"
  191. color="secondary"
  192. event="click"
  193. exactactiveclass="router-link-exact-active"
  194. routertag="a"
  195. target="_self"
  196. type="button"
  197. >
  198. Left
  199. </cbutton-stub>
  200. <cbutton-stub
  201. activeclass="router-link-active"
  202. color="secondary"
  203. event="click"
  204. exactactiveclass="router-link-exact-active"
  205. routertag="a"
  206. target="_self"
  207. type="button"
  208. >
  209. Middle
  210. </cbutton-stub>
  211. <cbutton-stub
  212. activeclass="router-link-active"
  213. color="secondary"
  214. event="click"
  215. exactactiveclass="router-link-exact-active"
  216. routertag="a"
  217. target="_self"
  218. type="button"
  219. >
  220. Right
  221. </cbutton-stub>
  222. </cbuttongroup-stub>
  223. <br />
  224. <br />
  225. <cbuttongroup-stub
  226. size="sm"
  227. >
  228. <cbutton-stub
  229. activeclass="router-link-active"
  230. color="secondary"
  231. event="click"
  232. exactactiveclass="router-link-exact-active"
  233. routertag="a"
  234. target="_self"
  235. type="button"
  236. >
  237. Left
  238. </cbutton-stub>
  239. <cbutton-stub
  240. activeclass="router-link-active"
  241. color="secondary"
  242. event="click"
  243. exactactiveclass="router-link-exact-active"
  244. routertag="a"
  245. target="_self"
  246. type="button"
  247. >
  248. Middle
  249. </cbutton-stub>
  250. <cbutton-stub
  251. activeclass="router-link-active"
  252. color="secondary"
  253. event="click"
  254. exactactiveclass="router-link-exact-active"
  255. routertag="a"
  256. target="_self"
  257. type="button"
  258. >
  259. Right
  260. </cbutton-stub>
  261. </cbuttongroup-stub>
  262. <br />
  263. <br />
  264. <cbuttongroup-stub
  265. size="lg"
  266. >
  267. <cbutton-stub
  268. activeclass="router-link-active"
  269. color="secondary"
  270. event="click"
  271. exactactiveclass="router-link-exact-active"
  272. routertag="a"
  273. target="_self"
  274. type="button"
  275. >
  276. Left
  277. </cbutton-stub>
  278. <cbutton-stub
  279. activeclass="router-link-active"
  280. color="secondary"
  281. event="click"
  282. exactactiveclass="router-link-exact-active"
  283. routertag="a"
  284. target="_self"
  285. type="button"
  286. >
  287. Middle
  288. </cbutton-stub>
  289. <cbutton-stub
  290. activeclass="router-link-active"
  291. color="secondary"
  292. event="click"
  293. exactactiveclass="router-link-exact-active"
  294. routertag="a"
  295. target="_self"
  296. type="button"
  297. >
  298. Right
  299. </cbutton-stub>
  300. </cbuttongroup-stub>
  301. </div>
  302. </ccardbody-stub>
  303. </ccard-stub>
  304. </ccol-stub>
  305. <ccol-stub
  306. col="12"
  307. tag="div"
  308. >
  309. <ccard-stub>
  310. <ccardheader-stub>
  311. <cicon-stub
  312. name="cil-justify-center"
  313. />
  314. <strong>
  315. Button group
  316. </strong>
  317. dropdown support
  318. </ccardheader-stub>
  319. <ccardbody-stub>
  320. <div>
  321. <cbuttongroup-stub>
  322. <cbutton-stub
  323. activeclass="router-link-active"
  324. class="d-sm-down-none"
  325. color="secondary"
  326. event="click"
  327. exactactiveclass="router-link-exact-active"
  328. routertag="a"
  329. target="_self"
  330. type="button"
  331. >
  332. Button 1
  333. </cbutton-stub>
  334. <cbutton-stub
  335. activeclass="router-link-active"
  336. class="d-sm-down-none"
  337. color="secondary"
  338. event="click"
  339. exactactiveclass="router-link-exact-active"
  340. routertag="a"
  341. target="_self"
  342. type="button"
  343. >
  344. Button 2
  345. </cbutton-stub>
  346. <cdropdown-stub
  347. caret="true"
  348. color="success"
  349. flip="true"
  350. offset="0,0"
  351. placement="bottom-start"
  352. right=""
  353. text="Menu"
  354. togglertext="Dropdown"
  355. >
  356. <cdropdownitem-stub
  357. activeclass="router-link-active"
  358. event="click"
  359. exactactiveclass="router-link-exact-active"
  360. routertag="a"
  361. target="_self"
  362. >
  363. Item 1
  364. </cdropdownitem-stub>
  365. <cdropdownitem-stub
  366. activeclass="router-link-active"
  367. event="click"
  368. exactactiveclass="router-link-exact-active"
  369. routertag="a"
  370. target="_self"
  371. >
  372. Item 2
  373. </cdropdownitem-stub>
  374. <cdropdowndivider-stub
  375. tag="div"
  376. />
  377. <cdropdownitem-stub
  378. activeclass="router-link-active"
  379. event="click"
  380. exactactiveclass="router-link-exact-active"
  381. routertag="a"
  382. target="_self"
  383. >
  384. Item 3
  385. </cdropdownitem-stub>
  386. </cdropdown-stub>
  387. <cbutton-stub
  388. activeclass="router-link-active"
  389. class="d-sm-down-none"
  390. color="secondary"
  391. event="click"
  392. exactactiveclass="router-link-exact-active"
  393. routertag="a"
  394. target="_self"
  395. type="button"
  396. >
  397. Button 3
  398. </cbutton-stub>
  399. <cdropdown-stub
  400. caret="true"
  401. color="info"
  402. flip="true"
  403. offset="0,0"
  404. placement="bottom-start"
  405. right=""
  406. split="true"
  407. text="Split Menu"
  408. togglertext="Dropdown"
  409. >
  410. <cdropdownitem-stub
  411. activeclass="router-link-active"
  412. event="click"
  413. exactactiveclass="router-link-exact-active"
  414. routertag="a"
  415. target="_self"
  416. >
  417. Item 1
  418. </cdropdownitem-stub>
  419. <cdropdownitem-stub
  420. activeclass="router-link-active"
  421. event="click"
  422. exactactiveclass="router-link-exact-active"
  423. routertag="a"
  424. target="_self"
  425. >
  426. Item 2
  427. </cdropdownitem-stub>
  428. <cdropdowndivider-stub
  429. tag="div"
  430. />
  431. <cdropdownitem-stub
  432. activeclass="router-link-active"
  433. event="click"
  434. exactactiveclass="router-link-exact-active"
  435. routertag="a"
  436. target="_self"
  437. >
  438. Item 3
  439. </cdropdownitem-stub>
  440. </cdropdown-stub>
  441. </cbuttongroup-stub>
  442. </div>
  443. </ccardbody-stub>
  444. </ccard-stub>
  445. </ccol-stub>
  446. <ccol-stub
  447. col="12"
  448. tag="div"
  449. >
  450. <ccard-stub>
  451. <ccardheader-stub>
  452. <cicon-stub
  453. name="cil-justify-center"
  454. />
  455. <strong>
  456. Button group
  457. </strong>
  458. vertical variation
  459. </ccardheader-stub>
  460. <ccardbody-stub>
  461. <div>
  462. <cbuttongroup-stub
  463. vertical="true"
  464. >
  465. <cbutton-stub
  466. activeclass="router-link-active"
  467. color="secondary"
  468. event="click"
  469. exactactiveclass="router-link-exact-active"
  470. routertag="a"
  471. target="_self"
  472. type="button"
  473. >
  474. Top
  475. </cbutton-stub>
  476. <cbutton-stub
  477. activeclass="router-link-active"
  478. color="secondary"
  479. event="click"
  480. exactactiveclass="router-link-exact-active"
  481. routertag="a"
  482. target="_self"
  483. type="button"
  484. >
  485. Middle
  486. </cbutton-stub>
  487. <cbutton-stub
  488. activeclass="router-link-active"
  489. color="secondary"
  490. event="click"
  491. exactactiveclass="router-link-exact-active"
  492. routertag="a"
  493. target="_self"
  494. type="button"
  495. >
  496. Bottom
  497. </cbutton-stub>
  498. </cbuttongroup-stub>
  499. </div>
  500. </ccardbody-stub>
  501. </ccard-stub>
  502. </ccol-stub>
  503. <ccol-stub
  504. col="12"
  505. tag="div"
  506. >
  507. <ccard-stub>
  508. <ccardheader-stub>
  509. <cicon-stub
  510. name="cil-justify-center"
  511. />
  512. <strong>
  513. Button toolbar
  514. </strong>
  515. <small>
  516. with button groups
  517. </small>
  518. </ccardheader-stub>
  519. <ccardbody-stub>
  520. <cbuttontoolbar-stub
  521. aria-label="Toolbar with button groups"
  522. >
  523. <cbuttongroup-stub
  524. class="mx-1"
  525. >
  526. <cbutton-stub
  527. activeclass="router-link-active"
  528. class="d-sm-down-none"
  529. color="secondary"
  530. event="click"
  531. exactactiveclass="router-link-exact-active"
  532. routertag="a"
  533. target="_self"
  534. type="button"
  535. >
  536. «
  537. </cbutton-stub>
  538. <cbutton-stub
  539. activeclass="router-link-active"
  540. color="secondary"
  541. event="click"
  542. exactactiveclass="router-link-exact-active"
  543. routertag="a"
  544. target="_self"
  545. type="button"
  546. >
  547. </cbutton-stub>
  548. </cbuttongroup-stub>
  549. <cbuttongroup-stub
  550. class="mx-1"
  551. >
  552. <cbutton-stub
  553. activeclass="router-link-active"
  554. class="d-sm-down-none"
  555. color="secondary"
  556. event="click"
  557. exactactiveclass="router-link-exact-active"
  558. routertag="a"
  559. target="_self"
  560. type="button"
  561. >
  562. Edit
  563. </cbutton-stub>
  564. <cbutton-stub
  565. activeclass="router-link-active"
  566. color="secondary"
  567. event="click"
  568. exactactiveclass="router-link-exact-active"
  569. routertag="a"
  570. target="_self"
  571. type="button"
  572. >
  573. Undo
  574. </cbutton-stub>
  575. <cbutton-stub
  576. activeclass="router-link-active"
  577. color="secondary"
  578. event="click"
  579. exactactiveclass="router-link-exact-active"
  580. routertag="a"
  581. target="_self"
  582. type="button"
  583. >
  584. Redo
  585. </cbutton-stub>
  586. </cbuttongroup-stub>
  587. <cbuttongroup-stub
  588. class="mx-1"
  589. >
  590. <cbutton-stub
  591. activeclass="router-link-active"
  592. color="secondary"
  593. event="click"
  594. exactactiveclass="router-link-exact-active"
  595. routertag="a"
  596. target="_self"
  597. type="button"
  598. >
  599. </cbutton-stub>
  600. <cbutton-stub
  601. activeclass="router-link-active"
  602. class="d-sm-down-none"
  603. color="secondary"
  604. event="click"
  605. exactactiveclass="router-link-exact-active"
  606. routertag="a"
  607. target="_self"
  608. type="button"
  609. >
  610. »
  611. </cbutton-stub>
  612. </cbuttongroup-stub>
  613. </cbuttontoolbar-stub>
  614. <hr
  615. class="d-sm-down-none"
  616. />
  617. <cbuttontoolbar-stub
  618. aria-label="Toolbar with button groups and input groups"
  619. class="d-sm-down-none"
  620. >
  621. <cbuttongroup-stub
  622. class="mx-1"
  623. size="sm"
  624. >
  625. <cbutton-stub
  626. activeclass="router-link-active"
  627. color="secondary"
  628. event="click"
  629. exactactiveclass="router-link-exact-active"
  630. routertag="a"
  631. target="_self"
  632. type="button"
  633. >
  634. New
  635. </cbutton-stub>
  636. <cbutton-stub
  637. activeclass="router-link-active"
  638. color="secondary"
  639. event="click"
  640. exactactiveclass="router-link-exact-active"
  641. routertag="a"
  642. target="_self"
  643. type="button"
  644. >
  645. Edit
  646. </cbutton-stub>
  647. </cbuttongroup-stub>
  648. <cinput-stub
  649. append=".00"
  650. class="mb-0 w-25 mx-1"
  651. lazy="400"
  652. prepend="$"
  653. size="sm"
  654. type="text"
  655. value="100"
  656. />
  657. <cselect-stub
  658. class="mb-0 w-25 mx-1"
  659. custom="true"
  660. options="Large,Medium,Small"
  661. prepend="Size"
  662. size="sm"
  663. value="Medium"
  664. />
  665. <cbuttongroup-stub
  666. class="mx-1"
  667. size="sm"
  668. >
  669. <cbutton-stub
  670. activeclass="router-link-active"
  671. color="secondary"
  672. event="click"
  673. exactactiveclass="router-link-exact-active"
  674. routertag="a"
  675. target="_self"
  676. type="button"
  677. >
  678. Save
  679. </cbutton-stub>
  680. <cbutton-stub
  681. activeclass="router-link-active"
  682. color="secondary"
  683. event="click"
  684. exactactiveclass="router-link-exact-active"
  685. routertag="a"
  686. target="_self"
  687. type="button"
  688. >
  689. Cancel
  690. </cbutton-stub>
  691. </cbuttongroup-stub>
  692. </cbuttontoolbar-stub>
  693. <hr />
  694. <cbuttontoolbar-stub
  695. aria-label="Toolbar with button groups and dropdown menu"
  696. >
  697. <cbuttongroup-stub
  698. class="mx-1 d-sm-down-none"
  699. >
  700. <cbutton-stub
  701. activeclass="router-link-active"
  702. color="secondary"
  703. event="click"
  704. exactactiveclass="router-link-exact-active"
  705. routertag="a"
  706. target="_self"
  707. type="button"
  708. >
  709. New
  710. </cbutton-stub>
  711. <cbutton-stub
  712. activeclass="router-link-active"
  713. color="secondary"
  714. event="click"
  715. exactactiveclass="router-link-exact-active"
  716. routertag="a"
  717. target="_self"
  718. type="button"
  719. >
  720. Edit
  721. </cbutton-stub>
  722. <cbutton-stub
  723. activeclass="router-link-active"
  724. color="secondary"
  725. event="click"
  726. exactactiveclass="router-link-exact-active"
  727. routertag="a"
  728. target="_self"
  729. type="button"
  730. >
  731. Undo
  732. </cbutton-stub>
  733. </cbuttongroup-stub>
  734. <cdropdown-stub
  735. button-content="Menu"
  736. caret="true"
  737. class="mx-1"
  738. color="secondary"
  739. flip="true"
  740. offset="0,0"
  741. placement="bottom-end"
  742. togglertext="Dropdown"
  743. >
  744. <cdropdownitem-stub
  745. activeclass="router-link-active"
  746. event="click"
  747. exactactiveclass="router-link-exact-active"
  748. routertag="a"
  749. target="_self"
  750. >
  751. Item 1
  752. </cdropdownitem-stub>
  753. <cdropdownitem-stub
  754. activeclass="router-link-active"
  755. event="click"
  756. exactactiveclass="router-link-exact-active"
  757. routertag="a"
  758. target="_self"
  759. >
  760. Item 2
  761. </cdropdownitem-stub>
  762. <cdropdownitem-stub
  763. activeclass="router-link-active"
  764. event="click"
  765. exactactiveclass="router-link-exact-active"
  766. routertag="a"
  767. target="_self"
  768. >
  769. Item 3
  770. </cdropdownitem-stub>
  771. </cdropdown-stub>
  772. <cbuttongroup-stub
  773. class="mx-1"
  774. >
  775. <cbutton-stub
  776. activeclass="router-link-active"
  777. color="secondary"
  778. event="click"
  779. exactactiveclass="router-link-exact-active"
  780. routertag="a"
  781. target="_self"
  782. type="button"
  783. >
  784. Save
  785. </cbutton-stub>
  786. <cbutton-stub
  787. activeclass="router-link-active"
  788. color="secondary"
  789. event="click"
  790. exactactiveclass="router-link-exact-active"
  791. routertag="a"
  792. target="_self"
  793. type="button"
  794. >
  795. Cancel
  796. </cbutton-stub>
  797. </cbuttongroup-stub>
  798. </cbuttontoolbar-stub>
  799. </ccardbody-stub>
  800. </ccard-stub>
  801. </ccol-stub>
  802. </crow-stub>
  803. `;