xv-webcomponents 0.1.43 → 0.1.44

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 (310) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +129 -129
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  4. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  5. package/dist/cjs/index-BE3kw7I4.js +36 -0
  6. package/dist/cjs/index-BE3kw7I4.js.map +1 -0
  7. package/dist/cjs/index-MLh9SbX2.js +1917 -0
  8. package/dist/cjs/index-MLh9SbX2.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +10 -0
  10. package/dist/cjs/index.cjs.js.map +1 -0
  11. package/dist/cjs/loader.cjs.js +16 -0
  12. package/dist/cjs/loader.cjs.js.map +1 -0
  13. package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +3510 -0
  14. package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +1 -0
  15. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +20 -0
  16. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +1 -0
  17. package/dist/cjs/xv-breadcrumbs-v2.entry.cjs.js.map +1 -0
  18. package/dist/cjs/xv-webcomponents.cjs.js +28 -0
  19. package/dist/cjs/xv-webcomponents.cjs.js.map +1 -0
  20. package/dist/collection/assets/fonts/fontawesome5/fa-brands-400.svg +3717 -0
  21. package/dist/collection/assets/fonts/fontawesome5/fa-duotone-900.svg +15326 -0
  22. package/dist/collection/assets/fonts/fontawesome5/fa-light-300.svg +12420 -0
  23. package/dist/collection/assets/fonts/fontawesome5/fa-regular-400.svg +11323 -0
  24. package/dist/collection/assets/fonts/fontawesome5/fa-solid-900.svg +9653 -0
  25. package/dist/collection/collection-manifest.json +46 -0
  26. package/dist/collection/components/xv-accordion/xv-accordion.css +3 -0
  27. package/dist/collection/components/xv-accordion/xv-accordion.js +163 -0
  28. package/dist/collection/components/xv-accordion/xv-accordion.js.map +1 -0
  29. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +68 -0
  30. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +132 -0
  31. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +1 -0
  32. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +3 -0
  33. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +19 -0
  34. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +1 -0
  35. package/dist/collection/components/xv-button/xv-button-v2.css +173 -0
  36. package/dist/collection/components/xv-button/xv-button.js +229 -0
  37. package/dist/collection/components/xv-button/xv-button.js.map +1 -0
  38. package/dist/collection/components/xv-card/xv-card.css +63 -0
  39. package/dist/collection/components/xv-card/xv-card.js +122 -0
  40. package/dist/collection/components/xv-card/xv-card.js.map +1 -0
  41. package/dist/collection/components/xv-checkbox/xv-checkbox.css +138 -0
  42. package/dist/collection/components/xv-checkbox/xv-checkbox.js +402 -0
  43. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +1 -0
  44. package/dist/collection/components/xv-data-table/_vars.js +3 -0
  45. package/dist/collection/components/xv-data-table/_vars.js.map +1 -0
  46. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +90 -0
  47. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +182 -0
  48. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +1 -0
  49. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.css +7 -0
  50. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js +101 -0
  51. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js.map +1 -0
  52. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +71 -0
  53. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +354 -0
  54. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +1 -0
  55. package/dist/collection/components/xv-data-table/xv-data-table.css +104 -0
  56. package/dist/collection/components/xv-data-table/xv-data-table.js +114 -0
  57. package/dist/collection/components/xv-data-table/xv-data-table.js.map +1 -0
  58. package/dist/collection/components/xv-dropdown/_vars.js +2 -0
  59. package/dist/collection/components/xv-dropdown/_vars.js.map +1 -0
  60. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.css +14 -0
  61. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +153 -0
  62. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js.map +1 -0
  63. package/dist/collection/components/xv-dropdown/xv-dropdown.css +232 -0
  64. package/dist/collection/components/xv-dropdown/xv-dropdown.js +443 -0
  65. package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -0
  66. package/dist/collection/components/xv-file-uploader/_vars.js +6 -0
  67. package/dist/collection/components/xv-file-uploader/_vars.js.map +1 -0
  68. package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +136 -0
  69. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +448 -0
  70. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +1 -0
  71. package/dist/collection/components/xv-footer/xv-footer.css +230 -0
  72. package/dist/collection/components/xv-footer/xv-footer.js +37 -0
  73. package/dist/collection/components/xv-footer/xv-footer.js.map +1 -0
  74. package/dist/collection/components/xv-header/xv-header.css +22587 -0
  75. package/dist/collection/components/xv-header/xv-header.js +54 -0
  76. package/dist/collection/components/xv-header/xv-header.js.map +1 -0
  77. package/dist/collection/components/xv-link/xv-link.css +67 -0
  78. package/dist/collection/components/xv-link/xv-link.js +132 -0
  79. package/dist/collection/components/xv-link/xv-link.js.map +1 -0
  80. package/dist/collection/components/xv-loader/xv-loader.css +65 -0
  81. package/dist/collection/components/xv-loader/xv-loader.js +106 -0
  82. package/dist/collection/components/xv-loader/xv-loader.js.map +1 -0
  83. package/dist/collection/components/xv-login-modal/xv-login-modal.css +22575 -0
  84. package/dist/collection/components/xv-login-modal/xv-login-modal.js +146 -0
  85. package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +1 -0
  86. package/dist/collection/components/xv-modal/xv-modal.css +102 -0
  87. package/dist/collection/components/xv-modal/xv-modal.js +226 -0
  88. package/dist/collection/components/xv-modal/xv-modal.js.map +1 -0
  89. package/dist/collection/components/xv-notification/_vars.js +8 -0
  90. package/dist/collection/components/xv-notification/_vars.js.map +1 -0
  91. package/dist/collection/components/xv-notification/xv-notification.css +113 -0
  92. package/dist/collection/components/xv-notification/xv-notification.js +118 -0
  93. package/dist/collection/components/xv-notification/xv-notification.js.map +1 -0
  94. package/dist/collection/components/xv-number-input/xv-number-input.css +128 -0
  95. package/dist/collection/components/xv-number-input/xv-number-input.js +373 -0
  96. package/dist/collection/components/xv-number-input/xv-number-input.js.map +1 -0
  97. package/dist/collection/components/xv-overflow-menu/_vars.js +6 -0
  98. package/dist/collection/components/xv-overflow-menu/_vars.js.map +1 -0
  99. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css +45 -0
  100. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +137 -0
  101. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js.map +1 -0
  102. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.css +105 -0
  103. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +202 -0
  104. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js.map +1 -0
  105. package/dist/{xv-webcomponents/_vars-IZ3lIQzL.js → collection/components/xv-progress-indicator/_vars.js} +3 -7
  106. package/dist/collection/components/xv-progress-indicator/_vars.js.map +1 -0
  107. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.css +96 -0
  108. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +54 -0
  109. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js.map +1 -0
  110. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +45 -0
  111. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +157 -0
  112. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +1 -0
  113. package/dist/collection/components/xv-table/_vars.js +3 -0
  114. package/dist/collection/components/xv-table/_vars.js.map +1 -0
  115. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.css +93 -0
  116. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +160 -0
  117. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js.map +1 -0
  118. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.css +58 -0
  119. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +76 -0
  120. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js.map +1 -0
  121. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +39 -0
  122. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +333 -0
  123. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +1 -0
  124. package/dist/collection/components/xv-table/xv-table.css +137 -0
  125. package/dist/collection/components/xv-table/xv-table.js +159 -0
  126. package/dist/collection/components/xv-table/xv-table.js.map +1 -0
  127. package/dist/collection/components/xv-tabs/_vars.js +11 -0
  128. package/dist/collection/components/xv-tabs/_vars.js.map +1 -0
  129. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.css +10 -0
  130. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +106 -0
  131. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js.map +1 -0
  132. package/dist/collection/components/xv-tabs/xv-tabs.css +139 -0
  133. package/dist/collection/components/xv-tabs/xv-tabs.js +221 -0
  134. package/dist/collection/components/xv-tabs/xv-tabs.js.map +1 -0
  135. package/dist/collection/components/xv-tag/xv-tag.css +97 -0
  136. package/dist/collection/components/xv-tag/xv-tag.js +158 -0
  137. package/dist/collection/components/xv-tag/xv-tag.js.map +1 -0
  138. package/dist/collection/components/xv-text-input/xv-text-input.css +144 -0
  139. package/dist/collection/components/xv-text-input/xv-text-input.js +324 -0
  140. package/dist/collection/components/xv-text-input/xv-text-input.js.map +1 -0
  141. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +95 -0
  142. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +201 -0
  143. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +1 -0
  144. package/dist/collection/components/xv-tooltip/xv-tooltip.css +43 -0
  145. package/dist/collection/components/xv-tooltip/xv-tooltip.js +114 -0
  146. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +1 -0
  147. package/dist/collection/index.js +11 -0
  148. package/dist/collection/index.js.map +1 -0
  149. package/dist/collection/scss/xv/images/xv-sprite.svg +1 -0
  150. package/dist/collection/scss/xv/sprite/images/xv-sprite.svg +1 -0
  151. package/dist/collection/types/enum.js +15 -0
  152. package/dist/collection/types/enum.js.map +1 -0
  153. package/dist/{xv-webcomponents/utils-1tk8kwKx.js → collection/utils/utils.js} +7 -11
  154. package/dist/collection/utils/utils.js.map +1 -0
  155. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  156. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  157. package/dist/esm/index-DLYJiP99.js +1907 -0
  158. package/dist/esm/index-DLYJiP99.js.map +1 -0
  159. package/dist/esm/index-NvoCloOY.js +31 -0
  160. package/dist/esm/index-NvoCloOY.js.map +1 -0
  161. package/dist/esm/index.js +4 -0
  162. package/dist/esm/index.js.map +1 -0
  163. package/dist/esm/loader.js +14 -0
  164. package/dist/esm/loader.js.map +1 -0
  165. package/dist/esm/xv-accordion-v2_34.entry.js +3475 -0
  166. package/dist/esm/xv-accordion-v2_34.entry.js.map +1 -0
  167. package/dist/esm/xv-breadcrumbs-v2.entry.js +18 -0
  168. package/dist/esm/xv-breadcrumbs-v2.entry.js.map +1 -0
  169. package/dist/esm/xv-webcomponents.js +24 -0
  170. package/dist/esm/xv-webcomponents.js.map +1 -0
  171. package/dist/index.cjs.js +1 -0
  172. package/dist/index.js +1 -0
  173. package/dist/types/components/xv-button/xv-button.d.ts +21 -12
  174. package/dist/types/components/xv-data-table/_vars.d.ts +11 -0
  175. package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +13 -0
  176. package/dist/types/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.d.ts +9 -0
  177. package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +25 -0
  178. package/dist/types/components/xv-data-table/xv-data-table.d.ts +9 -0
  179. package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +1 -0
  180. package/dist/types/components/xv-file-uploader/_vars.d.ts +4 -0
  181. package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +36 -0
  182. package/dist/types/components/xv-header/xv-header.d.ts +0 -2
  183. package/dist/types/components/xv-number-input/xv-number-input.d.ts +26 -0
  184. package/dist/types/components/xv-table/_vars.d.ts +1 -5
  185. package/dist/types/components/xv-table/xv-table-cell/xv-table-cell.d.ts +2 -1
  186. package/dist/types/components/xv-text-input/xv-text-input.d.ts +10 -11
  187. package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +19 -0
  188. package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +10 -8
  189. package/dist/types/components.d.ts +508 -105
  190. package/dist/types/stencil-public-runtime.d.ts +1 -1
  191. package/dist/types/types/enum.d.ts +5 -0
  192. package/dist/xv-webcomponents/index.esm.js +1 -13
  193. package/dist/xv-webcomponents/index.esm.js.map +1 -1
  194. package/dist/xv-webcomponents/loader.esm.js.map +1 -1
  195. package/dist/xv-webcomponents/p-5b63a259.entry.js +2 -0
  196. package/dist/xv-webcomponents/p-5b63a259.entry.js.map +1 -0
  197. package/dist/xv-webcomponents/p-9c06f44c.entry.js +2 -0
  198. package/dist/xv-webcomponents/p-9c06f44c.entry.js.map +1 -0
  199. package/dist/xv-webcomponents/p-DLYJiP99.js +3 -0
  200. package/dist/xv-webcomponents/p-DLYJiP99.js.map +1 -0
  201. package/dist/xv-webcomponents/p-DQuL1Twl.js +2 -0
  202. package/dist/xv-webcomponents/p-DQuL1Twl.js.map +1 -0
  203. package/dist/xv-webcomponents/p-NvoCloOY.js +2 -0
  204. package/dist/xv-webcomponents/p-NvoCloOY.js.map +1 -0
  205. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.esm.js.map +1 -1
  206. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -49
  207. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  208. package/loader/cdn.js +1 -0
  209. package/loader/index.cjs.js +1 -0
  210. package/loader/index.d.ts +24 -0
  211. package/loader/index.es2017.js +1 -0
  212. package/loader/index.js +2 -0
  213. package/package.json +53 -53
  214. package/dist/types/components/xv-text-input/_vars.d.ts +0 -5
  215. package/dist/types/components/xv-user-menu/interfaces/MenuItem.d.ts +0 -0
  216. package/dist/types/components/xv-user-menu/xv-user-menu.d.ts +0 -41
  217. package/dist/xv-webcomponents/_vars-FbbDWn6g.js +0 -13
  218. package/dist/xv-webcomponents/_vars-FbbDWn6g.js.map +0 -1
  219. package/dist/xv-webcomponents/_vars-IZ3lIQzL.js.map +0 -1
  220. package/dist/xv-webcomponents/enum-DTBL51oP.js +0 -13
  221. package/dist/xv-webcomponents/enum-DTBL51oP.js.map +0 -1
  222. package/dist/xv-webcomponents/index-rZAC0WRb.js +0 -4238
  223. package/dist/xv-webcomponents/index-rZAC0WRb.js.map +0 -1
  224. package/dist/xv-webcomponents/utils-1tk8kwKx.js.map +0 -1
  225. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.esm.js.map +0 -1
  226. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +0 -36
  227. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +0 -1
  228. package/dist/xv-webcomponents/xv-accordion-v2.entry.esm.js.map +0 -1
  229. package/dist/xv-webcomponents/xv-accordion-v2.entry.js +0 -41
  230. package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +0 -1
  231. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +0 -18
  232. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +0 -1
  233. package/dist/xv-webcomponents/xv-button-v2.entry.esm.js.map +0 -1
  234. package/dist/xv-webcomponents/xv-button-v2.entry.js +0 -35
  235. package/dist/xv-webcomponents/xv-button-v2.entry.js.map +0 -1
  236. package/dist/xv-webcomponents/xv-card-v2.entry.esm.js.map +0 -1
  237. package/dist/xv-webcomponents/xv-card-v2.entry.js +0 -19
  238. package/dist/xv-webcomponents/xv-card-v2.entry.js.map +0 -1
  239. package/dist/xv-webcomponents/xv-checkbox-v2.entry.esm.js.map +0 -1
  240. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +0 -106
  241. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +0 -1
  242. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.esm.js.map +0 -1
  243. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js +0 -36
  244. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js.map +0 -1
  245. package/dist/xv-webcomponents/xv-dropdown-v2.entry.esm.js.map +0 -1
  246. package/dist/xv-webcomponents/xv-dropdown-v2.entry.js +0 -136
  247. package/dist/xv-webcomponents/xv-dropdown-v2.entry.js.map +0 -1
  248. package/dist/xv-webcomponents/xv-footer.entry.esm.js.map +0 -1
  249. package/dist/xv-webcomponents/xv-footer.entry.js +0 -30
  250. package/dist/xv-webcomponents/xv-footer.entry.js.map +0 -1
  251. package/dist/xv-webcomponents/xv-header.entry.esm.js.map +0 -1
  252. package/dist/xv-webcomponents/xv-header.entry.js +0 -81
  253. package/dist/xv-webcomponents/xv-header.entry.js.map +0 -1
  254. package/dist/xv-webcomponents/xv-link-v2.entry.esm.js.map +0 -1
  255. package/dist/xv-webcomponents/xv-link-v2.entry.js +0 -27
  256. package/dist/xv-webcomponents/xv-link-v2.entry.js.map +0 -1
  257. package/dist/xv-webcomponents/xv-loader-v2.entry.esm.js.map +0 -1
  258. package/dist/xv-webcomponents/xv-loader-v2.entry.js +0 -33
  259. package/dist/xv-webcomponents/xv-loader-v2.entry.js.map +0 -1
  260. package/dist/xv-webcomponents/xv-login-modal.entry.esm.js.map +0 -1
  261. package/dist/xv-webcomponents/xv-login-modal.entry.js +0 -89
  262. package/dist/xv-webcomponents/xv-login-modal.entry.js.map +0 -1
  263. package/dist/xv-webcomponents/xv-modal-v2.entry.esm.js.map +0 -1
  264. package/dist/xv-webcomponents/xv-modal-v2.entry.js +0 -78
  265. package/dist/xv-webcomponents/xv-modal-v2.entry.js.map +0 -1
  266. package/dist/xv-webcomponents/xv-notification-v2.entry.esm.js.map +0 -1
  267. package/dist/xv-webcomponents/xv-notification-v2.entry.js +0 -50
  268. package/dist/xv-webcomponents/xv-notification-v2.entry.js.map +0 -1
  269. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.esm.js.map +0 -1
  270. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js +0 -32
  271. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js.map +0 -1
  272. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.esm.js.map +0 -1
  273. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js +0 -74
  274. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js.map +0 -1
  275. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.esm.js.map +0 -1
  276. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +0 -21
  277. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +0 -1
  278. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.esm.js.map +0 -1
  279. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +0 -75
  280. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +0 -1
  281. package/dist/xv-webcomponents/xv-tab-v2.entry.esm.js.map +0 -1
  282. package/dist/xv-webcomponents/xv-tab-v2.entry.js +0 -21
  283. package/dist/xv-webcomponents/xv-tab-v2.entry.js.map +0 -1
  284. package/dist/xv-webcomponents/xv-table-v2-cell.entry.esm.js.map +0 -1
  285. package/dist/xv-webcomponents/xv-table-v2-cell.entry.js +0 -41
  286. package/dist/xv-webcomponents/xv-table-v2-cell.entry.js.map +0 -1
  287. package/dist/xv-webcomponents/xv-table-v2-expand.entry.esm.js.map +0 -1
  288. package/dist/xv-webcomponents/xv-table-v2-expand.entry.js +0 -29
  289. package/dist/xv-webcomponents/xv-table-v2-expand.entry.js.map +0 -1
  290. package/dist/xv-webcomponents/xv-table-v2-row.entry.esm.js.map +0 -1
  291. package/dist/xv-webcomponents/xv-table-v2-row.entry.js +0 -66
  292. package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +0 -1
  293. package/dist/xv-webcomponents/xv-table-v2.entry.esm.js.map +0 -1
  294. package/dist/xv-webcomponents/xv-table-v2.entry.js +0 -53
  295. package/dist/xv-webcomponents/xv-table-v2.entry.js.map +0 -1
  296. package/dist/xv-webcomponents/xv-tabs-v2.entry.esm.js.map +0 -1
  297. package/dist/xv-webcomponents/xv-tabs-v2.entry.js +0 -109
  298. package/dist/xv-webcomponents/xv-tabs-v2.entry.js.map +0 -1
  299. package/dist/xv-webcomponents/xv-tag-v2.entry.esm.js.map +0 -1
  300. package/dist/xv-webcomponents/xv-tag-v2.entry.js +0 -29
  301. package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +0 -1
  302. package/dist/xv-webcomponents/xv-text-input-v2.entry.esm.js.map +0 -1
  303. package/dist/xv-webcomponents/xv-text-input-v2.entry.js +0 -65
  304. package/dist/xv-webcomponents/xv-text-input-v2.entry.js.map +0 -1
  305. package/dist/xv-webcomponents/xv-tooltip-v2.entry.esm.js.map +0 -1
  306. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +0 -24
  307. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +0 -1
  308. package/dist/xv-webcomponents/xv-user-menu.entry.esm.js.map +0 -1
  309. package/dist/xv-webcomponents/xv-user-menu.entry.js +0 -43
  310. package/dist/xv-webcomponents/xv-user-menu.entry.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xv-progress-indicator-item.js","sourceRoot":"","sources":["../../../../src/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAOhD,MAAM,OAAO,uBAAuB;IALpC;QAO4B,WAAM,GAAyB,oBAAoB,CAAC,UAAU,CAAC;KAqB1F;IAnBC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,EAAC,4BAA4B,EAAE,IAAI,EAAC;YAE3C,6DAAM,KAAK,EAAC,MAAM,GAAE;YACpB,6DAAM,KAAK,EAAC,MAAM;gBAChB,4DAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;oBACvD,6DACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,sLAAsL,GACxL,CACF,CACD;YACP,0DAAG,KAAK,EAAC,OAAO;gBAAC,8DAAO,CAAI,CACvB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop } from '@stencil/core';\nimport { PROGRESS_ITEM_STATUS } from '../_vars';\n\n@Component({\n tag: 'xv-progress-indicator-v2-item',\n styleUrl: 'xv-progress-indicator-item.scss',\n shadow: true,\n})\nexport class XvProgressIndicatorItem {\n @Element() el: HTMLElement;\n @Prop({ reflect: false }) status: PROGRESS_ITEM_STATUS = PROGRESS_ITEM_STATUS.NO_STARTED;\n\n render() {\n return (\n <Host\n status={this.status}\n class={{'xv-progress-indicator-item': true}}\n >\n <span class=\"line\"/>\n <span class=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\">\n <path\n fill=\"currentColor\"\n d=\"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z\"\n />\n </svg>\n </span>\n <p class=\"label\"><slot/></p>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,45 @@
1
+ :host {
2
+ --progress-indicator-icon-size: 22px;
3
+ --progress-indicator-font-size: var(--fz-md, 14px);
4
+ display: flex;
5
+ align-items: flex-start;
6
+ justify-content: space-between;
7
+ font-family: var(--ff-body, inherit);
8
+ overflow-x: auto;
9
+ }
10
+
11
+ :host([variant=horizontal]) ::slotted(xv-progress-indicator-v2-item) {
12
+ flex-direction: row;
13
+ column-gap: var(--gap-xs, 8px);
14
+ justify-content: flex-start;
15
+ padding-left: 0;
16
+ white-space: nowrap;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ text-align: left;
20
+ }
21
+
22
+ :host([size=xs]) {
23
+ --progress-indicator-icon-size: 14px;
24
+ --progress-indicator-font-size: var(--fz-md, 14px);
25
+ }
26
+
27
+ :host([size=sm]) {
28
+ --progress-indicator-icon-size: 16px;
29
+ --progress-indicator-font-size: var(--fz-md, 14px);
30
+ }
31
+
32
+ :host([size=md]) {
33
+ --progress-indicator-icon-size: 22px;
34
+ --progress-indicator-font-size: var(--fz-md, 14px);
35
+ }
36
+
37
+ :host([size=lg]) {
38
+ --progress-indicator-icon-size: 24px;
39
+ --progress-indicator-font-size: var(--fz-lg, 18px);
40
+ }
41
+
42
+ :host([size=xl]) {
43
+ --progress-indicator-icon-size: 32px;
44
+ --progress-indicator-font-size: var(--fz-xl, 20px);
45
+ }
@@ -0,0 +1,157 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { PROGRESS_ITEM_STATUS, PROGRESS_VARIANTS } from "./_vars";
3
+ import { SIZE_VAR } from "../../types/enum";
4
+ import { forEach } from "../../utils/utils";
5
+ export class XvProgressIndicator {
6
+ constructor() {
7
+ /**
8
+ * Current progress
9
+ * from 0 to 100
10
+ */
11
+ this.progress = 0;
12
+ /**
13
+ * Progress variant
14
+ * enum PROGRESS_VARIANTS
15
+ * possible option `horizontal`
16
+ */
17
+ this.variant = PROGRESS_VARIANTS.DEFAULT;
18
+ /**
19
+ * Size of progress
20
+ * enum SIZE_VAR
21
+ * possible options `XS | SM | MD | LG | XL`
22
+ */
23
+ this.size = SIZE_VAR.MD;
24
+ }
25
+ // Update 'xv-progress-indicator-item' done status
26
+ updateChildItems() {
27
+ const items = this.el.children;
28
+ const itemsCount = this.el.childElementCount;
29
+ const progressPerItem = 100 / itemsCount;
30
+ if (!items.length || !itemsCount)
31
+ return;
32
+ forEach(items, (item, index) => {
33
+ var _a;
34
+ const itemProgressStart = index * progressPerItem;
35
+ let status;
36
+ const localProgress = Math.min(Math.max((this.progress - itemProgressStart) / progressPerItem, 0), 1) * 100;
37
+ if (localProgress >= 100) {
38
+ status = PROGRESS_ITEM_STATUS.DONE;
39
+ }
40
+ else if (localProgress > 0) {
41
+ status = PROGRESS_ITEM_STATUS.IN_PROGRESS;
42
+ }
43
+ else {
44
+ status = PROGRESS_ITEM_STATUS.NO_STARTED;
45
+ }
46
+ // Set item current status
47
+ item.setAttribute('status', status);
48
+ // Update progress line
49
+ const line = (_a = item === null || item === void 0 ? void 0 : item.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.line');
50
+ if (line)
51
+ line.style.width = `${localProgress}%`;
52
+ });
53
+ }
54
+ // Load initial done status
55
+ componentDidLoad() {
56
+ this.updateChildItems();
57
+ }
58
+ render() {
59
+ return (h(Host, { key: '05e84a5e734b88c4d2a3c2206e4e5ea75c0fc969', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, h("slot", { key: '12dcb64216cfc45663d73d66bbd3225be005e897' })));
60
+ }
61
+ static get is() { return "xv-progress-indicator-v2"; }
62
+ static get encapsulation() { return "shadow"; }
63
+ static get originalStyleUrls() {
64
+ return {
65
+ "$": ["xv-progress-indicator.scss"]
66
+ };
67
+ }
68
+ static get styleUrls() {
69
+ return {
70
+ "$": ["xv-progress-indicator.css"]
71
+ };
72
+ }
73
+ static get properties() {
74
+ return {
75
+ "progress": {
76
+ "type": "number",
77
+ "attribute": "progress",
78
+ "mutable": false,
79
+ "complexType": {
80
+ "original": "number",
81
+ "resolved": "number",
82
+ "references": {}
83
+ },
84
+ "required": false,
85
+ "optional": false,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": "Current progress\nfrom 0 to 100"
89
+ },
90
+ "getter": false,
91
+ "setter": false,
92
+ "reflect": true,
93
+ "defaultValue": "0"
94
+ },
95
+ "variant": {
96
+ "type": "string",
97
+ "attribute": "variant",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "PROGRESS_VARIANTS",
101
+ "resolved": "PROGRESS_VARIANTS.DEFAULT | PROGRESS_VARIANTS.HORIZONTAL",
102
+ "references": {
103
+ "PROGRESS_VARIANTS": {
104
+ "location": "import",
105
+ "path": "./_vars",
106
+ "id": "src/components/xv-progress-indicator/_vars.ts::PROGRESS_VARIANTS"
107
+ }
108
+ }
109
+ },
110
+ "required": false,
111
+ "optional": false,
112
+ "docs": {
113
+ "tags": [],
114
+ "text": "Progress variant\nenum PROGRESS_VARIANTS\npossible option `horizontal`"
115
+ },
116
+ "getter": false,
117
+ "setter": false,
118
+ "reflect": false,
119
+ "defaultValue": "PROGRESS_VARIANTS.DEFAULT"
120
+ },
121
+ "size": {
122
+ "type": "string",
123
+ "attribute": "size",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "SIZE_VAR",
127
+ "resolved": "SIZE_VAR.LG | SIZE_VAR.MD | SIZE_VAR.SM | SIZE_VAR.XL | SIZE_VAR.XS",
128
+ "references": {
129
+ "SIZE_VAR": {
130
+ "location": "import",
131
+ "path": "../../types/enum",
132
+ "id": "src/types/enum.ts::SIZE_VAR"
133
+ }
134
+ }
135
+ },
136
+ "required": false,
137
+ "optional": false,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": "Size of progress\nenum SIZE_VAR\npossible options `XS | SM | MD | LG | XL`"
141
+ },
142
+ "getter": false,
143
+ "setter": false,
144
+ "reflect": false,
145
+ "defaultValue": "SIZE_VAR.MD"
146
+ }
147
+ };
148
+ }
149
+ static get elementRef() { return "el"; }
150
+ static get watchers() {
151
+ return [{
152
+ "propName": "progress",
153
+ "methodName": "updateChildItems"
154
+ }];
155
+ }
156
+ }
157
+ //# sourceMappingURL=xv-progress-indicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xv-progress-indicator.js","sourceRoot":"","sources":["../../../src/components/xv-progress-indicator/xv-progress-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,MAAM,OAAO,mBAAmB;IALhC;QAOE;;;WAGG;QACsB,aAAQ,GAAW,CAAC,CAAC;QAC9C;;;;WAIG;QACK,YAAO,GAAsB,iBAAiB,CAAC,OAAO,CAAC;QAC/D;;;;WAIG;QACK,SAAI,GAAa,QAAQ,CAAC,EAAE,CAAC;KA+CtC;IA7CC,kDAAkD;IAElD,gBAAgB;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC;QAC7C,MAAM,eAAe,GAAG,GAAG,GAAG,UAAU,CAAC;QAEzC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,UAAU;YAAE,OAAO;QAEzC,OAAO,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;;YAC7B,MAAM,iBAAiB,GAAG,KAAK,GAAG,eAAe,CAAC;YAClD,IAAI,MAA4B,CAAC;YACjC,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAC5B,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,iBAAiB,CAAC,GAAG,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,CACtE,GAAG,GAAG,CAAC;YAER,IAAI,aAAa,IAAI,GAAG,EAAE,CAAC;gBACzB,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC;YACrC,CAAC;iBAAM,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;gBAC7B,MAAM,GAAG,oBAAoB,CAAC,WAAW,CAAC;YAC5C,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,oBAAoB,CAAC,UAAU,CAAC;YAC3C,CAAC;YAED,0BAA0B;YACzB,IAAoB,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAErD,uBAAuB;YACvB,MAAM,IAAI,GAAG,MAAC,IAAoB,aAApB,IAAI,uBAAJ,IAAI,CAAkB,UAAU,0CAAE,aAAa,CAAC,OAAO,CAAgB,CAAC;YACtF,IAAI,IAAI;gBAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,aAAa,GAAG,CAAC;QACnD,CAAC,CAAC,CAAC;IACL,CAAC;IAED,2BAA2B;IAC3B,gBAAgB;QACd,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACzB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE;YACpF,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Watch, Element } from '@stencil/core';\nimport { PROGRESS_ITEM_STATUS, PROGRESS_VARIANTS } from './_vars';\nimport { SIZE_VAR } from '../../types/enum';\nimport { forEach } from '../../utils/utils';\n\n@Component({\n tag: 'xv-progress-indicator-v2',\n styleUrl: 'xv-progress-indicator.scss',\n shadow: true,\n})\nexport class XvProgressIndicator {\n @Element() el: HTMLElement;\n /**\n * Current progress\n * from 0 to 100\n */\n @Prop({ reflect: true }) progress: number = 0;\n /**\n * Progress variant\n * enum PROGRESS_VARIANTS\n * possible option `horizontal`\n */\n @Prop() variant: PROGRESS_VARIANTS = PROGRESS_VARIANTS.DEFAULT;\n /**\n * Size of progress\n * enum SIZE_VAR\n * possible options `XS | SM | MD | LG | XL`\n */\n @Prop() size: SIZE_VAR = SIZE_VAR.MD;\n\n // Update 'xv-progress-indicator-item' done status\n @Watch('progress')\n updateChildItems() {\n const items = this.el.children;\n const itemsCount = this.el.childElementCount;\n const progressPerItem = 100 / itemsCount;\n\n if (!items.length || !itemsCount) return;\n\n forEach(items, (item, index) => {\n const itemProgressStart = index * progressPerItem;\n let status: PROGRESS_ITEM_STATUS;\n const localProgress = Math.min(\n Math.max((this.progress - itemProgressStart) / progressPerItem, 0), 1\n ) * 100;\n\n if (localProgress >= 100) {\n status = PROGRESS_ITEM_STATUS.DONE;\n } else if (localProgress > 0) {\n status = PROGRESS_ITEM_STATUS.IN_PROGRESS;\n } else {\n status = PROGRESS_ITEM_STATUS.NO_STARTED;\n }\n\n // Set item current status\n (item as HTMLElement).setAttribute('status', status);\n\n // Update progress line\n const line = (item as HTMLElement)?.shadowRoot?.querySelector('.line') as HTMLElement;\n if (line) line.style.width = `${localProgress}%`;\n });\n }\n\n // Load initial done status\n componentDidLoad() {\n this.updateChildItems()\n }\n\n render() {\n return (\n <Host variant={this.variant} size={this.size} class={{ 'xv-progress-indicator': true }}>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export const XV_EXPANDABLE_KEY = 'expandable';
2
+ export const XV_TABLE_TAG = 'xv-table-v2';
3
+ //# sourceMappingURL=_vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_vars.js","sourceRoot":"","sources":["../../../src/components/xv-table/_vars.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC9C,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC","sourcesContent":["import { XV_SORT_DIR } from '../../types/enum';\n\nexport interface SelectRowDto {\n name: string;\n checked: boolean;\n value?: string | number | object;\n partial?: boolean;\n header?: boolean;\n expandable?: boolean;\n}\n\nexport const XV_EXPANDABLE_KEY = 'expandable';\nexport const XV_TABLE_TAG = 'xv-table-v2';\n\nexport interface XVTableSortDto {\n name?: string;\n value: XV_SORT_DIR;\n}\n"]}
@@ -0,0 +1,93 @@
1
+ @charset "UTF-8";
2
+ :host {
3
+ white-space: nowrap;
4
+ overflow: hidden;
5
+ text-overflow: ellipsis;
6
+ padding: var(--xv-table-padding-y) var(--xv-table-padding-x);
7
+ color: var(--text-primary, #333);
8
+ font-family: var(--ff-body, Tahoma);
9
+ font-size: 14px;
10
+ font-style: normal;
11
+ font-weight: 400;
12
+ line-height: 1.2;
13
+ letter-spacing: 0.16px;
14
+ transition: 0.25s ease-in-out background-color;
15
+ }
16
+
17
+ :host([multiline]) {
18
+ display: -webkit-box;
19
+ -webkit-line-clamp: 2;
20
+ -webkit-box-orient: vertical;
21
+ white-space: initial;
22
+ padding-bottom: 1px;
23
+ padding-top: 0;
24
+ line-height: 1.2;
25
+ }
26
+
27
+ :host([align=left]) {
28
+ text-align: left;
29
+ }
30
+
31
+ :host([align=right]) {
32
+ text-align: right;
33
+ }
34
+
35
+ :host([align=center]) {
36
+ text-align: center;
37
+ }
38
+
39
+ :host([sort]) {
40
+ position: relative;
41
+ cursor: pointer;
42
+ user-select: none;
43
+ }
44
+ :host([sort]):before, :host([sort]):after {
45
+ font-size: 12px;
46
+ line-height: 10px;
47
+ display: inline-flex;
48
+ flex-direction: column;
49
+ align-items: center;
50
+ justify-content: center;
51
+ position: absolute;
52
+ right: 8px;
53
+ pointer-events: none;
54
+ transition: 350ms ease-in-out opacity;
55
+ opacity: 0;
56
+ }
57
+ :host([sort]):before {
58
+ content: "▲";
59
+ top: 50%;
60
+ transform: translateY(calc(-50% - 5px));
61
+ }
62
+ :host([sort])::after {
63
+ content: "▼";
64
+ top: 50%;
65
+ transform: translateY(calc(-50% + 5px));
66
+ }
67
+
68
+ :host([sort]:hover) {
69
+ background-color: var(--layer-accent-hover-01, #E3E3E3);
70
+ }
71
+ :host([sort]:hover)::before, :host([sort]:hover)::after {
72
+ opacity: 1;
73
+ }
74
+
75
+ :host([sort=asc]) {
76
+ background-color: var(--layer-accent-active-01, #D1D1D1);
77
+ }
78
+ :host([sort=asc])::before {
79
+ opacity: 1;
80
+ }
81
+ :host([sort=asc])::after {
82
+ display: none;
83
+ }
84
+
85
+ :host([sort=desc]) {
86
+ background-color: var(--layer-accent-active-01, #D1D1D1);
87
+ }
88
+ :host([sort=desc])::before {
89
+ display: none;
90
+ }
91
+ :host([sort=desc])::after {
92
+ opacity: 1;
93
+ }
@@ -0,0 +1,160 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { forEach, uidGenerator } from "../../../utils/utils";
3
+ import { XV_SORT_DIR } from "../../../types/enum";
4
+ export class XvTableCell {
5
+ handleSort() {
6
+ if (this.sort === undefined)
7
+ return;
8
+ let sort = this.sort;
9
+ if (this.sort === '')
10
+ sort = XV_SORT_DIR.NONE;
11
+ this.sort = sort === XV_SORT_DIR.NONE ?
12
+ XV_SORT_DIR.ASC : sort === XV_SORT_DIR.ASC ?
13
+ XV_SORT_DIR.DESC : XV_SORT_DIR.NONE;
14
+ forEach(this.el.parentElement.children, (cell) => {
15
+ if (cell !== this.el && cell.hasAttribute('sort')) {
16
+ cell.setAttribute('sort', 'none');
17
+ }
18
+ });
19
+ if (!this.name)
20
+ this.name = uidGenerator();
21
+ this.sortChange.emit({ name: this.name, value: this.sort });
22
+ }
23
+ ;
24
+ render() {
25
+ return (h(Host, { key: '81ba9b0d8bd1652b30259af7a177b27185c49dee' }, h("slot", { key: '5b0517d3001ba92944f2032307541d7db6eb7b27' })));
26
+ }
27
+ static get is() { return "xv-table-v2-cell"; }
28
+ static get encapsulation() { return "shadow"; }
29
+ static get originalStyleUrls() {
30
+ return {
31
+ "$": ["xv-table-cell.scss"]
32
+ };
33
+ }
34
+ static get styleUrls() {
35
+ return {
36
+ "$": ["xv-table-cell.css"]
37
+ };
38
+ }
39
+ static get properties() {
40
+ return {
41
+ "multiline": {
42
+ "type": "boolean",
43
+ "attribute": "multiline",
44
+ "mutable": false,
45
+ "complexType": {
46
+ "original": "boolean",
47
+ "resolved": "boolean",
48
+ "references": {}
49
+ },
50
+ "required": false,
51
+ "optional": true,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": ""
55
+ },
56
+ "getter": false,
57
+ "setter": false,
58
+ "reflect": true
59
+ },
60
+ "name": {
61
+ "type": "string",
62
+ "attribute": "name",
63
+ "mutable": true,
64
+ "complexType": {
65
+ "original": "string",
66
+ "resolved": "string",
67
+ "references": {}
68
+ },
69
+ "required": false,
70
+ "optional": true,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": ""
74
+ },
75
+ "getter": false,
76
+ "setter": false,
77
+ "reflect": true
78
+ },
79
+ "align": {
80
+ "type": "string",
81
+ "attribute": "align",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "'left' | 'right' | 'center'",
85
+ "resolved": "\"center\" | \"left\" | \"right\"",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": true,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": ""
93
+ },
94
+ "getter": false,
95
+ "setter": false,
96
+ "reflect": true
97
+ },
98
+ "sort": {
99
+ "type": "string",
100
+ "attribute": "sort",
101
+ "mutable": true,
102
+ "complexType": {
103
+ "original": "XV_SORT_DIR | ''",
104
+ "resolved": "\"\" | XV_SORT_DIR.ASC | XV_SORT_DIR.DESC | XV_SORT_DIR.NONE",
105
+ "references": {
106
+ "XV_SORT_DIR": {
107
+ "location": "import",
108
+ "path": "../../../types/enum",
109
+ "id": "src/types/enum.ts::XV_SORT_DIR"
110
+ }
111
+ }
112
+ },
113
+ "required": false,
114
+ "optional": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": ""
118
+ },
119
+ "getter": false,
120
+ "setter": false,
121
+ "reflect": true
122
+ }
123
+ };
124
+ }
125
+ static get events() {
126
+ return [{
127
+ "method": "sortChange",
128
+ "name": "sortChange",
129
+ "bubbles": true,
130
+ "cancelable": true,
131
+ "composed": true,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": ""
135
+ },
136
+ "complexType": {
137
+ "original": "XVTableSortDto",
138
+ "resolved": "XVTableSortDto",
139
+ "references": {
140
+ "XVTableSortDto": {
141
+ "location": "import",
142
+ "path": "../_vars",
143
+ "id": "src/components/xv-table/_vars.ts::XVTableSortDto"
144
+ }
145
+ }
146
+ }
147
+ }];
148
+ }
149
+ static get elementRef() { return "el"; }
150
+ static get listeners() {
151
+ return [{
152
+ "name": "click",
153
+ "method": "handleSort",
154
+ "target": undefined,
155
+ "capture": false,
156
+ "passive": false
157
+ }];
158
+ }
159
+ }
160
+ //# sourceMappingURL=xv-table-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xv-table-cell.js","sourceRoot":"","sources":["../../../../src/components/xv-table/xv-table-cell/xv-table-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAE/F,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD,MAAM,OAAO,WAAW;IAStB,UAAU;QACR,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;YAAE,OAAO;QACpC,IAAI,IAAI,GAAqB,IAAI,CAAC,IAAI,CAAC;QACvC,IAAI,IAAI,CAAC,IAAI,KAAK,EAAE;YAAE,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAE9C,IAAI,CAAC,IAAI,GAAG,IAAI,KAAK,WAAW,CAAC,IAAI,CAAC,CAAC;YACrC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,GAAG,CAAC,CAAC;YAC1C,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC;QAExC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;YAC/C,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;gBAClD,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACpC,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,YAAY,EAAE,CAAC;QAC3C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9D,CAAC;IAAA,CAAC;IAEF,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YAAC,8DAAQ,CAAO,CACtB,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop, Event, EventEmitter, Listen } from '@stencil/core';\nimport { XVTableSortDto } from '../_vars';\nimport { forEach, uidGenerator } from '../../../utils/utils';\nimport { XV_SORT_DIR } from '../../../types/enum';\n\n@Component({\n tag: 'xv-table-v2-cell',\n styleUrl: 'xv-table-cell.scss',\n shadow: true,\n})\nexport class XvTableCell {\n @Element() el: HTMLElement;\n @Prop({ reflect: true }) multiline?: boolean;\n @Prop({ reflect: true, mutable: true }) name?: string;\n @Prop({ reflect: true }) align?: 'left' | 'right' | 'center';\n @Prop({ reflect: true, mutable: true }) sort?: XV_SORT_DIR | '';\n @Event({ eventName: 'sortChange' }) sortChange: EventEmitter<XVTableSortDto>;\n\n @Listen('click')\n handleSort() {\n if (this.sort === undefined) return;\n let sort: XV_SORT_DIR | '' = this.sort;\n if (this.sort === '') sort = XV_SORT_DIR.NONE;\n\n this.sort = sort === XV_SORT_DIR.NONE ?\n XV_SORT_DIR.ASC : sort === XV_SORT_DIR.ASC ?\n XV_SORT_DIR.DESC : XV_SORT_DIR.NONE;\n\n forEach(this.el.parentElement.children, (cell) => {\n if (cell !== this.el && cell.hasAttribute('sort')) {\n cell.setAttribute('sort', 'none');\n }\n });\n\n if (!this.name) this.name = uidGenerator();\n this.sortChange.emit({ name: this.name, value: this.sort });\n };\n\n render() {\n return (\n <Host><slot /></Host>\n );\n }\n}\n"]}
@@ -0,0 +1,58 @@
1
+ :host {
2
+ display: block;
3
+ position: relative;
4
+ transition: 0.25s ease-in-out background-color;
5
+ }
6
+ :host .expand-btn {
7
+ z-index: 9;
8
+ position: absolute;
9
+ left: max(10px, var(--xv-table-padding-x));
10
+ top: max(2px, var(--xv-table-padding-y) + 2px);
11
+ background-color: transparent;
12
+ cursor: pointer;
13
+ outline: none;
14
+ margin: 0;
15
+ padding: 0;
16
+ box-sizing: border-box;
17
+ display: block;
18
+ width: 8.5px;
19
+ height: 8.5px;
20
+ border-top: none;
21
+ border-left: none;
22
+ border-right: 2px solid var(--icon-primary, #333);
23
+ border-bottom: 2px solid var(--icon-primary, #333);
24
+ transform: rotate(45deg);
25
+ transform-origin: center center;
26
+ transition: 0.2s ease-in-out transform;
27
+ }
28
+ :host .expand-btn:disabled {
29
+ cursor: not-allowed;
30
+ opacity: 0.5;
31
+ }
32
+ :host .expand-btn.open {
33
+ transform: rotate(-135deg);
34
+ }
35
+ :host .expandableContent {
36
+ overflow: hidden;
37
+ margin: 0;
38
+ padding: 0;
39
+ max-height: 0;
40
+ transition: 250ms ease max-height;
41
+ }
42
+ :host .expandableContent.open {
43
+ max-height: 600px;
44
+ }
45
+ :host ::slotted([slot=expandable]) {
46
+ display: grid;
47
+ align-items: center;
48
+ }
49
+ :host ::slotted(xv-table-v2-row),
50
+ :host ::slotted([slot=expandable]) {
51
+ padding-inline-start: calc(max(10px, var(--xv-table-padding-x)) * 2 + 10px);
52
+ }
53
+ :host ::slotted([disabled]) {
54
+ pointer-events: none;
55
+ opacity: 0.4;
56
+ cursor: not-allowed;
57
+ user-select: none;
58
+ }
@@ -0,0 +1,76 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { XV_EXPANDABLE_KEY } from "../_vars";
3
+ import { setAttr } from "../../../utils/utils";
4
+ export class XvTableExpand {
5
+ constructor() {
6
+ this.open = false;
7
+ this.disabled = false;
8
+ this.handleExpand = () => {
9
+ this.open = !this.open;
10
+ };
11
+ }
12
+ render() {
13
+ return (h(Host, { key: '6176a4e0845dbae0f6e28b7a31110e8b2ce6b6d9' }, h("button", { key: 'a4d9b8ec62e9a791f24355cba0397af7c5ad8fa6', class: { 'expand-btn': true, open: this.open }, disabled: this.disabled, onClick: this.handleExpand }), h("slot", { key: '9d4d815a424de28794a334c1ffeac6613b3bf380', name: XV_EXPANDABLE_KEY }), h("div", { key: '4acce147075c142a356f3fcb5cbe9cc5ccaea4c0', class: { expandableContent: true, open: this.open } }, h("slot", { key: '0e46f8843b84ddd7bf362b3c5178373b466fb96e' }))));
14
+ }
15
+ componentDidLoad() {
16
+ setAttr(this.el.parentElement, XV_EXPANDABLE_KEY, true);
17
+ }
18
+ static get is() { return "xv-table-v2-expand"; }
19
+ static get encapsulation() { return "shadow"; }
20
+ static get originalStyleUrls() {
21
+ return {
22
+ "$": ["xv-table-expand.scss"]
23
+ };
24
+ }
25
+ static get styleUrls() {
26
+ return {
27
+ "$": ["xv-table-expand.css"]
28
+ };
29
+ }
30
+ static get properties() {
31
+ return {
32
+ "open": {
33
+ "type": "boolean",
34
+ "attribute": "open",
35
+ "mutable": true,
36
+ "complexType": {
37
+ "original": "boolean",
38
+ "resolved": "boolean",
39
+ "references": {}
40
+ },
41
+ "required": false,
42
+ "optional": false,
43
+ "docs": {
44
+ "tags": [],
45
+ "text": ""
46
+ },
47
+ "getter": false,
48
+ "setter": false,
49
+ "reflect": true,
50
+ "defaultValue": "false"
51
+ },
52
+ "disabled": {
53
+ "type": "boolean",
54
+ "attribute": "disabled",
55
+ "mutable": false,
56
+ "complexType": {
57
+ "original": "boolean",
58
+ "resolved": "boolean",
59
+ "references": {}
60
+ },
61
+ "required": false,
62
+ "optional": false,
63
+ "docs": {
64
+ "tags": [],
65
+ "text": ""
66
+ },
67
+ "getter": false,
68
+ "setter": false,
69
+ "reflect": true,
70
+ "defaultValue": "false"
71
+ }
72
+ };
73
+ }
74
+ static get elementRef() { return "el"; }
75
+ }
76
+ //# sourceMappingURL=xv-table-expand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xv-table-expand.js","sourceRoot":"","sources":["../../../../src/components/xv-table/xv-table-expand/xv-table-expand.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAO/C,MAAM,OAAO,aAAa;IAL1B;QAO0C,SAAI,GAAY,KAAK,CAAC;QACrC,aAAQ,GAAY,KAAK,CAAC;QAE3C,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACzB,CAAC,CAAC;KAoBH;IAlBC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,+DACE,KAAK,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAC9C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,YAAY,GAC1B;YACF,6DAAM,IAAI,EAAE,iBAAiB,GAAI;YAEjC,4DAAK,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;gBAAE,8DAAQ,CAAM,CACnE,CACR,CAAC;IACJ,CAAC;IAED,gBAAgB;QACd,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,iBAAiB,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop } from '@stencil/core';\nimport { XV_EXPANDABLE_KEY } from '../_vars';\nimport { setAttr } from '../../../utils/utils';\n\n@Component({\n tag: 'xv-table-v2-expand',\n styleUrl: 'xv-table-expand.scss',\n shadow: true,\n})\nexport class XvTableExpand {\n @Element() el: HTMLElement;\n @Prop({ reflect: true, mutable: true }) open: boolean = false;\n @Prop({ reflect: true }) disabled: boolean = false;\n\n private handleExpand = () => {\n this.open = !this.open;\n };\n\n render() {\n return (\n <Host>\n <button\n class={{ 'expand-btn': true, open: this.open }}\n disabled={this.disabled}\n onClick={this.handleExpand}\n />\n <slot name={XV_EXPANDABLE_KEY} />\n\n <div class={{ expandableContent: true, open: this.open }}><slot /></div>\n </Host>\n );\n }\n\n componentDidLoad() {\n setAttr(this.el.parentElement, XV_EXPANDABLE_KEY, true);\n }\n}\n"]}
@@ -0,0 +1,39 @@
1
+ :host {
2
+ display: grid;
3
+ grid-template-columns: var(--xv-table-cols-template, repeat(auto-fit, minmax(0, 1fr)));
4
+ border-bottom: 1px solid #E3E3E3;
5
+ border-right: 1px solid #E3E3E3;
6
+ border-left: 1px solid #E3E3E3;
7
+ min-height: var(--xv-table-min-height);
8
+ align-items: center;
9
+ align-content: center;
10
+ transition: 0.25s ease-in-out background-color;
11
+ }
12
+ :host .cell-control {
13
+ min-height: 20px;
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ }
18
+
19
+ :host([variant]) {
20
+ grid-template-columns: minmax(47.97px, min-content) var(--xv-table-cols-template, repeat(auto-fit, minmax(0, 1fr)));
21
+ }
22
+
23
+ :host([hover]:not([header]):hover) {
24
+ background-color: var(--layer-hover-01, #E9E9E9);
25
+ }
26
+
27
+ :host([checked]) {
28
+ background-color: var(--layer-selected-01, #E3E3E3);
29
+ }
30
+
31
+ :host([checked]:hover) {
32
+ background-color: var(--layer-selected-hover-01, #DADADA);
33
+ }
34
+
35
+ :host([header]) {
36
+ background-color: var(--layer-accent-01, #F7F7F7);
37
+ box-shadow: 0 0 0 1px #E3E3E3 inset;
38
+ border-bottom: none;
39
+ }