q2-tecton-elements 1.55.4 → 1.56.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 (391) hide show
  1. package/dist/bundle-report.json +15973 -11906
  2. package/dist/cjs/{index-905f4c87.js → index-99667782.js} +5 -1
  3. package/dist/cjs/index-99667782.js.map +1 -0
  4. package/dist/cjs/{index-e0aba375.js → index-f69742cf.js} +1 -1
  5. package/dist/cjs/{index-e0aba375.js.map → index-f69742cf.js.map} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/q2-action-group.cjs.entry.js +2 -2
  8. package/dist/cjs/q2-action-sheet.cjs.entry.js +2 -2
  9. package/dist/cjs/q2-avatar.cjs.entry.js +2 -2
  10. package/dist/cjs/q2-avatar.cjs.entry.js.map +1 -1
  11. package/dist/cjs/q2-badge_7.cjs.entry.js +56 -55
  12. package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
  13. package/dist/cjs/q2-calendar.cjs.entry.js +3 -3
  14. package/dist/cjs/q2-card.cjs.entry.js +1 -1
  15. package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
  16. package/dist/cjs/q2-carousel.cjs.entry.js +2 -2
  17. package/dist/cjs/q2-chart-area.cjs.entry.js +2 -2
  18. package/dist/cjs/q2-chart-bar.cjs.entry.js +2 -2
  19. package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
  20. package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
  21. package/dist/cjs/q2-checkbox.cjs.entry.js +3 -3
  22. package/dist/cjs/q2-checkbox.cjs.entry.js.map +1 -1
  23. package/dist/cjs/q2-currency.cjs.entry.js +2 -2
  24. package/dist/cjs/q2-currency.cjs.entry.js.map +1 -1
  25. package/dist/cjs/q2-data-table.cjs.entry.js +3 -3
  26. package/dist/cjs/q2-data-table.cjs.entry.js.map +1 -1
  27. package/dist/cjs/q2-detail.cjs.entry.js +2 -2
  28. package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
  29. package/dist/cjs/q2-dropdown.cjs.entry.js +2 -2
  30. package/dist/cjs/q2-editable-field.cjs.entry.js +2 -2
  31. package/dist/cjs/q2-example.cjs.entry.js +1 -1
  32. package/dist/cjs/q2-file-picker.cjs.entry.js +20 -7
  33. package/dist/cjs/q2-file-picker.cjs.entry.js.map +1 -1
  34. package/dist/cjs/q2-form.cjs.entry.js +1 -1
  35. package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
  36. package/dist/cjs/q2-grid-area.cjs.entry.js +133 -0
  37. package/dist/cjs/q2-grid-area.cjs.entry.js.map +1 -0
  38. package/dist/cjs/q2-grid.cjs.entry.js +109 -0
  39. package/dist/cjs/q2-grid.cjs.entry.js.map +1 -0
  40. package/dist/cjs/q2-item_3.cjs.entry.js +4 -4
  41. package/dist/cjs/q2-item_3.cjs.entry.js.map +1 -1
  42. package/dist/cjs/q2-legend.cjs.entry.js +1 -1
  43. package/dist/cjs/q2-loc.cjs.entry.js +1 -1
  44. package/dist/cjs/q2-message.cjs.entry.js +2 -2
  45. package/dist/cjs/q2-modal.cjs.entry.js +2 -2
  46. package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
  47. package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
  48. package/dist/cjs/q2-option-list_2.cjs.entry.js +18 -6
  49. package/dist/cjs/q2-option-list_2.cjs.entry.js.map +1 -1
  50. package/dist/cjs/q2-option.cjs.entry.js +1 -1
  51. package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
  52. package/dist/cjs/q2-pill.cjs.entry.js +2 -2
  53. package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
  54. package/dist/cjs/q2-radio.cjs.entry.js +2 -2
  55. package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
  56. package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
  57. package/dist/cjs/q2-section.cjs.entry.js +3 -3
  58. package/dist/cjs/q2-select.cjs.entry.js +3 -3
  59. package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
  60. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
  61. package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
  62. package/dist/cjs/q2-tag.cjs.entry.js +2 -2
  63. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  64. package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
  65. package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
  66. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
  67. package/dist/collection/collection-manifest.json +8 -6
  68. package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
  69. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
  70. package/dist/collection/components/q2-avatar/q2-avatar.css +8 -8
  71. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  72. package/dist/collection/components/q2-calendar/q2-calendar.js +1 -1
  73. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  74. package/dist/collection/components/q2-carousel/q2-carousel.js +1 -1
  75. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  76. package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
  77. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
  78. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
  79. package/dist/collection/components/q2-checkbox/q2-checkbox.css +6 -2
  80. package/dist/collection/components/q2-checkbox/q2-checkbox.js +1 -1
  81. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +1 -1
  82. package/dist/collection/components/q2-currency/q2-currency.css +2 -2
  83. package/dist/collection/components/q2-currency/q2-currency.js +1 -1
  84. package/dist/collection/components/q2-data-table/q2-data-table.css +1 -2
  85. package/dist/collection/components/q2-data-table/q2-data-table.js +8 -8
  86. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  87. package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
  88. package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
  89. package/dist/collection/components/q2-example/q2-example.js +1 -1
  90. package/dist/collection/components/q2-file-picker/q2-file-picker.css +11 -2
  91. package/dist/collection/components/q2-file-picker/q2-file-picker.js +54 -14
  92. package/dist/collection/components/q2-file-picker/q2-file-picker.js.map +1 -1
  93. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.e2e.js +25 -0
  94. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.e2e.js.map +1 -1
  95. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.spec.js +107 -18
  96. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.spec.js.map +1 -1
  97. package/dist/collection/components/q2-form/q2-form.js +1 -1
  98. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  99. package/dist/collection/components/q2-grid/q2-grid.css +98 -0
  100. package/dist/collection/components/q2-grid/q2-grid.js +807 -0
  101. package/dist/collection/components/q2-grid/q2-grid.js.map +1 -0
  102. package/dist/collection/components/q2-grid/test/q2-grid.e2e.js +218 -0
  103. package/dist/collection/components/q2-grid/test/q2-grid.e2e.js.map +1 -0
  104. package/dist/collection/components/q2-grid-area/q2-grid-area.css +110 -0
  105. package/dist/collection/components/q2-grid-area/q2-grid-area.js +1109 -0
  106. package/dist/collection/components/q2-grid-area/q2-grid-area.js.map +1 -0
  107. package/dist/collection/components/q2-grid-area/test/q2-grid-area.e2e.js +196 -0
  108. package/dist/collection/components/q2-grid-area/test/q2-grid-area.e2e.js.map +1 -0
  109. package/dist/collection/components/q2-icon/assets/brand.symbol.svg +1 -1
  110. package/dist/collection/components/q2-icon/assets/browsersos.symbol.svg +1 -0
  111. package/dist/collection/components/q2-icon/assets/cards.symbol.svg +1 -1
  112. package/dist/collection/components/q2-icon/assets/{system.symbol.svg → devices.symbol.svg} +1 -1
  113. package/dist/collection/components/q2-icon/assets/icon-file-list.json +1 -1
  114. package/dist/collection/components/q2-icon/assets/icon-map.json +1 -1
  115. package/dist/collection/components/q2-icon/assets/legacy.symbol.svg +1 -1
  116. package/dist/collection/components/q2-icon/assets/mobile.symbol.svg +1 -1
  117. package/dist/collection/components/q2-icon/q2-icon.css +7 -1
  118. package/dist/collection/components/q2-icon/q2-icon.js +3 -2
  119. package/dist/collection/components/q2-icon/q2-icon.js.map +1 -1
  120. package/dist/collection/components/q2-icon/test/q2-icon-test.spec.js +3 -3
  121. package/dist/collection/components/q2-icon/test/q2-icon-test.spec.js.map +1 -1
  122. package/dist/collection/components/q2-input/q2-input.js +2 -2
  123. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js +5 -3
  124. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js.map +1 -1
  125. package/dist/collection/components/q2-item/q2-item.css +3 -3
  126. package/dist/collection/components/q2-item/q2-item.js +1 -1
  127. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  128. package/dist/collection/components/q2-list/q2-list.js +1 -1
  129. package/dist/collection/components/q2-message/q2-message.js +1 -1
  130. package/dist/collection/components/q2-modal/q2-modal.js +1 -1
  131. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  132. package/dist/collection/components/q2-option-list/q2-option-list.js +7 -7
  133. package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
  134. package/dist/collection/components/q2-pill/q2-pill.js +1 -1
  135. package/dist/collection/components/q2-popover/q2-popover.js +40 -5
  136. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  137. package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js +2 -2
  138. package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
  139. package/dist/collection/components/q2-radio/q2-radio.js +1 -1
  140. package/dist/collection/components/q2-radio-group/q2-radio-group.js +1 -1
  141. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  142. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  143. package/dist/collection/components/q2-section/q2-section.js +2 -2
  144. package/dist/collection/components/q2-select/q2-select.js +2 -2
  145. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  146. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -3
  147. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
  148. package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
  149. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  150. package/dist/collection/components/q2-tag/q2-tag.js +1 -1
  151. package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
  152. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  153. package/dist/collection/utils/helpers.js +15 -0
  154. package/dist/collection/utils/helpers.js.map +1 -1
  155. package/dist/collection/utils/index.js +3 -0
  156. package/dist/collection/utils/index.js.map +1 -1
  157. package/dist/components/index.js +4 -0
  158. package/dist/components/index.js.map +1 -1
  159. package/dist/components/index2.js +4 -1
  160. package/dist/components/index2.js.map +1 -1
  161. package/dist/components/q2-action-group2.js +1 -1
  162. package/dist/components/q2-action-sheet.js +1 -1
  163. package/dist/components/q2-avatar2.js +2 -2
  164. package/dist/components/q2-avatar2.js.map +1 -1
  165. package/dist/components/q2-calendar.js +1 -1
  166. package/dist/components/q2-carousel-pane.js +2 -2
  167. package/dist/components/q2-carousel.js +1 -1
  168. package/dist/components/q2-chart-area.js +1 -1
  169. package/dist/components/q2-chart-bar.js +1 -1
  170. package/dist/components/q2-chart-donut.js +1 -1
  171. package/dist/components/q2-checkbox-group.js +1 -1
  172. package/dist/components/q2-checkbox2.js +2 -2
  173. package/dist/components/q2-checkbox2.js.map +1 -1
  174. package/dist/components/q2-currency.js +2 -2
  175. package/dist/components/q2-currency.js.map +1 -1
  176. package/dist/components/q2-data-table.js +2 -2
  177. package/dist/components/q2-data-table.js.map +1 -1
  178. package/dist/components/q2-detail.js +1 -1
  179. package/dist/components/q2-dropdown.js +1 -1
  180. package/dist/components/q2-editable-field.js +1 -1
  181. package/dist/components/q2-example.js +1 -1
  182. package/dist/components/q2-file-picker.js +20 -6
  183. package/dist/components/q2-file-picker.js.map +1 -1
  184. package/dist/components/q2-form.js +1 -1
  185. package/dist/components/q2-formatted-text.js +1 -1
  186. package/dist/components/q2-grid-area.d.ts +11 -0
  187. package/dist/components/q2-grid-area.js +190 -0
  188. package/dist/components/q2-grid-area.js.map +1 -0
  189. package/dist/components/q2-grid.d.ts +11 -0
  190. package/dist/components/q2-grid.js +154 -0
  191. package/dist/components/q2-grid.js.map +1 -0
  192. package/dist/components/q2-icon2.js +52 -51
  193. package/dist/components/q2-icon2.js.map +1 -1
  194. package/dist/components/q2-input2.js +1 -1
  195. package/dist/components/q2-item2.js +2 -2
  196. package/dist/components/q2-item2.js.map +1 -1
  197. package/dist/components/q2-legend2.js +1 -1
  198. package/dist/components/q2-list2.js +1 -1
  199. package/dist/components/q2-message2.js +1 -1
  200. package/dist/components/q2-modal.js +1 -1
  201. package/dist/components/q2-month-picker.js +2 -2
  202. package/dist/components/q2-optgroup2.js +1 -1
  203. package/dist/components/q2-option-list2.js +1 -1
  204. package/dist/components/q2-pagination.js +3 -3
  205. package/dist/components/q2-pill.js +1 -1
  206. package/dist/components/q2-popover2.js +17 -5
  207. package/dist/components/q2-popover2.js.map +1 -1
  208. package/dist/components/q2-radio-group.js +1 -1
  209. package/dist/components/q2-radio.js +1 -1
  210. package/dist/components/q2-relative-time.js +1 -1
  211. package/dist/components/q2-resize-observer2.js +1 -1
  212. package/dist/components/q2-section.js +2 -2
  213. package/dist/components/q2-select2.js +3 -3
  214. package/dist/components/q2-stepper-pane.js +1 -1
  215. package/dist/components/q2-stepper-vertical.js +1 -1
  216. package/dist/components/q2-stepper.js +1 -1
  217. package/dist/components/q2-tab-container.js +1 -1
  218. package/dist/components/q2-tab-pane.js +1 -1
  219. package/dist/components/q2-tag.js +1 -1
  220. package/dist/components/q2-textarea.js +1 -1
  221. package/dist/components/tecton-tab-pane.js +2 -2
  222. package/dist/esm/{index-3bb7a785.js → index-3184c760.js} +1 -1
  223. package/dist/esm/{index-3bb7a785.js.map → index-3184c760.js.map} +1 -1
  224. package/dist/esm/{index-f2a66217.js → index-c215e8ef.js} +5 -2
  225. package/dist/esm/index-c215e8ef.js.map +1 -0
  226. package/dist/esm/loader.js +1 -1
  227. package/dist/esm/q2-action-group.entry.js +2 -2
  228. package/dist/esm/q2-action-sheet.entry.js +2 -2
  229. package/dist/esm/q2-avatar.entry.js +2 -2
  230. package/dist/esm/q2-avatar.entry.js.map +1 -1
  231. package/dist/esm/q2-badge_7.entry.js +56 -55
  232. package/dist/esm/q2-badge_7.entry.js.map +1 -1
  233. package/dist/esm/q2-calendar.entry.js +3 -3
  234. package/dist/esm/q2-card.entry.js +1 -1
  235. package/dist/esm/q2-carousel-pane.entry.js +3 -3
  236. package/dist/esm/q2-carousel.entry.js +2 -2
  237. package/dist/esm/q2-chart-area.entry.js +2 -2
  238. package/dist/esm/q2-chart-bar.entry.js +2 -2
  239. package/dist/esm/q2-chart-donut.entry.js +2 -2
  240. package/dist/esm/q2-checkbox-group.entry.js +2 -2
  241. package/dist/esm/q2-checkbox.entry.js +3 -3
  242. package/dist/esm/q2-checkbox.entry.js.map +1 -1
  243. package/dist/esm/q2-currency.entry.js +2 -2
  244. package/dist/esm/q2-currency.entry.js.map +1 -1
  245. package/dist/esm/q2-data-table.entry.js +3 -3
  246. package/dist/esm/q2-data-table.entry.js.map +1 -1
  247. package/dist/esm/q2-detail.entry.js +2 -2
  248. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  249. package/dist/esm/q2-dropdown.entry.js +2 -2
  250. package/dist/esm/q2-editable-field.entry.js +2 -2
  251. package/dist/esm/q2-example.entry.js +1 -1
  252. package/dist/esm/q2-file-picker.entry.js +20 -7
  253. package/dist/esm/q2-file-picker.entry.js.map +1 -1
  254. package/dist/esm/q2-form.entry.js +1 -1
  255. package/dist/esm/q2-formatted-text.entry.js +1 -1
  256. package/dist/esm/q2-grid-area.entry.js +129 -0
  257. package/dist/esm/q2-grid-area.entry.js.map +1 -0
  258. package/dist/esm/q2-grid.entry.js +105 -0
  259. package/dist/esm/q2-grid.entry.js.map +1 -0
  260. package/dist/esm/q2-item_3.entry.js +4 -4
  261. package/dist/esm/q2-item_3.entry.js.map +1 -1
  262. package/dist/esm/q2-legend.entry.js +1 -1
  263. package/dist/esm/q2-loc.entry.js +1 -1
  264. package/dist/esm/q2-message.entry.js +2 -2
  265. package/dist/esm/q2-modal.entry.js +2 -2
  266. package/dist/esm/q2-month-picker.entry.js +3 -3
  267. package/dist/esm/q2-optgroup.entry.js +2 -2
  268. package/dist/esm/q2-option-list_2.entry.js +18 -6
  269. package/dist/esm/q2-option-list_2.entry.js.map +1 -1
  270. package/dist/esm/q2-option.entry.js +1 -1
  271. package/dist/esm/q2-pagination.entry.js +4 -4
  272. package/dist/esm/q2-pill.entry.js +2 -2
  273. package/dist/esm/q2-radio-group.entry.js +2 -2
  274. package/dist/esm/q2-radio.entry.js +2 -2
  275. package/dist/esm/q2-relative-time.entry.js +3 -3
  276. package/dist/esm/q2-resize-observer.entry.js +1 -1
  277. package/dist/esm/q2-section.entry.js +3 -3
  278. package/dist/esm/q2-select.entry.js +3 -3
  279. package/dist/esm/q2-stepper-pane.entry.js +2 -2
  280. package/dist/esm/q2-stepper-vertical.entry.js +2 -2
  281. package/dist/esm/q2-stepper.entry.js +2 -2
  282. package/dist/esm/q2-tag.entry.js +2 -2
  283. package/dist/esm/q2-tecton-elements.js +1 -1
  284. package/dist/esm/q2-textarea.entry.js +2 -2
  285. package/dist/esm/q2-tooltip.entry.js +1 -1
  286. package/dist/esm/tecton-tab-pane.entry.js +2 -2
  287. package/dist/q2-tecton-elements/assets/brand.symbol.svg +1 -1
  288. package/dist/q2-tecton-elements/assets/browsersos.symbol.svg +1 -0
  289. package/dist/q2-tecton-elements/assets/cards.symbol.svg +1 -1
  290. package/dist/q2-tecton-elements/assets/{system.symbol.svg → devices.symbol.svg} +1 -1
  291. package/dist/q2-tecton-elements/assets/icon-file-list.json +1 -1
  292. package/dist/q2-tecton-elements/assets/icon-map.json +1 -1
  293. package/dist/q2-tecton-elements/assets/legacy.symbol.svg +1 -1
  294. package/dist/q2-tecton-elements/assets/mobile.symbol.svg +1 -1
  295. package/dist/q2-tecton-elements/{index-3bb7a785.js → index-3184c760.js} +1 -1
  296. package/dist/q2-tecton-elements/{index-f2a66217.js → index-c215e8ef.js} +6 -2
  297. package/dist/q2-tecton-elements/index-c215e8ef.js.map +1 -0
  298. package/dist/q2-tecton-elements/q2-action-group.entry.js +4 -4
  299. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +63 -63
  300. package/dist/q2-tecton-elements/q2-avatar.entry.js +7 -7
  301. package/dist/q2-tecton-elements/q2-avatar.entry.js.map +1 -1
  302. package/dist/q2-tecton-elements/q2-badge_7.entry.js +70 -68
  303. package/dist/q2-tecton-elements/q2-badge_7.entry.js.map +1 -1
  304. package/dist/q2-tecton-elements/q2-calendar.entry.js +4 -4
  305. package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
  306. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +4 -4
  307. package/dist/q2-tecton-elements/q2-carousel.entry.js +2 -2
  308. package/dist/q2-tecton-elements/q2-chart-area.entry.js +3 -3
  309. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +3 -3
  310. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +7 -7
  311. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +7 -7
  312. package/dist/q2-tecton-elements/q2-checkbox.entry.js +12 -12
  313. package/dist/q2-tecton-elements/q2-checkbox.entry.js.map +1 -1
  314. package/dist/q2-tecton-elements/q2-currency.entry.js +7 -7
  315. package/dist/q2-tecton-elements/q2-currency.entry.js.map +1 -1
  316. package/dist/q2-tecton-elements/q2-data-table.entry.js +5 -5
  317. package/dist/q2-tecton-elements/q2-data-table.entry.js.map +1 -1
  318. package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
  319. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
  320. package/dist/q2-tecton-elements/q2-dropdown.entry.js +6 -6
  321. package/dist/q2-tecton-elements/q2-editable-field.entry.js +2 -2
  322. package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
  323. package/dist/q2-tecton-elements/q2-file-picker.entry.js +31 -20
  324. package/dist/q2-tecton-elements/q2-file-picker.entry.js.map +1 -1
  325. package/dist/q2-tecton-elements/q2-form.entry.js +2 -2
  326. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
  327. package/dist/q2-tecton-elements/q2-grid-area.entry.js +135 -0
  328. package/dist/q2-tecton-elements/q2-grid-area.entry.js.map +1 -0
  329. package/dist/q2-tecton-elements/q2-grid.entry.js +114 -0
  330. package/dist/q2-tecton-elements/q2-grid.entry.js.map +1 -0
  331. package/dist/q2-tecton-elements/q2-item_3.entry.js +23 -23
  332. package/dist/q2-tecton-elements/q2-item_3.entry.js.map +1 -1
  333. package/dist/q2-tecton-elements/q2-legend.entry.js +5 -5
  334. package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
  335. package/dist/q2-tecton-elements/q2-message.entry.js +6 -6
  336. package/dist/q2-tecton-elements/q2-modal.entry.js +18 -18
  337. package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
  338. package/dist/q2-tecton-elements/q2-optgroup.entry.js +5 -5
  339. package/dist/q2-tecton-elements/q2-option-list_2.entry.js +41 -31
  340. package/dist/q2-tecton-elements/q2-option-list_2.entry.js.map +1 -1
  341. package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
  342. package/dist/q2-tecton-elements/q2-pagination.entry.js +38 -38
  343. package/dist/q2-tecton-elements/q2-pill.entry.js +14 -14
  344. package/dist/q2-tecton-elements/q2-radio-group.entry.js +12 -12
  345. package/dist/q2-tecton-elements/q2-radio.entry.js +9 -9
  346. package/dist/q2-tecton-elements/q2-relative-time.entry.js +3 -3
  347. package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
  348. package/dist/q2-tecton-elements/q2-section.entry.js +19 -19
  349. package/dist/q2-tecton-elements/q2-select.entry.js +6 -6
  350. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +14 -14
  351. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +37 -37
  352. package/dist/q2-tecton-elements/q2-stepper.entry.js +29 -29
  353. package/dist/q2-tecton-elements/q2-tag.entry.js +6 -6
  354. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  355. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
  356. package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
  357. package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
  358. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
  359. package/dist/types/components/q2-action-group/q2-action-group.d.ts +1 -0
  360. package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +60 -0
  361. package/dist/types/components/q2-calendar/q2-calendar.d.ts +327 -0
  362. package/dist/types/components/q2-carousel/q2-carousel.d.ts +95 -0
  363. package/dist/types/components/q2-data-table/q2-data-table.d.ts +261 -0
  364. package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +181 -0
  365. package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +140 -0
  366. package/dist/types/components/q2-file-picker/q2-file-picker.d.ts +31 -17
  367. package/dist/types/components/q2-grid/q2-grid.d.ts +157 -0
  368. package/dist/types/components/q2-grid-area/q2-grid-area.d.ts +168 -0
  369. package/dist/types/components/q2-icon/q2-icon.d.ts +1 -0
  370. package/dist/types/components/q2-loading/skeleton/shapes.d.ts +1 -0
  371. package/dist/types/components/q2-optgroup/q2-optgroup.d.ts +1 -1
  372. package/dist/types/components/q2-option-list/q2-option-list.d.ts +100 -0
  373. package/dist/types/components/q2-pagination/q2-pagination.d.ts +117 -0
  374. package/dist/types/components/q2-pill/q2-pill.d.ts +143 -0
  375. package/dist/types/components/q2-popover/q2-popover.d.ts +23 -0
  376. package/dist/types/components/q2-select/q2-select.d.ts +238 -0
  377. package/dist/types/components/q2-stepper/q2-stepper.d.ts +61 -0
  378. package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +68 -0
  379. package/dist/types/components/q2-tab-container/q2-tab-container.d.ts +2 -2
  380. package/dist/types/components/q2-tag/q2-tag.d.ts +91 -0
  381. package/dist/types/components.d.ts +698 -6
  382. package/dist/types/util.d.ts +2 -2
  383. package/dist/types/utils/action-sheet.d.ts +12 -0
  384. package/dist/types/utils/helpers.d.ts +1 -0
  385. package/dist/types/utils/index.d.ts +1 -0
  386. package/package.json +4 -3
  387. package/dist/cjs/index-905f4c87.js.map +0 -1
  388. package/dist/esm/index-f2a66217.js.map +0 -1
  389. package/dist/q2-tecton-elements/index-f2a66217.js.map +0 -1
  390. /package/dist/q2-tecton-elements/{index-3bb7a785.js.map → index-3184c760.js.map} +0 -0
  391. /package/dist/types/{Users/kvanhouten/Documents/Work/tecton_extra → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"q2-grid.js","sourceRoot":"","sources":["../../../../src/components/q2-grid/q2-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAS7D,MAAM,OAAO,MAAM;;qBAQc,SAAS;uBAIL,EAAE;mBAQV,QAAQ;uBAOA,SAAS;;;;;;;;;;;oBA4Ef,MAAM;;;;;;;;;;;;;;;;;IAwGjC,aAAa;IACb,wBAAwB;IAExB,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED,IAAI,cAAc;QACd,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AAY,EACnB,KAAK,EAAC,SAAS;gBAEf,8DAAQ,CACN,CACC,CACd,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGJ","sourcesContent":["import { Component, h, Fragment, Prop } from '@stencil/core';\n\nexport type TQ2GridColumnsOptions = number;\nexport type TQ2GridRowsOptions = 'auto' | number;\nexport type TQ2GridGapOptions = 'none' | 'compact' | 'normal' | 'comfortable';\nexport type TQ2GridJustifyOptions = 'stretch' | 'start' | 'center' | 'end';\nexport type TQ2GridAlignOptions = 'stretch' | 'start' | 'center' | 'end';\n\n@Component({ tag: 'q2-grid', shadow: true, styleUrl: 'q2-grid.scss' })\nexport class Q2Grid {\n // #region Public Property API\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the baseline viewport size.\n */\n @Prop({ reflect: true })\n align: TQ2GridAlignOptions = 'stretch';\n\n /** Sets the amount of columns to render within the grid at the baseline viewport size.*/\n @Prop({ reflect: true })\n columns: TQ2GridColumnsOptions = 12;\n\n /**\n * Sets the gap size between rows and columns within the grid at the baseline viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n gap: TQ2GridGapOptions = 'normal';\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track\n * at the baseline viewport size.\n */\n @Prop({ reflect: true })\n justify: TQ2GridJustifyOptions = 'stretch';\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at the\n * 'LG' viewport size.\n */\n @Prop({ reflect: true })\n lgAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'LG' viewport size.*/\n @Prop({ reflect: true })\n lgColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'LG' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n lgGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'LG' viewport size.\n */\n @Prop({ reflect: true })\n lgJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'LG' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n lgRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'MD' viewport size.\n */\n @Prop({ reflect: true })\n mdAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'MD' viewport size.*/\n @Prop({ reflect: true })\n mdColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'MD' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n mdGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'MD' viewport size.\n */\n @Prop({ reflect: true })\n mdJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'MD' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n mdRows: TQ2GridRowsOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the baseline viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n rows: TQ2GridRowsOptions = 'auto';\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'SM' viewport size.\n */\n @Prop({ reflect: true })\n smAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'SM' viewport size.*/\n @Prop({ reflect: true })\n smColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'SM' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n smGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'SM' viewport size.\n */\n @Prop({ reflect: true })\n smJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'SM' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n smRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at the\n * 'XL' viewport size.\n */\n @Prop({ reflect: true })\n xlAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'XL' viewport size.*/\n @Prop({ reflect: true })\n xlColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'XL' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n xlGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track at\n * the 'XL' viewport size.\n */\n @Prop({ reflect: true })\n xlJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'XL' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n xlRows: TQ2GridRowsOptions;\n\n /**\n * Sets the vertical alignment behavior of q2-grid-area components within a grid track at\n * the 'XS' viewport size.\n */\n @Prop({ reflect: true })\n xsAlign: TQ2GridAlignOptions;\n\n /** Sets the amount of columns to render within the grid at the 'XS' viewport size.*/\n @Prop({ reflect: true })\n xsColumns: TQ2GridColumnsOptions;\n\n /**\n * Sets the gap size between rows and columns within the grid at the 'XS' viewport size.\n * Gap values utilize CSS variables to allow for easy theming and customization.\n * Visit the Style section to learn more.\n */\n @Prop({ reflect: true })\n xsGap: TQ2GridGapOptions;\n\n /**\n * Sets the horizontal alignment behavior of q2-grid-area components within a grid track\n * at the 'XS' viewport size.\n */\n @Prop({ reflect: true })\n xsJustify: TQ2GridJustifyOptions;\n\n /**\n * Sets the amount of rows to render within the grid at the 'XS' viewport size.\n * When set to `auto`, q2-grid will auto render rows based on the number of q2-grid-area\n * components placed within the grid and the number of columns allowed per row.\n */\n @Prop({ reflect: true })\n xsRows: TQ2GridRowsOptions;\n\n // #endregion\n // #region Local Methods\n\n get computedLgRows() {\n return this.lgRows || this.computedMdRows;\n }\n\n get computedMdRows() {\n return this.mdRows || this.computedSmRows;\n }\n\n get computedSmRows() {\n return this.smRows || this.computedXsRows;\n }\n\n get computedXlRows() {\n return this.xlRows || this.computedLgRows;\n }\n\n get computedXsRows() {\n return this.xsRows || this.rows;\n }\n\n // #endregion\n // #region Render Methods\n\n render() {\n const q2GridStyles: { [key: string]: string } = {\n // base:\n '--grid-template-columns': `repeat(${this.columns}, 1fr)`,\n '--grid-template-rows': this.rows === 'auto' ? this.rows : `repeat(${this.rows}, 1fr)`,\n '--grid-gap': `var(--comp-grid-gap-${this.gap})`,\n '--justify-items': this.justify,\n '--align-items': this.align,\n // xs:\n '--xs-grid-template-columns': `repeat(${this.xsColumns || this.columns}, 1fr)`,\n '--xs-grid-template-rows':\n this.computedXsRows === 'auto' ? this.computedXsRows : `repeat(${this.computedXsRows}, 1fr)`,\n '--xs-grid-gap': `var(--comp-grid-gap-${this.xsGap || this.gap})`,\n '--xs-justify-items': this.xsJustify || this.justify,\n '--xs-align-items': this.xsAlign || this.align,\n // sm:\n '--sm-grid-template-columns': `repeat(${this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--sm-grid-template-rows':\n this.computedSmRows === 'auto' ? this.computedSmRows : `repeat(${this.computedSmRows}, 1fr)`,\n '--sm-grid-gap': `var(--comp-grid-gap-${this.smGap || this.xsGap || this.gap})`,\n '--sm-justify-items': this.smJustify || this.xsJustify || this.justify,\n '--sm-align-items': this.smAlign || this.xsAlign || this.align,\n // md:\n '--md-grid-template-columns': `repeat(${this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--md-grid-template-rows':\n this.computedMdRows === 'auto' ? this.computedMdRows : `repeat(${this.computedMdRows}, 1fr)`,\n '--md-grid-gap': `var(--comp-grid-gap-${this.mdGap || this.smGap || this.xsGap || this.gap})`,\n '--md-justify-items': this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--md-align-items': this.mdAlign || this.smAlign || this.xsAlign || this.align,\n // lg:\n '--lg-grid-template-columns': `repeat(${this.lgColumns || this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--lg-grid-template-rows':\n this.computedLgRows === 'auto' ? this.computedLgRows : `repeat(${this.computedLgRows}, 1fr)`,\n '--lg-grid-gap': `var(--comp-grid-gap-${this.lgGap || this.mdGap || this.smGap || this.xsGap || this.gap})`,\n '--lg-justify-items': this.lgJustify || this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--lg-align-items': this.lgAlign || this.mdAlign || this.smAlign || this.xsAlign || this.align,\n // xl:\n '--xl-grid-template-columns': `repeat(${this.xlColumns || this.lgColumns || this.mdColumns || this.smColumns || this.xsColumns || this.columns}, 1fr)`,\n '--xl-grid-template-rows':\n this.computedXlRows === 'auto' ? this.computedXlRows : `repeat(${this.computedXlRows}, 1fr)`,\n '--xl-grid-gap': `var(--comp-grid-gap-${this.xlGap || this.lgGap || this.mdGap || this.smGap || this.xsGap || this.gap})`,\n '--xl-justify-items':\n this.xlJustify || this.lgJustify || this.mdJustify || this.smJustify || this.xsJustify || this.justify,\n '--xl-align-items':\n this.xlAlign || this.lgAlign || this.mdAlign || this.smAlign || this.xsAlign || this.align,\n };\n return (\n <Fragment>\n <div\n style={q2GridStyles}\n class=\"q2-grid\"\n >\n <slot />\n </div>\n </Fragment>\n );\n }\n\n // #endregion\n}\n"]}
@@ -0,0 +1,218 @@
1
+ import { setup, getListOfStyleCompilationIssues, evaluateA11y } from "../../../utils/helpers";
2
+ describe('q2-grid', () => {
3
+ let $e2ePage;
4
+ let $q2GridParent;
5
+ let $shadowGrid;
6
+ let q2GridParentStyles;
7
+ let shadowGridStyles;
8
+ const viewportWidths = { base: 479, xs: 480, sm: 768, md: 992, lg: 1200, xl: 1400 };
9
+ const viewportHeight = 500;
10
+ const setupPage = async (viewportWidth) => {
11
+ $e2ePage = await setup();
12
+ await $e2ePage.setViewport({ width: viewportWidths[viewportWidth], height: viewportHeight });
13
+ await $e2ePage.setContent(`
14
+ <div id='parent' style='width: 100%; height: 100%'>
15
+ <q2-grid
16
+ xs-columns='2' xs-rows='2' xs-gap='none' xs-justify='center' xs-align='center'
17
+ sm-columns='3' sm-rows='3' sm-gap='compact' sm-justify='stretch' sm-align='stretch'
18
+ md-columns='4' md-rows='4' md-gap='normal' md-justify='start' md-align='start'
19
+ lg-columns='5' lg-rows='5' lg-gap='comfortable' lg-justify='end' lg-align='end'
20
+ xl-columns='6' xl-rows='6' xl-gap='none' xl-justify='center' xl-align='center'
21
+ >
22
+ <q2-grid-area>
23
+ <div style='width: 10px; height: 10px'></div>
24
+ </q2-grid-area>
25
+ <q2-grid-area>
26
+ <div style='width: 10px; height: 10px'></div>
27
+ </q2-grid-area>
28
+ </q2-grid>
29
+ </div>
30
+ `);
31
+ await $e2ePage.waitForChanges();
32
+ $q2GridParent = await $e2ePage.find('#parent');
33
+ $shadowGrid = await $e2ePage.find('q2-grid >>> .q2-grid');
34
+ q2GridParentStyles = await $q2GridParent.getComputedStyle();
35
+ shadowGridStyles = await $shadowGrid.getComputedStyle();
36
+ };
37
+ describe('Compiler', () => {
38
+ it('properly compiles CSS vars and functions', async () => {
39
+ await setupPage('base');
40
+ expect(await getListOfStyleCompilationIssues($e2ePage, 'q2-grid')).toHaveLength(0);
41
+ });
42
+ });
43
+ describe('aXe DevTools', () => {
44
+ it('does not have accessibility violations', async () => {
45
+ await setupPage('base');
46
+ const hasViolations = await evaluateA11y($e2ePage);
47
+ expect(hasViolations).toBe(false);
48
+ });
49
+ });
50
+ describe('Breakpoint Independent Styles', () => {
51
+ beforeEach(async () => {
52
+ await setupPage('base');
53
+ });
54
+ it('should have the expected display value', async () => {
55
+ expect(shadowGridStyles['display']).toBe('grid');
56
+ });
57
+ it('should have the expected width value', async () => {
58
+ expect(shadowGridStyles['width']).toBe(q2GridParentStyles['width']);
59
+ });
60
+ it('should have the expected height value', async () => {
61
+ expect(shadowGridStyles['height']).toBe(q2GridParentStyles['height']);
62
+ });
63
+ it('should have the expected grid-auto-rows value', async () => {
64
+ expect(shadowGridStyles['grid-auto-rows']).toBe('auto');
65
+ });
66
+ it('should have the expected grid-auto-columns value', async () => {
67
+ expect(shadowGridStyles['grid-auto-columns']).toBe('1fr');
68
+ });
69
+ it('should have the expected grid-auto-flow value', async () => {
70
+ expect(shadowGridStyles['grid-auto-flow']).toBe('row');
71
+ });
72
+ it('should have the expected justify-content value', async () => {
73
+ expect(shadowGridStyles['justify-content']).toBe('center');
74
+ });
75
+ it('should have the expected align-content value', async () => {
76
+ expect(shadowGridStyles['align-content']).toBe('center');
77
+ });
78
+ });
79
+ describe('Base Computed Styles', () => {
80
+ beforeEach(async () => {
81
+ await setupPage('base');
82
+ });
83
+ it('should have the expected grid-template-columns value', async () => {
84
+ expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(12);
85
+ });
86
+ it('should have the expected grid-template-rows value', async () => {
87
+ expect(shadowGridStyles['grid-template-rows']).toBe('10px');
88
+ });
89
+ it('should have the expected column-gap value', async () => {
90
+ expect(shadowGridStyles['column-gap']).toBe('15px');
91
+ });
92
+ it('should have the expected row-gap value', async () => {
93
+ expect(shadowGridStyles['row-gap']).toBe('15px');
94
+ });
95
+ it('should have the expected justify-items value', async () => {
96
+ expect(shadowGridStyles['justify-items']).toBe('stretch');
97
+ });
98
+ it('should have the expected align-items value', async () => {
99
+ expect(shadowGridStyles['align-items']).toBe('stretch');
100
+ });
101
+ });
102
+ describe('XS Computed Styles', () => {
103
+ beforeEach(async () => {
104
+ await setupPage('xs');
105
+ });
106
+ it('should have the expected grid-template-columns value', async () => {
107
+ expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(2);
108
+ });
109
+ it('should have the expected grid-template-rows value', async () => {
110
+ expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px');
111
+ });
112
+ it('should have the expected column-gap value', async () => {
113
+ expect(shadowGridStyles['column-gap']).toBe('0px');
114
+ });
115
+ it('should have the expected row-gap value', async () => {
116
+ expect(shadowGridStyles['row-gap']).toBe('0px');
117
+ });
118
+ it('should have the expected justify-items value', async () => {
119
+ expect(shadowGridStyles['justify-items']).toBe('center');
120
+ });
121
+ it('should have the expected align-items value', async () => {
122
+ expect(shadowGridStyles['align-items']).toBe('center');
123
+ });
124
+ });
125
+ describe('SM Computed Styles', () => {
126
+ beforeEach(async () => {
127
+ await setupPage('sm');
128
+ });
129
+ it('should have the expected grid-template-columns value', async () => {
130
+ expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(3);
131
+ });
132
+ it('should have the expected grid-template-rows value', async () => {
133
+ expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px 10px');
134
+ });
135
+ it('should have the expected column-gap value', async () => {
136
+ expect(shadowGridStyles['column-gap']).toBe('5px');
137
+ });
138
+ it('should have the expected row-gap value', async () => {
139
+ expect(shadowGridStyles['row-gap']).toBe('5px');
140
+ });
141
+ it('should have the expected justify-items value', async () => {
142
+ expect(shadowGridStyles['justify-items']).toBe('stretch');
143
+ });
144
+ it('should have the expected align-items value', async () => {
145
+ expect(shadowGridStyles['align-items']).toBe('stretch');
146
+ });
147
+ });
148
+ describe('MD Computed Styles', () => {
149
+ beforeEach(async () => {
150
+ await setupPage('md');
151
+ });
152
+ it('should have the expected grid-template-columns value', async () => {
153
+ expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(4);
154
+ });
155
+ it('should have the expected grid-template-rows value', async () => {
156
+ expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px 10px 10px');
157
+ });
158
+ it('should have the expected column-gap value', async () => {
159
+ expect(shadowGridStyles['column-gap']).toBe('15px');
160
+ });
161
+ it('should have the expected row-gap value', async () => {
162
+ expect(shadowGridStyles['row-gap']).toBe('15px');
163
+ });
164
+ it('should have the expected justify-items value', async () => {
165
+ expect(shadowGridStyles['justify-items']).toBe('start');
166
+ });
167
+ it('should have the expected align-items value', async () => {
168
+ expect(shadowGridStyles['align-items']).toBe('start');
169
+ });
170
+ });
171
+ describe('LG Computed Styles', () => {
172
+ beforeEach(async () => {
173
+ await setupPage('lg');
174
+ });
175
+ it('should have the expected grid-template-columns value', async () => {
176
+ expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(5);
177
+ });
178
+ it('should have the expected grid-template-rows value', async () => {
179
+ expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px 10px 10px 10px');
180
+ });
181
+ it('should have the expected column-gap value', async () => {
182
+ expect(shadowGridStyles['column-gap']).toBe('25px');
183
+ });
184
+ it('should have the expected row-gap value', async () => {
185
+ expect(shadowGridStyles['row-gap']).toBe('25px');
186
+ });
187
+ it('should have the expected justify-items value', async () => {
188
+ expect(shadowGridStyles['justify-items']).toBe('end');
189
+ });
190
+ it('should have the expected align-items value', async () => {
191
+ expect(shadowGridStyles['align-items']).toBe('end');
192
+ });
193
+ });
194
+ describe('XL Computed Styles', () => {
195
+ beforeEach(async () => {
196
+ await setupPage('xl');
197
+ });
198
+ it('should have the expected grid-template-columns value', async () => {
199
+ expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(6);
200
+ });
201
+ it('should have the expected grid-template-rows value', async () => {
202
+ expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px 10px 10px 10px 10px');
203
+ });
204
+ it('should have the expected column-gap value', async () => {
205
+ expect(shadowGridStyles['column-gap']).toBe('0px');
206
+ });
207
+ it('should have the expected row-gap value', async () => {
208
+ expect(shadowGridStyles['row-gap']).toBe('0px');
209
+ });
210
+ it('should have the expected justify-items value', async () => {
211
+ expect(shadowGridStyles['justify-items']).toBe('center');
212
+ });
213
+ it('should have the expected align-items value', async () => {
214
+ expect(shadowGridStyles['align-items']).toBe('center');
215
+ });
216
+ });
217
+ });
218
+ //# sourceMappingURL=q2-grid.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"q2-grid.e2e.js","sourceRoot":"","sources":["../../../../../src/components/q2-grid/test/q2-grid.e2e.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,+BAA+B,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAA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AAC,KAAK,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;YACpD,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;YAC1D,MAAM,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,4CAA4C,EAAE,KAAK,IAAI,EAAE;YACxD,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["import { E2EElement, E2EPage } from '@stencil/core/testing';\nimport { setup, getListOfStyleCompilationIssues, evaluateA11y } from '@/utils/helpers';\n\ndescribe('q2-grid', () => {\n let $e2ePage: E2EPage;\n let $q2GridParent: E2EElement;\n let $shadowGrid: E2EElement;\n let q2GridParentStyles: CSSStyleDeclaration;\n let shadowGridStyles: CSSStyleDeclaration;\n const viewportWidths: { [key: string]: number } = { base: 479, xs: 480, sm: 768, md: 992, lg: 1200, xl: 1400 };\n const viewportHeight: number = 500;\n\n const setupPage = async (viewportWidth: 'base' | 'xs' | 'sm' | 'md' | 'lg' | 'xl') => {\n $e2ePage = await setup();\n await $e2ePage.setViewport({ width: viewportWidths[viewportWidth], height: viewportHeight });\n await $e2ePage.setContent(`\n <div id='parent' style='width: 100%; height: 100%'>\n <q2-grid\n xs-columns='2' xs-rows='2' xs-gap='none' xs-justify='center' xs-align='center'\n sm-columns='3' sm-rows='3' sm-gap='compact' sm-justify='stretch' sm-align='stretch'\n md-columns='4' md-rows='4' md-gap='normal' md-justify='start' md-align='start'\n lg-columns='5' lg-rows='5' lg-gap='comfortable' lg-justify='end' lg-align='end'\n xl-columns='6' xl-rows='6' xl-gap='none' xl-justify='center' xl-align='center'\n >\n <q2-grid-area>\n <div style='width: 10px; height: 10px'></div>\n </q2-grid-area>\n <q2-grid-area>\n <div style='width: 10px; height: 10px'></div>\n </q2-grid-area>\n </q2-grid>\n </div>\n `);\n await $e2ePage.waitForChanges();\n $q2GridParent = await $e2ePage.find('#parent');\n $shadowGrid = await $e2ePage.find('q2-grid >>> .q2-grid');\n q2GridParentStyles = await $q2GridParent.getComputedStyle();\n shadowGridStyles = await $shadowGrid.getComputedStyle();\n };\n\n describe('Compiler', () => {\n it('properly compiles CSS vars and functions', async () => {\n await setupPage('base');\n expect(await getListOfStyleCompilationIssues($e2ePage, 'q2-grid')).toHaveLength(0);\n });\n });\n\n describe('aXe DevTools', () => {\n it('does not have accessibility violations', async () => {\n await setupPage('base');\n const hasViolations = await evaluateA11y($e2ePage);\n expect(hasViolations).toBe(false);\n });\n });\n\n describe('Breakpoint Independent Styles', () => {\n beforeEach(async () => {\n await setupPage('base');\n });\n it('should have the expected display value', async () => {\n expect(shadowGridStyles['display']).toBe('grid');\n });\n it('should have the expected width value', async () => {\n expect(shadowGridStyles['width']).toBe(q2GridParentStyles['width']);\n });\n it('should have the expected height value', async () => {\n expect(shadowGridStyles['height']).toBe(q2GridParentStyles['height']);\n });\n it('should have the expected grid-auto-rows value', async () => {\n expect(shadowGridStyles['grid-auto-rows']).toBe('auto');\n });\n it('should have the expected grid-auto-columns value', async () => {\n expect(shadowGridStyles['grid-auto-columns']).toBe('1fr');\n });\n it('should have the expected grid-auto-flow value', async () => {\n expect(shadowGridStyles['grid-auto-flow']).toBe('row');\n });\n it('should have the expected justify-content value', async () => {\n expect(shadowGridStyles['justify-content']).toBe('center');\n });\n it('should have the expected align-content value', async () => {\n expect(shadowGridStyles['align-content']).toBe('center');\n });\n });\n\n describe('Base Computed Styles', () => {\n beforeEach(async () => {\n await setupPage('base');\n });\n it('should have the expected grid-template-columns value', async () => {\n expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(12);\n });\n it('should have the expected grid-template-rows value', async () => {\n expect(shadowGridStyles['grid-template-rows']).toBe('10px');\n });\n it('should have the expected column-gap value', async () => {\n expect(shadowGridStyles['column-gap']).toBe('15px');\n });\n it('should have the expected row-gap value', async () => {\n expect(shadowGridStyles['row-gap']).toBe('15px');\n });\n it('should have the expected justify-items value', async () => {\n expect(shadowGridStyles['justify-items']).toBe('stretch');\n });\n it('should have the expected align-items value', async () => {\n expect(shadowGridStyles['align-items']).toBe('stretch');\n });\n });\n\n describe('XS Computed Styles', () => {\n beforeEach(async () => {\n await setupPage('xs');\n });\n it('should have the expected grid-template-columns value', async () => {\n expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(2);\n });\n it('should have the expected grid-template-rows value', async () => {\n expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px');\n });\n it('should have the expected column-gap value', async () => {\n expect(shadowGridStyles['column-gap']).toBe('0px');\n });\n it('should have the expected row-gap value', async () => {\n expect(shadowGridStyles['row-gap']).toBe('0px');\n });\n it('should have the expected justify-items value', async () => {\n expect(shadowGridStyles['justify-items']).toBe('center');\n });\n it('should have the expected align-items value', async () => {\n expect(shadowGridStyles['align-items']).toBe('center');\n });\n });\n\n describe('SM Computed Styles', () => {\n beforeEach(async () => {\n await setupPage('sm');\n });\n it('should have the expected grid-template-columns value', async () => {\n expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(3);\n });\n it('should have the expected grid-template-rows value', async () => {\n expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px 10px');\n });\n it('should have the expected column-gap value', async () => {\n expect(shadowGridStyles['column-gap']).toBe('5px');\n });\n it('should have the expected row-gap value', async () => {\n expect(shadowGridStyles['row-gap']).toBe('5px');\n });\n it('should have the expected justify-items value', async () => {\n expect(shadowGridStyles['justify-items']).toBe('stretch');\n });\n it('should have the expected align-items value', async () => {\n expect(shadowGridStyles['align-items']).toBe('stretch');\n });\n });\n\n describe('MD Computed Styles', () => {\n beforeEach(async () => {\n await setupPage('md');\n });\n it('should have the expected grid-template-columns value', async () => {\n expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(4);\n });\n it('should have the expected grid-template-rows value', async () => {\n expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px 10px 10px');\n });\n it('should have the expected column-gap value', async () => {\n expect(shadowGridStyles['column-gap']).toBe('15px');\n });\n it('should have the expected row-gap value', async () => {\n expect(shadowGridStyles['row-gap']).toBe('15px');\n });\n it('should have the expected justify-items value', async () => {\n expect(shadowGridStyles['justify-items']).toBe('start');\n });\n it('should have the expected align-items value', async () => {\n expect(shadowGridStyles['align-items']).toBe('start');\n });\n });\n\n describe('LG Computed Styles', () => {\n beforeEach(async () => {\n await setupPage('lg');\n });\n it('should have the expected grid-template-columns value', async () => {\n expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(5);\n });\n it('should have the expected grid-template-rows value', async () => {\n expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px 10px 10px 10px');\n });\n it('should have the expected column-gap value', async () => {\n expect(shadowGridStyles['column-gap']).toBe('25px');\n });\n it('should have the expected row-gap value', async () => {\n expect(shadowGridStyles['row-gap']).toBe('25px');\n });\n it('should have the expected justify-items value', async () => {\n expect(shadowGridStyles['justify-items']).toBe('end');\n });\n it('should have the expected align-items value', async () => {\n expect(shadowGridStyles['align-items']).toBe('end');\n });\n });\n\n describe('XL Computed Styles', () => {\n beforeEach(async () => {\n await setupPage('xl');\n });\n it('should have the expected grid-template-columns value', async () => {\n expect((shadowGridStyles['grid-template-columns'].match(/px/g) || []).length).toBe(6);\n });\n it('should have the expected grid-template-rows value', async () => {\n expect(shadowGridStyles['grid-template-rows']).toBe('10px 10px 10px 10px 10px 10px');\n });\n it('should have the expected column-gap value', async () => {\n expect(shadowGridStyles['column-gap']).toBe('0px');\n });\n it('should have the expected row-gap value', async () => {\n expect(shadowGridStyles['row-gap']).toBe('0px');\n });\n it('should have the expected justify-items value', async () => {\n expect(shadowGridStyles['justify-items']).toBe('center');\n });\n it('should have the expected align-items value', async () => {\n expect(shadowGridStyles['align-items']).toBe('center');\n });\n });\n});\n"]}
@@ -0,0 +1,110 @@
1
+ :host {
2
+ --grid-column-start: "";
3
+ --grid-column-end: "";
4
+ --grid-row-start: "";
5
+ --grid-row-end: "";
6
+ --justify-self: "";
7
+ --align-self: "";
8
+ --z-index: "";
9
+ --xs-grid-column-start: "";
10
+ --xs-grid-column-end: "";
11
+ --xs-grid-row-start: "";
12
+ --xs-grid-row-end: "";
13
+ --xs-justify-self: "";
14
+ --xs-align-self: "";
15
+ --xs-z-index: "";
16
+ --sm-grid-column-start: "";
17
+ --sm-grid-column-end: "";
18
+ --sm-grid-row-start: "";
19
+ --sm-grid-row-end: "";
20
+ --sm-justify-self: "";
21
+ --sm-align-self: "";
22
+ --sm-z-index: "";
23
+ --md-grid-column-start: "";
24
+ --md-grid-column-end: "";
25
+ --md-grid-row-start: "";
26
+ --md-grid-row-end: "";
27
+ --md-justify-self: "";
28
+ --md-align-self: "";
29
+ --md-z-index: "";
30
+ --lg-grid-column-start: "";
31
+ --lg-grid-column-end: "";
32
+ --lg-grid-row-start: "";
33
+ --lg-grid-row-end: "";
34
+ --lg-justify-self: "";
35
+ --lg-align-self: "";
36
+ --lg-z-index: "";
37
+ --xl-grid-column-start: "";
38
+ --xl-grid-column-end: "";
39
+ --xl-grid-row-start: "";
40
+ --xl-grid-row-end: "";
41
+ --xl-justify-self: "";
42
+ --xl-align-self: "";
43
+ --xl-z-index: "";
44
+ }
45
+
46
+ :host {
47
+ grid-column-start: var(--grid-column-start);
48
+ grid-column-end: var(--grid-column-end);
49
+ grid-row-start: var(--grid-row-start);
50
+ grid-row-end: var(--grid-row-end);
51
+ justify-self: var(--justify-self);
52
+ align-self: var(--align-self);
53
+ z-index: var(--z-index);
54
+ }
55
+
56
+ @media screen and (min-width: 480px) {
57
+ :host {
58
+ grid-column-start: var(--xs-grid-column-start);
59
+ grid-column-end: var(--xs-grid-column-end);
60
+ grid-row-start: var(--xs-grid-row-start);
61
+ grid-row-end: var(--xs-grid-row-end);
62
+ justify-self: var(--xs-justify-self);
63
+ align-self: var(--xs-align-self);
64
+ z-index: var(--xs-z-index);
65
+ }
66
+ }
67
+ @media screen and (min-width: 768px) {
68
+ :host {
69
+ grid-column-start: var(--sm-grid-column-start);
70
+ grid-column-end: var(--sm-grid-column-end);
71
+ grid-row-start: var(--sm-grid-row-start);
72
+ grid-row-end: var(--sm-grid-row-end);
73
+ justify-self: var(--sm-justify-self);
74
+ align-self: var(--sm-align-self);
75
+ z-index: var(--sm-z-index);
76
+ }
77
+ }
78
+ @media screen and (min-width: 992px) {
79
+ :host {
80
+ grid-column-start: var(--md-grid-column-start);
81
+ grid-column-end: var(--md-grid-column-end);
82
+ grid-row-start: var(--md-grid-row-start);
83
+ grid-row-end: var(--md-grid-row-end);
84
+ justify-self: var(--md-justify-self);
85
+ align-self: var(--md-align-self);
86
+ z-index: var(--md-z-index);
87
+ }
88
+ }
89
+ @media screen and (min-width: 1200px) {
90
+ :host {
91
+ grid-column-start: var(--lg-grid-column-start);
92
+ grid-column-end: var(--lg-grid-column-end);
93
+ grid-row-start: var(--lg-grid-row-start);
94
+ grid-row-end: var(--lg-grid-row-end);
95
+ justify-self: var(--lg-justify-self);
96
+ align-self: var(--lg-align-self);
97
+ z-index: var(--lg-z-index);
98
+ }
99
+ }
100
+ @media screen and (min-width: 1400px) {
101
+ :host {
102
+ grid-column-start: var(--xl-grid-column-start);
103
+ grid-column-end: var(--xl-grid-column-end);
104
+ grid-row-start: var(--xl-grid-row-start);
105
+ grid-row-end: var(--xl-grid-row-end);
106
+ justify-self: var(--xl-justify-self);
107
+ align-self: var(--xl-align-self);
108
+ z-index: var(--xl-z-index);
109
+ }
110
+ }