@xplortech/apollo-core 1.0.0-beta.17 → 1.0.0-beta.2

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 (459) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/build/style.css +2758 -1516
  3. package/dist/apollo-core/apollo-core.css +14 -4597
  4. package/dist/apollo-core/apollo-core.esm.js +1 -2
  5. package/dist/apollo-core/index.esm.js +0 -2
  6. package/dist/apollo-core/p-09b2f746.entry.js +1 -0
  7. package/dist/apollo-core/p-1b1e7207.entry.js +1 -0
  8. package/dist/apollo-core/p-20389bb6.entry.js +1 -0
  9. package/dist/apollo-core/p-25983fde.entry.js +1 -0
  10. package/dist/apollo-core/p-2f90296c.js +10 -0
  11. package/dist/apollo-core/p-4a348764.entry.js +1 -0
  12. package/dist/apollo-core/p-4e2b69e8.entry.js +1 -0
  13. package/dist/apollo-core/p-84bf6b2d.entry.js +1 -0
  14. package/dist/apollo-core/p-880c0359.entry.js +1 -0
  15. package/dist/apollo-core/p-8e47a5be.entry.js +1 -0
  16. package/dist/apollo-core/p-93958292.entry.js +1 -0
  17. package/dist/apollo-core/p-93c27db5.entry.js +1 -0
  18. package/dist/apollo-core/p-ad90fe4d.js +1 -2
  19. package/dist/apollo-core/p-b2327e2c.entry.js +1 -0
  20. package/dist/apollo-core/p-c3a12469.entry.js +1 -0
  21. package/dist/apollo-core/p-c55b5d9c.entry.js +1 -0
  22. package/dist/apollo-core/p-e369d7af.entry.js +1 -0
  23. package/dist/apollo-core/p-e60ecaef.entry.js +1 -0
  24. package/dist/apollo-core/p-f929c958.js +1 -0
  25. package/dist/cjs/apollo-core.cjs.js +3 -12
  26. package/dist/cjs/{index-000e170c.js → index-54ba5804.js} +216 -768
  27. package/dist/cjs/index.cjs.js +0 -2
  28. package/dist/cjs/loader.cjs.js +3 -6
  29. package/dist/cjs/regular-872f5226.js +16043 -0
  30. package/dist/cjs/v4-14140ff3.js +0 -2
  31. package/dist/cjs/xpl-application-shell.cjs.entry.js +13 -10
  32. package/dist/cjs/xpl-avatar_12.cjs.entry.js +299 -0
  33. package/dist/cjs/xpl-backdrop.cjs.entry.js +5 -3
  34. package/dist/cjs/xpl-button-row.cjs.entry.js +1 -6
  35. package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -10
  36. package/dist/cjs/xpl-divider.cjs.entry.js +1 -4
  37. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -16
  38. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +12 -14
  39. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -3
  40. package/dist/cjs/xpl-grid.cjs.entry.js +1 -3
  41. package/dist/cjs/xpl-input.cjs.entry.js +25 -22
  42. package/dist/cjs/xpl-list.cjs.entry.js +25 -4
  43. package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -3
  44. package/dist/cjs/xpl-pagination.cjs.entry.js +2 -7
  45. package/dist/cjs/xpl-select.cjs.entry.js +25 -43
  46. package/dist/cjs/xpl-toggle.cjs.entry.js +4 -9
  47. package/dist/collection/collection-manifest.json +3 -6
  48. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +109 -125
  49. package/dist/collection/components/xpl-avatar/xpl-avatar.js +144 -151
  50. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +28 -27
  51. package/dist/collection/components/xpl-badge/xpl-badge.js +39 -44
  52. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +5 -3
  53. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +5 -3
  54. package/dist/collection/components/xpl-button/xpl-button.js +188 -228
  55. package/dist/collection/components/xpl-button-row/xpl-button-row.js +104 -106
  56. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +171 -182
  57. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +126 -134
  58. package/dist/collection/components/xpl-content-area/xpl-content-area.js +31 -28
  59. package/dist/collection/components/xpl-divider/xpl-divider.js +23 -27
  60. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +41 -47
  61. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +22 -27
  62. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +55 -83
  63. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +161 -169
  64. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -2
  65. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +74 -76
  66. package/dist/collection/components/xpl-input/xpl-input.js +419 -397
  67. package/dist/collection/components/xpl-list/xpl-list.js +77 -43
  68. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +54 -48
  69. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +49 -48
  70. package/dist/collection/components/xpl-pagination/xpl-pagination.js +128 -117
  71. package/dist/collection/components/xpl-radio/xpl-radio.js +148 -158
  72. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +4 -3
  73. package/dist/collection/components/xpl-select/xpl-select.js +235 -296
  74. package/dist/collection/components/xpl-table/xpl-table.js +148 -215
  75. package/dist/collection/components/xpl-tag/xpl-tag.js +25 -25
  76. package/dist/collection/components/xpl-toggle/xpl-toggle.js +135 -138
  77. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +52 -79
  78. package/dist/custom-elements/index.d.ts +219 -0
  79. package/dist/custom-elements/index.js +20201 -0
  80. package/dist/esm/apollo-core.js +3 -9
  81. package/dist/esm/{index-56581b5c.js → index-3df6db84.js} +217 -768
  82. package/dist/esm/index.js +0 -2
  83. package/dist/esm/loader.js +3 -6
  84. package/dist/esm/polyfills/css-shim.js +1 -1
  85. package/dist/esm/regular-86225e9d.js +16041 -0
  86. package/dist/esm/v4-929670b7.js +0 -2
  87. package/dist/esm/xpl-application-shell.entry.js +13 -10
  88. package/dist/esm/xpl-avatar_12.entry.js +284 -0
  89. package/dist/esm/xpl-backdrop.entry.js +5 -3
  90. package/dist/esm/xpl-button-row.entry.js +1 -6
  91. package/dist/esm/xpl-choicelist.entry.js +1 -10
  92. package/dist/esm/xpl-divider.entry.js +1 -4
  93. package/dist/esm/xpl-dropdown-group_3.entry.js +4 -16
  94. package/dist/esm/xpl-dropdown_2.entry.js +12 -14
  95. package/dist/esm/xpl-grid-item.entry.js +1 -3
  96. package/dist/esm/xpl-grid.entry.js +1 -3
  97. package/dist/esm/xpl-input.entry.js +25 -22
  98. package/dist/esm/xpl-list.entry.js +25 -4
  99. package/dist/esm/xpl-main-nav.entry.js +4 -3
  100. package/dist/esm/xpl-pagination.entry.js +2 -7
  101. package/dist/esm/xpl-select.entry.js +25 -43
  102. package/dist/esm/xpl-toggle.entry.js +4 -9
  103. package/dist/stories/application-shell.stories.js +8 -18
  104. package/dist/stories/avatar.stories.js +0 -1
  105. package/dist/stories/backdrop.stories.js +0 -1
  106. package/dist/stories/badge.stories.js +0 -1
  107. package/dist/stories/breadcrumbs.stories.js +0 -1
  108. package/dist/stories/button-row.stories.js +0 -1
  109. package/dist/stories/button.stories.js +5 -18
  110. package/dist/stories/checkbox.stories.js +0 -1
  111. package/dist/stories/choicelist.stories.js +0 -1
  112. package/dist/stories/content-area.stories.js +0 -1
  113. package/dist/stories/divider.stories.js +0 -1
  114. package/dist/stories/dropdown.stories.js +65 -74
  115. package/dist/stories/grid.stories.js +0 -1
  116. package/dist/stories/input.stories.js +0 -1
  117. package/dist/stories/list.stories.js +2 -3
  118. package/dist/stories/main-nav.stories.js +0 -1
  119. package/dist/stories/pagination.stories.js +0 -1
  120. package/dist/stories/radio.stories.js +0 -1
  121. package/dist/stories/secondary-nav.stories.js +0 -1
  122. package/dist/stories/select.stories.js +32 -109
  123. package/dist/stories/table.stories.js +7 -24
  124. package/dist/stories/tabs.stories.js +0 -1
  125. package/dist/stories/toggle.stories.js +0 -1
  126. package/dist/stories/utility-bar.stories.js +6 -2
  127. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/application-shell.stories.d.ts +5 -14
  128. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button.stories.d.ts +2 -10
  129. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/dropdown.stories.d.ts +1 -17
  130. package/dist/types/Users/fernandogelin/Projects/apollo-admin/packages/apollo/.stencil/stories/select.stories.d.ts +74 -0
  131. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/table.stories.d.ts +1 -22
  132. package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -6
  133. package/dist/types/components/xpl-button/xpl-button.d.ts +0 -6
  134. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -2
  135. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +0 -1
  136. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -7
  137. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -7
  138. package/dist/types/components/xpl-input/xpl-input.d.ts +2 -0
  139. package/dist/types/components/xpl-list/xpl-list.d.ts +3 -2
  140. package/dist/types/components/xpl-select/xpl-select.d.ts +1 -16
  141. package/dist/types/components/xpl-table/xpl-table.d.ts +7 -29
  142. package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -5
  143. package/dist/types/components.d.ts +21 -276
  144. package/dist/types/stencil-public-runtime.d.ts +23 -97
  145. package/loader/index.d.ts +1 -9
  146. package/loader/package.json +0 -1
  147. package/package.json +28 -21
  148. package/LICENSE +0 -21
  149. package/dist/apollo-core/apollo-core.esm.js.map +0 -1
  150. package/dist/apollo-core/index.esm.js.map +0 -1
  151. package/dist/apollo-core/p-1fa46bc3.entry.js +0 -2
  152. package/dist/apollo-core/p-1fa46bc3.entry.js.map +0 -1
  153. package/dist/apollo-core/p-29f4679d.entry.js +0 -2
  154. package/dist/apollo-core/p-29f4679d.entry.js.map +0 -1
  155. package/dist/apollo-core/p-3f3cc34e.entry.js +0 -2
  156. package/dist/apollo-core/p-3f3cc34e.entry.js.map +0 -1
  157. package/dist/apollo-core/p-5372bf3e.entry.js +0 -2
  158. package/dist/apollo-core/p-5372bf3e.entry.js.map +0 -1
  159. package/dist/apollo-core/p-5ceaec87.entry.js +0 -2
  160. package/dist/apollo-core/p-5ceaec87.entry.js.map +0 -1
  161. package/dist/apollo-core/p-60d4d252.entry.js +0 -2
  162. package/dist/apollo-core/p-60d4d252.entry.js.map +0 -1
  163. package/dist/apollo-core/p-6797b2b7.entry.js +0 -7
  164. package/dist/apollo-core/p-6797b2b7.entry.js.map +0 -1
  165. package/dist/apollo-core/p-6acc4122.entry.js +0 -2
  166. package/dist/apollo-core/p-6acc4122.entry.js.map +0 -1
  167. package/dist/apollo-core/p-787bac91.entry.js +0 -2
  168. package/dist/apollo-core/p-787bac91.entry.js.map +0 -1
  169. package/dist/apollo-core/p-7a8e818a.entry.js +0 -2
  170. package/dist/apollo-core/p-7a8e818a.entry.js.map +0 -1
  171. package/dist/apollo-core/p-807d8de9.entry.js +0 -2
  172. package/dist/apollo-core/p-807d8de9.entry.js.map +0 -1
  173. package/dist/apollo-core/p-ad90fe4d.js.map +0 -1
  174. package/dist/apollo-core/p-bcb81e30.entry.js +0 -2
  175. package/dist/apollo-core/p-bcb81e30.entry.js.map +0 -1
  176. package/dist/apollo-core/p-db29ebe0.entry.js +0 -2
  177. package/dist/apollo-core/p-db29ebe0.entry.js.map +0 -1
  178. package/dist/apollo-core/p-e0541e23.entry.js +0 -2
  179. package/dist/apollo-core/p-e0541e23.entry.js.map +0 -1
  180. package/dist/apollo-core/p-e215fc5f.entry.js +0 -2
  181. package/dist/apollo-core/p-e215fc5f.entry.js.map +0 -1
  182. package/dist/apollo-core/p-e8953b60.js +0 -3
  183. package/dist/apollo-core/p-e8953b60.js.map +0 -1
  184. package/dist/apollo-core/p-efa8a79d.entry.js +0 -2
  185. package/dist/apollo-core/p-efa8a79d.entry.js.map +0 -1
  186. package/dist/cjs/apollo-core.cjs.js.map +0 -1
  187. package/dist/cjs/index-000e170c.js.map +0 -1
  188. package/dist/cjs/index.cjs.js.map +0 -1
  189. package/dist/cjs/loader.cjs.js.map +0 -1
  190. package/dist/cjs/v4-14140ff3.js.map +0 -1
  191. package/dist/cjs/xpl-application-shell.cjs.entry.js.map +0 -1
  192. package/dist/cjs/xpl-avatar_15.cjs.entry.js +0 -2278
  193. package/dist/cjs/xpl-avatar_15.cjs.entry.js.map +0 -1
  194. package/dist/cjs/xpl-backdrop.cjs.entry.js.map +0 -1
  195. package/dist/cjs/xpl-button-row.cjs.entry.js.map +0 -1
  196. package/dist/cjs/xpl-choicelist.cjs.entry.js.map +0 -1
  197. package/dist/cjs/xpl-divider.cjs.entry.js.map +0 -1
  198. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +0 -1
  199. package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +0 -1
  200. package/dist/cjs/xpl-grid-item.cjs.entry.js.map +0 -1
  201. package/dist/cjs/xpl-grid.cjs.entry.js.map +0 -1
  202. package/dist/cjs/xpl-input.cjs.entry.js.map +0 -1
  203. package/dist/cjs/xpl-list.cjs.entry.js.map +0 -1
  204. package/dist/cjs/xpl-main-nav.cjs.entry.js.map +0 -1
  205. package/dist/cjs/xpl-pagination.cjs.entry.js.map +0 -1
  206. package/dist/cjs/xpl-select.cjs.entry.js.map +0 -1
  207. package/dist/cjs/xpl-toggle.cjs.entry.js.map +0 -1
  208. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +0 -1
  209. package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +0 -1
  210. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +0 -1
  211. package/dist/collection/components/xpl-badge/xpl-badge.js.map +0 -1
  212. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +0 -1
  213. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +0 -1
  214. package/dist/collection/components/xpl-button/xpl-button.js.map +0 -1
  215. package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +0 -1
  216. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +0 -1
  217. package/dist/collection/components/xpl-choicelist/choice.js +0 -2
  218. package/dist/collection/components/xpl-choicelist/choice.js.map +0 -1
  219. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +0 -1
  220. package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +0 -1
  221. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +0 -8
  222. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js.map +0 -1
  223. package/dist/collection/components/xpl-data-card/xpl-data-card.js +0 -162
  224. package/dist/collection/components/xpl-data-card/xpl-data-card.js.map +0 -1
  225. package/dist/collection/components/xpl-divider/xpl-divider.js.map +0 -1
  226. package/dist/collection/components/xpl-dropdown/dropdownoption.js +0 -2
  227. package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +0 -1
  228. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +0 -1
  229. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +0 -1
  230. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +0 -1
  231. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +0 -1
  232. package/dist/collection/components/xpl-grid/xpl-grid.js.map +0 -1
  233. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +0 -1
  234. package/dist/collection/components/xpl-icon/xpl-icon.css +0 -5
  235. package/dist/collection/components/xpl-icon/xpl-icon.js +0 -93
  236. package/dist/collection/components/xpl-icon/xpl-icon.js.map +0 -1
  237. package/dist/collection/components/xpl-input/xpl-input.js.map +0 -1
  238. package/dist/collection/components/xpl-list/listitem.js +0 -2
  239. package/dist/collection/components/xpl-list/listitem.js.map +0 -1
  240. package/dist/collection/components/xpl-list/xpl-list.js.map +0 -1
  241. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +0 -1
  242. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +0 -1
  243. package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +0 -1
  244. package/dist/collection/components/xpl-radio/xpl-radio.js.map +0 -1
  245. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +0 -1
  246. package/dist/collection/components/xpl-select/xpl-select.js.map +0 -1
  247. package/dist/collection/components/xpl-table/xpl-table.js.map +0 -1
  248. package/dist/collection/components/xpl-tag/xpl-tag.js.map +0 -1
  249. package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +0 -1
  250. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +0 -1
  251. package/dist/components/index.d.ts +0 -39
  252. package/dist/components/index.js +0 -82
  253. package/dist/components/index.js.map +0 -1
  254. package/dist/components/v4.js +0 -77
  255. package/dist/components/v4.js.map +0 -1
  256. package/dist/components/xpl-application-shell.d.ts +0 -11
  257. package/dist/components/xpl-application-shell.js +0 -80
  258. package/dist/components/xpl-application-shell.js.map +0 -1
  259. package/dist/components/xpl-avatar.d.ts +0 -11
  260. package/dist/components/xpl-avatar.js +0 -8
  261. package/dist/components/xpl-avatar.js.map +0 -1
  262. package/dist/components/xpl-avatar2.js +0 -51
  263. package/dist/components/xpl-avatar2.js.map +0 -1
  264. package/dist/components/xpl-backdrop.d.ts +0 -11
  265. package/dist/components/xpl-backdrop.js +0 -8
  266. package/dist/components/xpl-backdrop.js.map +0 -1
  267. package/dist/components/xpl-backdrop2.js +0 -35
  268. package/dist/components/xpl-backdrop2.js.map +0 -1
  269. package/dist/components/xpl-badge.d.ts +0 -11
  270. package/dist/components/xpl-badge.js +0 -8
  271. package/dist/components/xpl-badge.js.map +0 -1
  272. package/dist/components/xpl-badge2.js +0 -38
  273. package/dist/components/xpl-badge2.js.map +0 -1
  274. package/dist/components/xpl-breadcrumb-item.d.ts +0 -11
  275. package/dist/components/xpl-breadcrumb-item.js +0 -36
  276. package/dist/components/xpl-breadcrumb-item.js.map +0 -1
  277. package/dist/components/xpl-breadcrumbs.d.ts +0 -11
  278. package/dist/components/xpl-breadcrumbs.js +0 -31
  279. package/dist/components/xpl-breadcrumbs.js.map +0 -1
  280. package/dist/components/xpl-button-row.d.ts +0 -11
  281. package/dist/components/xpl-button-row.js +0 -50
  282. package/dist/components/xpl-button-row.js.map +0 -1
  283. package/dist/components/xpl-button.d.ts +0 -11
  284. package/dist/components/xpl-button.js +0 -8
  285. package/dist/components/xpl-button.js.map +0 -1
  286. package/dist/components/xpl-button2.js +0 -85
  287. package/dist/components/xpl-button2.js.map +0 -1
  288. package/dist/components/xpl-checkbox.d.ts +0 -11
  289. package/dist/components/xpl-checkbox.js +0 -8
  290. package/dist/components/xpl-checkbox.js.map +0 -1
  291. package/dist/components/xpl-checkbox2.js +0 -59
  292. package/dist/components/xpl-checkbox2.js.map +0 -1
  293. package/dist/components/xpl-choicelist.d.ts +0 -11
  294. package/dist/components/xpl-choicelist.js +0 -85
  295. package/dist/components/xpl-choicelist.js.map +0 -1
  296. package/dist/components/xpl-content-area.d.ts +0 -11
  297. package/dist/components/xpl-content-area.js +0 -34
  298. package/dist/components/xpl-content-area.js.map +0 -1
  299. package/dist/components/xpl-dashboard.d.ts +0 -11
  300. package/dist/components/xpl-dashboard.js +0 -31
  301. package/dist/components/xpl-dashboard.js.map +0 -1
  302. package/dist/components/xpl-data-card.d.ts +0 -11
  303. package/dist/components/xpl-data-card.js +0 -80
  304. package/dist/components/xpl-data-card.js.map +0 -1
  305. package/dist/components/xpl-divider.d.ts +0 -11
  306. package/dist/components/xpl-divider.js +0 -36
  307. package/dist/components/xpl-divider.js.map +0 -1
  308. package/dist/components/xpl-dropdown-group.d.ts +0 -11
  309. package/dist/components/xpl-dropdown-group.js +0 -8
  310. package/dist/components/xpl-dropdown-group.js.map +0 -1
  311. package/dist/components/xpl-dropdown-group2.js +0 -69
  312. package/dist/components/xpl-dropdown-group2.js.map +0 -1
  313. package/dist/components/xpl-dropdown-heading.d.ts +0 -11
  314. package/dist/components/xpl-dropdown-heading.js +0 -8
  315. package/dist/components/xpl-dropdown-heading.js.map +0 -1
  316. package/dist/components/xpl-dropdown-heading2.js +0 -31
  317. package/dist/components/xpl-dropdown-heading2.js.map +0 -1
  318. package/dist/components/xpl-dropdown-option.d.ts +0 -11
  319. package/dist/components/xpl-dropdown-option.js +0 -8
  320. package/dist/components/xpl-dropdown-option.js.map +0 -1
  321. package/dist/components/xpl-dropdown-option2.js +0 -89
  322. package/dist/components/xpl-dropdown-option2.js.map +0 -1
  323. package/dist/components/xpl-dropdown.d.ts +0 -11
  324. package/dist/components/xpl-dropdown.js +0 -8
  325. package/dist/components/xpl-dropdown.js.map +0 -1
  326. package/dist/components/xpl-dropdown2.js +0 -147
  327. package/dist/components/xpl-dropdown2.js.map +0 -1
  328. package/dist/components/xpl-grid-item.d.ts +0 -11
  329. package/dist/components/xpl-grid-item.js +0 -45
  330. package/dist/components/xpl-grid-item.js.map +0 -1
  331. package/dist/components/xpl-grid.d.ts +0 -11
  332. package/dist/components/xpl-grid.js +0 -50
  333. package/dist/components/xpl-grid.js.map +0 -1
  334. package/dist/components/xpl-icon.d.ts +0 -11
  335. package/dist/components/xpl-icon.js +0 -8
  336. package/dist/components/xpl-icon.js.map +0 -1
  337. package/dist/components/xpl-icon2.js +0 -1850
  338. package/dist/components/xpl-icon2.js.map +0 -1
  339. package/dist/components/xpl-input.d.ts +0 -11
  340. package/dist/components/xpl-input.js +0 -2574
  341. package/dist/components/xpl-input.js.map +0 -1
  342. package/dist/components/xpl-list.d.ts +0 -11
  343. package/dist/components/xpl-list.js +0 -73
  344. package/dist/components/xpl-list.js.map +0 -1
  345. package/dist/components/xpl-main-nav.d.ts +0 -11
  346. package/dist/components/xpl-main-nav.js +0 -44
  347. package/dist/components/xpl-main-nav.js.map +0 -1
  348. package/dist/components/xpl-nav-item.d.ts +0 -11
  349. package/dist/components/xpl-nav-item.js +0 -44
  350. package/dist/components/xpl-nav-item.js.map +0 -1
  351. package/dist/components/xpl-pagination.d.ts +0 -11
  352. package/dist/components/xpl-pagination.js +0 -100
  353. package/dist/components/xpl-pagination.js.map +0 -1
  354. package/dist/components/xpl-radio.d.ts +0 -11
  355. package/dist/components/xpl-radio.js +0 -8
  356. package/dist/components/xpl-radio.js.map +0 -1
  357. package/dist/components/xpl-radio2.js +0 -57
  358. package/dist/components/xpl-radio2.js.map +0 -1
  359. package/dist/components/xpl-secondary-nav.d.ts +0 -11
  360. package/dist/components/xpl-secondary-nav.js +0 -31
  361. package/dist/components/xpl-secondary-nav.js.map +0 -1
  362. package/dist/components/xpl-select.d.ts +0 -11
  363. package/dist/components/xpl-select.js +0 -704
  364. package/dist/components/xpl-select.js.map +0 -1
  365. package/dist/components/xpl-table.d.ts +0 -11
  366. package/dist/components/xpl-table.js +0 -170
  367. package/dist/components/xpl-table.js.map +0 -1
  368. package/dist/components/xpl-tag.d.ts +0 -11
  369. package/dist/components/xpl-tag.js +0 -8
  370. package/dist/components/xpl-tag.js.map +0 -1
  371. package/dist/components/xpl-tag2.js +0 -33
  372. package/dist/components/xpl-tag2.js.map +0 -1
  373. package/dist/components/xpl-toggle.d.ts +0 -11
  374. package/dist/components/xpl-toggle.js +0 -61
  375. package/dist/components/xpl-toggle.js.map +0 -1
  376. package/dist/components/xpl-utility-bar.d.ts +0 -11
  377. package/dist/components/xpl-utility-bar.js +0 -55
  378. package/dist/components/xpl-utility-bar.js.map +0 -1
  379. package/dist/esm/apollo-core.js.map +0 -1
  380. package/dist/esm/index-56581b5c.js.map +0 -1
  381. package/dist/esm/index.js.map +0 -1
  382. package/dist/esm/loader.js.map +0 -1
  383. package/dist/esm/v4-929670b7.js.map +0 -1
  384. package/dist/esm/xpl-application-shell.entry.js.map +0 -1
  385. package/dist/esm/xpl-avatar_15.entry.js +0 -2260
  386. package/dist/esm/xpl-avatar_15.entry.js.map +0 -1
  387. package/dist/esm/xpl-backdrop.entry.js.map +0 -1
  388. package/dist/esm/xpl-button-row.entry.js.map +0 -1
  389. package/dist/esm/xpl-choicelist.entry.js.map +0 -1
  390. package/dist/esm/xpl-divider.entry.js.map +0 -1
  391. package/dist/esm/xpl-dropdown-group_3.entry.js.map +0 -1
  392. package/dist/esm/xpl-dropdown_2.entry.js.map +0 -1
  393. package/dist/esm/xpl-grid-item.entry.js.map +0 -1
  394. package/dist/esm/xpl-grid.entry.js.map +0 -1
  395. package/dist/esm/xpl-input.entry.js.map +0 -1
  396. package/dist/esm/xpl-list.entry.js.map +0 -1
  397. package/dist/esm/xpl-main-nav.entry.js.map +0 -1
  398. package/dist/esm/xpl-pagination.entry.js.map +0 -1
  399. package/dist/esm/xpl-select.entry.js.map +0 -1
  400. package/dist/esm/xpl-toggle.entry.js.map +0 -1
  401. package/dist/stories/application-shell.stories.js.map +0 -1
  402. package/dist/stories/avatar.stories.js.map +0 -1
  403. package/dist/stories/backdrop.stories.js.map +0 -1
  404. package/dist/stories/badge.stories.js.map +0 -1
  405. package/dist/stories/breadcrumbs.stories.js.map +0 -1
  406. package/dist/stories/button-row.stories.js.map +0 -1
  407. package/dist/stories/button.stories.js.map +0 -1
  408. package/dist/stories/checkbox.stories.js.map +0 -1
  409. package/dist/stories/choicelist.stories.js.map +0 -1
  410. package/dist/stories/content-area.stories.js.map +0 -1
  411. package/dist/stories/dashboard.stories.js +0 -51
  412. package/dist/stories/dashboard.stories.js.map +0 -1
  413. package/dist/stories/data-card.stories.js +0 -70
  414. package/dist/stories/data-card.stories.js.map +0 -1
  415. package/dist/stories/divider.stories.js.map +0 -1
  416. package/dist/stories/dropdown.stories.js.map +0 -1
  417. package/dist/stories/grid.stories.js.map +0 -1
  418. package/dist/stories/icons.stories.js +0 -69
  419. package/dist/stories/icons.stories.js.map +0 -1
  420. package/dist/stories/input.stories.js.map +0 -1
  421. package/dist/stories/list.stories.js.map +0 -1
  422. package/dist/stories/main-nav.stories.js.map +0 -1
  423. package/dist/stories/pagination.stories.js.map +0 -1
  424. package/dist/stories/radio.stories.js.map +0 -1
  425. package/dist/stories/secondary-nav.stories.js.map +0 -1
  426. package/dist/stories/select.stories.js.map +0 -1
  427. package/dist/stories/table.stories.js.map +0 -1
  428. package/dist/stories/tabs.stories.js.map +0 -1
  429. package/dist/stories/toggle.stories.js.map +0 -1
  430. package/dist/stories/utility-bar.stories.js.map +0 -1
  431. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dashboard.stories.d.ts +0 -31
  432. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/data-card.stories.d.ts +0 -71
  433. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/icons.stories.d.ts +0 -77
  434. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +0 -134
  435. package/dist/types/components/xpl-choicelist/choice.d.ts +0 -6
  436. package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +0 -3
  437. package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +0 -38
  438. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +0 -11
  439. package/dist/types/components/xpl-icon/xpl-icon.d.ts +0 -17
  440. package/dist/types/components/xpl-list/listitem.d.ts +0 -16
  441. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
  442. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
  443. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
  444. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
  445. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
  446. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
  447. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
  448. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
  449. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
  450. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
  451. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/input.stories.d.ts +0 -0
  452. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/list.stories.d.ts +0 -0
  453. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
  454. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  455. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
  456. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
  457. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  458. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
  459. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/utility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AAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAC/B,CAAC,CACG,EACX;KACL,CAAC,EACFA,oBACI,OAAO,EAAE,IAAI,CAAC,MAAM,EACpB,KAAK,EAAC,qBAAqB,IAE3BA,6BAAiB,EACjBA,iBAAK,OAAO,EAAC,WAAW,iBAAa,MAAM,IACvCA,+BACc,SAAS,EACnB,CAAC,EAAC,oHAAoH,eAC5G,SAAS,GACrB,CACA,CACD,CACP,CACJ,CACJ,CACH,EACT;GACL;;;;;","names":["h","Host"],"sources":["./src/components/components/xpl-pagination/xpl-pagination.tsx"],"sourcesContent":["import {\n Component,\n Host,\n h,\n Event,\n EventEmitter,\n Prop,\n State,\n Method,\n} from '@stencil/core';\n\n@Component({\n tag: 'xpl-pagination',\n})\nexport class XplPagination {\n @Prop() total: number;\n @Prop() perPage: number;\n @Prop() waitForCallback: boolean;\n @State() current: number = 1;\n\n @Event() page: EventEmitter;\n\n /**\n * Calling `goto` with a page number (which should probably be\n * taken from the `page` event) updates the pagination's state\n * and re-renders it, showing the appropriate buttons given the current page.\n * @param n\n */\n @Method()\n async goto(n: number) {\n this.current = n;\n }\n\n /**\n * Private `_goto` method respects the `waitForCallback` prop --\n * it will always emit the `page` event, but won't actually update\n * the state of what the current page is, leaving that to the caller\n * to update once (presumably) some other data has loaded.\n */\n private _goto = (n: number) => {\n this.page.emit(n);\n if (!this.waitForCallback) {\n this.current = n;\n }\n };\n\n private goPrev = () => {\n if (this.current > 1) this._goto(this.current - 1);\n };\n\n private goNext = () => {\n const numPages = Math.ceil(this.total / this.perPage);\n if (this.current < numPages) this._goto(this.current + 1);\n };\n\n render() {\n const numPages = Math.ceil(this.total / this.perPage);\n\n let showing: (number | '...')[] = [1];\n if (numPages < 7) showing = [1, 2, 3, 4, 5, 6];\n if (this.current <= 3 || this.current >= numPages - 2) {\n showing = [1, 2, 3, '...', numPages - 2, numPages - 1, numPages];\n } else {\n showing = [\n 1,\n '...',\n this.current - 1,\n this.current,\n this.current + 1,\n '...',\n numPages,\n ];\n }\n\n const showingFirst = (this.current - 1) * this.perPage + 1;\n const showingLast = Math.min(\n showingFirst + this.perPage - 1,\n this.total\n );\n\n return (\n <Host>\n <div class=\"xpl-pagination\">\n <div>\n <p>\n Showing <span>{showingFirst}</span> to{' '}\n <span>{showingLast}</span> of{' '}\n <span>{this.total}</span> results\n </p>\n </div>\n <div>\n <nav aria-label=\"Pagination\">\n <button\n onClick={this.goPrev}\n class=\"xpl-pagination-prev\"\n >\n <span>Previous</span>\n <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path\n fill-rule=\"evenodd\"\n d=\"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n </button>\n {showing.map((n) => {\n if (n === '...') {\n return (\n <span class=\"xpl-pagination-ellipsis\">\n ...\n </span>\n );\n }\n if (n === this.current) {\n return (\n <button\n aria-current=\"page\"\n class=\"xpl-pagination-current\"\n >\n {n}\n </button>\n );\n }\n return (\n <button onClick={() => this._goto(n)}>\n {n}\n </button>\n );\n })}\n <button\n onClick={this.goNext}\n class=\"xpl-pagination-next\"\n >\n <span>Next</span>\n <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path\n fill-rule=\"evenodd\"\n d=\"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n </button>\n </nav>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"xpl-select.entry.cjs.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,qBAAqB,CAAC;AAC5C;AACA;AACA,IAAI,G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L;;;;;;;;","names":["global","uuid","throttle","h","Host"],"sources":["./node_modules/lodash.throttle/index.js","./src/components/components/xpl-select/xpl-select.tsx"],"sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = throttle;\n","import { v4 as uuid } from 'uuid';\nimport {\n Component,\n Host,\n h,\n Prop,\n State,\n Event,\n EventEmitter,\n Watch,\n} from '@stencil/core';\nimport throttle from 'lodash.throttle';\nimport type { DropdownItem } from '../xpl-dropdown/dropdownoption';\n\nfunction tagWidth(text: string): number {\n const context = document.createElement('canvas').getContext('2d');\n context.font =\n \"14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif\";\n return context.measureText(text).width + 44; // = text + l/r padding + margin-right\n}\n\n@Component({\n tag: 'xpl-select',\n})\nexport class XplSelect {\n /**\n * An array of choices for the user to choose from.\n * Each choice should be of the form:\n * {\n * label: string;\n * href?: string;\n * value?: string;\n * isGroupHeading?: boolean;\n * }\n */\n @Prop() choices?: DropdownItem[] = [];\n /**\n * Optional text that appears below the input label.\n */\n @Prop() description?: string;\n @Prop() disabled?: boolean;\n /**\n * If an empty string (attribute present with no value),\n * will display visually as an error. If a string is\n * included, will display visually as an error and include\n * the value as an error message.\n */\n @Prop() error?: string;\n\n /**\n * The label that appears above the select dropdown\n */\n @Prop() label?: string;\n /**\n * Whether to allow a single choice or multiple choices.\n */\n @Prop() mode?: 'single' | 'multi' = 'single';\n\n /**\n * The name of the hidden input field that contains the selected option's value(s)\n */\n @Prop() name?: string;\n\n @Prop() placeholder: string;\n /**\n * Only used in multi-choice selects. If `true`,\n * badges representing selections that would overflow the\n * container are replaced with \"+x more\" (where x is the\n * number not shown). If `false`, the container's height will\n * adjust to show all badges representing selections.\n */\n @Prop() truncate?: boolean = true;\n\n @Prop() selectedValues?: string | string[];\n\n /**\n * Emits the value of the selected option in the select menu on change\n */\n @Event() selectChange: EventEmitter<string>;\n\n @State() active: boolean = false;\n @State() id: string = uuid();\n @State() keepFocus: boolean = false;\n @State() selected: boolean[];\n @State() value: string = '';\n @State() displayValue: string = '';\n // infinity isn't real, it's just a mathematical construct, it can't hurt you\n @State() visibleChoices: number = Infinity;\n\n private container!: HTMLElement;\n\n private dropdown: HTMLXplDropdownElement;\n\n componentWillLoad() {\n this.selected =\n this.choices && this.choices.length > 0\n ? this.choices.map(() => false)\n : [];\n\n if (this.selectedValues) {\n const isSingleMode = this.mode === 'single';\n\n if (isSingleMode) {\n this.choices.forEach((choice) => {\n const shouldBeSelected =\n choice.value.includes(this.selectedValues as string) ||\n choice.label.includes(this.selectedValues as string);\n\n if (shouldBeSelected) choice.isSelected = true;\n });\n } else {\n this.choices.forEach(({ options }) => {\n options.forEach((option) => {\n const shouldBeSelected = this.selectedValues.includes(\n option.value || option.label\n );\n\n if (shouldBeSelected) option.isSelected = true;\n });\n });\n }\n\n this.update();\n }\n\n window.addEventListener('click', (e: MouseEvent) => {\n const el = e.target as HTMLElement;\n const select = el.closest('.xpl-select');\n if (select === null || select !== this.container) {\n this.active = false;\n }\n });\n\n window.addEventListener(\n 'resize',\n throttle(() => {\n this.maybeTruncateChoices();\n }, 250)\n );\n }\n componentDidLoad() {\n this.dropdown = this.container.querySelector('xpl-dropdown');\n }\n\n private maybeTruncateChoices(): void {\n if (this.mode === 'single' || !this.truncate) return;\n\n const containerWidth = this.container.getBoundingClientRect().width;\n\n let visibleChoices = 0;\n let visibleChoicesWidth = 0;\n\n const actualNumSelected = this.selected.filter((a) => a).length;\n for (let i = 0; i < actualNumSelected; i++) {\n visibleChoicesWidth += tagWidth(this.getDisplayValue(i));\n if (visibleChoicesWidth > containerWidth - 140) break;\n visibleChoices++;\n }\n\n if (visibleChoices >= actualNumSelected) visibleChoices = Infinity;\n if (visibleChoices < 1) visibleChoices = 1;\n\n this.visibleChoices = visibleChoices;\n }\n\n private flattenChoices(): DropdownItem[] {\n return this.choices.reduce(\n (acc, curr) => [\n ...acc,\n ...(curr.groupName ? curr.options : [curr]),\n ],\n []\n );\n }\n private getDisplayValue(i: number): string {\n return this.flattenChoices()[i].label || this.flattenChoices()[i].value;\n }\n\n private getActualValue(i: number): string {\n return this.flattenChoices()[i].value || this.flattenChoices()[i].label;\n }\n\n private update() {\n this.selected = this.flattenChoices().map(\n ({ isSelected }) => isSelected\n );\n\n if (this.mode === 'single') {\n const selected = this.selected.findIndex((v) => v);\n this.value = selected >= 0 ? this.getActualValue(selected) : '';\n this.displayValue =\n selected >= 0 ? this.getDisplayValue(selected) : '';\n } else if (this.mode === 'multi') {\n this.value = this.selected\n .map((v, i) => {\n return v ? this.getActualValue(i) : '';\n })\n .filter((v) => v.length > 0)\n .join('|');\n }\n }\n\n @Watch('value')\n handleValueStateChange(newValue) {\n this.selectChange.emit(newValue);\n }\n\n render() {\n let visibleChoices = 0;\n return (\n <Host\n class={{\n 'xpl-select': true,\n 'xpl-select--disabled': this.disabled,\n 'xpl-select--no-truncate': !this.truncate,\n }}\n onKeyDown={(e: KeyboardEvent) => {\n if (e.key === 'Escape') this.active = false;\n }}\n ref={(el) => (this.container = el as HTMLElement)}\n >\n {this.label || this.description ? (\n <label\n class={{\n 'xpl-label': true,\n 'xpl-label--disabled': this.disabled,\n }}\n htmlFor={this.id}\n >\n {this.label}\n {this.description && (\n <small\n class={{\n 'xpl-description': true,\n 'xpl-description--disabled': this.disabled,\n }}\n >\n {this.description}\n </small>\n )}\n </label>\n ) : null}\n <div\n class={{\n 'xpl-input': true,\n 'xpl-input--disabled': this.disabled,\n 'xpl-input--error': this.error !== undefined,\n }}\n >\n <div class=\"xpl-input-wrapper\">\n <div\n class={{\n 'xpl-select-value': true,\n 'xpl-select-value--active':\n this.mode === 'multi' &&\n this.value.length > 0,\n 'has-value': this.value.length > 0,\n }}\n >\n {this.mode === 'single'\n ? this.displayValue || this.placeholder\n : this.value.length > 0\n ? this.selected.map((v, i) => {\n if (!v) return null;\n if (\n visibleChoices >= this.visibleChoices\n ) {\n return null;\n }\n visibleChoices++;\n return (\n <xpl-tag\n onClose={() => {\n this.flattenChoices().forEach(\n (v, j) => {\n if (i === j)\n v.isSelected =\n false;\n }\n );\n const mapOptions = (\n option: DropdownItem\n ): DropdownItem => {\n option.options =\n option.groupName\n ? option.options.map(\n mapOptions\n )\n : undefined;\n return option;\n };\n this.choices =\n this.choices.map(\n mapOptions\n );\n\n this.update();\n this.maybeTruncateChoices();\n }}\n >\n {this.getDisplayValue(i)}\n </xpl-tag>\n );\n })\n : this.placeholder}\n {this.visibleChoices < Infinity &&\n `+ ${\n this.selected.filter((a) => a).length -\n this.visibleChoices\n } more`}\n </div>\n <button\n disabled={this.disabled}\n id={this.id}\n onKeyDown={(e: KeyboardEvent) => {\n if (e.key === 'Tab') this.keepFocus = true;\n }}\n onClick={() => {\n const { dropdown } = this;\n if (!this.disabled)\n dropdown.isOpen = !dropdown.isOpen;\n }}\n type=\"button\"\n ></button>\n </div>\n {!this.disabled && (\n <xpl-dropdown\n options={this.choices}\n mode={this.mode}\n triggerId={this.id}\n update={() => {\n this.update();\n this.maybeTruncateChoices();\n }}\n ></xpl-dropdown>\n )}\n {this.error !== undefined && this.error.length > 0 && (\n <label class=\"xpl-input-error\" htmlFor={this.id}>\n <svg\n width=\"10\"\n height=\"11\"\n viewBox=\"0 0 10 11\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z\" />\n </svg>\n {this.error}\n </label>\n )}\n </div>\n <input type=\"hidden\" name={this.name} value={this.value} />\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"xpl-toggle.entry.cjs.js","mappings":";;;;;;;MAMa,SAAS;;;;;;;;;mBAmBsB,SAAS;cAE3BA,KAAI,EAAE;;EAE5B,MAAM;IACF,IAAI,kBAAkB,GAAG,sBAAsB,CAAC;IAChD,IAAI,IAAI,CAAC,QAAQ;MACb,kBAAkB,IAAI,iCAAiC,CAAC;IAE5D,IAAI,SAAS,GAAG,YAAY,CAAC;IAC7B,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO;MAAE,SAAS,IAAI,oBAAoB,CAAC;IAEhE,QACIC,QAACC,UAAI,IAAC,KAAK,EAAE,kBAAkB,IAC1B,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,MAC9BD,mBACI,KAAK,EAAE;QACH,WAAW,EAAE,IAAI;QACjB,qBAAqB,EAAE,IAAI,CAAC,QAAQ;OACvC,EACD,OAAO,EAAE,IAAI,CAAC,EAAE,IAEf,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,WAAW,KACbA,mBACI,KAAK,EAAE;QACH,iBAAiB,EAAE,IAAI;QACvB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;OAC7C,IAEA,IAAI,CAAC,WAAW,CACb,CACX,CACG,CACX,EACDA,mBACI,KAAK,EAAE,SAAS,EAChB,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,GACV,EACR,IAAI,CAAC,KAAK,IAAIA,mBAAO,OAAO,EAAE,IAAI,CAAC,EAAE,IAAG,IAAI,CAAC,KAAK,CAAS,CACzD,EACT;GACL;;;;;","names":["uuid","h","Host"],"sources":["./src/components/components/xpl-toggle/xpl-toggle.tsx"],"sourcesContent":["import { Component, Host, h, Prop, State } from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\n@Component({\n tag: 'xpl-toggle',\n})\nexport class XplToggle {\n @Prop() checked?: boolean;\n /**\n * The toggle's description appears *above* the toggle.\n */\n @Prop() description?: string;\n @Prop() disabled?: boolean;\n /**\n * The toggle's heading appears *above* the toggle.\n */\n @Prop() heading?: string;\n /**\n * The toggle's label appears *to the right of* the toggle.\n */\n @Prop() label?: string;\n @Prop() name?: string;\n /**\n * The size of the toggle -- `default` or `small`\n */\n @Prop() variant?: 'default' | 'small' = 'default';\n\n @State() id: string = uuid();\n\n render() {\n let containerClassName = 'xpl-toggle-container';\n if (this.disabled)\n containerClassName += ' xpl-toggle-container--disabled';\n\n let className = 'xpl-toggle';\n if (this.variant === 'small') className += ' xpl-toggle--small';\n\n return (\n <Host class={containerClassName}>\n {(this.heading || this.description) && (\n <label\n class={{\n 'xpl-label': true,\n 'xpl-label--disabled': this.disabled,\n }}\n htmlFor={this.id}\n >\n {this.heading}\n {this.description && (\n <small\n class={{\n 'xpl-description': true,\n 'xpl-description--disabled': this.disabled,\n }}\n >\n {this.description}\n </small>\n )}\n </label>\n )}\n <input\n class={className}\n type=\"checkbox\"\n checked={this.checked}\n disabled={this.disabled}\n id={this.id}\n name={this.name}\n ></input>\n {this.label && <label htmlFor={this.id}>{this.label}</label>}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-application-shell.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-application-shell/xpl-application-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAKxE,MAAM,OAAO,mBAAmB;;sBAUE,KAAK;uBAIJ,IAAI;oBAKR,SAAS;;mBAUR,IAAI;;EA5BxB,gBAAgB;IACpB,IAAI,MAAM,CAAC,UAAU,IAAI,GAAG,EAAE;MAC1B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;KACxB;EACL,CAAC;EA2BD,gBAAgB;IACZ,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;EACjC,CAAC;EAGD,cAAc,CAAC,KAAK;IAChB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC;EACjC,CAAC;EAGD,cAAc;IACV,IAAI,CAAC,gBAAgB,EAAE,CAAC;EAC5B,CAAC;EAED,iBAAiB;IACb,IAAI,CAAC,gBAAgB,EAAE,CAAC;EAC5B,CAAC;EAED,iBAAiB;IACb,IAAI,CAAC,OAAO;MACR,IAAI,CAAC,kBAAkB,KAAK,SAAS;QACjC,CAAC,CAAC,IAAI,CAAC,kBAAkB;QACzB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;EAC3B,CAAC;EAED,MAAM;IACF,IAAI,uBAAuB,GAAG,uBAAuB,CAAC;IACtD,IAAI,IAAI,CAAC,WAAW;MAChB,uBAAuB,IAAI,sCAAsC,CAAC;IAEtE,IAAI,UAAU,GAAG,4BAA4B,CAAC;IAC9C,UAAU,IAAI,IAAI,CAAC,OAAO;MACtB,CAAC,CAAC,gCAAgC,IAAI,CAAC,QAAQ,QAAQ;MACvD,CAAC,CAAC,gCAAgC,IAAI,CAAC,QAAQ,EAAE,CAAC;IAEtD,OAAO,CACH,EAAC,IAAI,IAAC,KAAK,EAAE,uBAAuB;MAChC,WAAK,KAAK,EAAE,UAAU;QAClB,YAAM,IAAI,EAAC,KAAK,GAAQ,CACtB;MACN,WAAK,KAAK,EAAC,+BAA+B;QACtC,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACzB;MACN,WAAK,KAAK,EAAC,gCAAgC;QACvC,YAAM,IAAI,EAAC,SAAS,GAAQ,CAC1B;MACN,WAAK,KAAK,EAAC,gCAAgC;QACvC,YAAM,IAAI,EAAC,SAAS,GAAQ,CAC1B;MACN,oBACI,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,EACtC,KAAK,EAAE;UACH,uCAAuC,EAAE,IAAI,CAAC,OAAO;SACxD,EACD,QAAQ,SACI,CACb,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Host, Listen, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'xpl-application-shell',\n})\nexport class XplApplicationShell {\n private closeNavOnMobile() {\n if (window.innerWidth <= 640) {\n this.navOpen = false;\n }\n }\n\n /**\n * @property {boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar\n */\n @Prop() withSubnav: boolean = false;\n /**\n * @property {boolean} - Whether or not the Grid should have space for a utility bar\n */\n @Prop() withUtility: boolean = true;\n\n /**\n * @property {string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.\n */\n @Prop() navWidth: string = 'default';\n\n /**\n * @property {boolean} - * @property {boolean} - Optional property that defines whether or not the main nav is open at startup.\n */\n @Prop() isNavOpenAtStartup: boolean;\n\n /**\n * @state {boolean} - Whether or not the main nav is open, updates when the nav-open event is emitted.\n */\n @State() navOpen: boolean = true;\n\n @Listen('navOpen')\n navToggleHandler() {\n this.navOpen = !this.navOpen;\n }\n\n @Listen('navWidth')\n navWithHandler(event) {\n this.navWidth = event.detail;\n }\n\n @Listen('resize', { target: 'window' })\n onWindowResize() {\n this.closeNavOnMobile();\n }\n\n connectedCallback() {\n this.closeNavOnMobile();\n }\n\n componentWillLoad() {\n this.navOpen =\n this.isNavOpenAtStartup !== undefined\n ? this.isNavOpenAtStartup\n : this.navOpen;\n }\n\n render() {\n let applicationShellClasses = 'xpl-application-shell';\n if (this.withUtility)\n applicationShellClasses += ' xpl-application-shell--with_utility';\n\n let navClasses = 'xpl-application-shell__nav';\n navClasses += this.navOpen\n ? ` xpl-application-shell__nav--${this.navWidth}--open`\n : ` xpl-application-shell__nav--${this.navWidth}`;\n\n return (\n <Host class={applicationShellClasses}>\n <div class={navClasses}>\n <slot name=\"nav\"></slot>\n </div>\n <div class=\"xpl-application-shell__subnav\">\n <slot name=\"subnav\"></slot>\n </div>\n <div class=\"xpl-application-shell__utility\">\n <slot name=\"utility\"></slot>\n </div>\n <div class=\"xpl-application-shell__content\">\n <slot name=\"content\"></slot>\n </div>\n <xpl-backdrop\n onClick={() => this.navToggleHandler()}\n class={{\n 'xpl-application-shell__backdrop--open': this.navOpen,\n }}\n relative\n ></xpl-backdrop>\n </Host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AK,KAAK,EAAE,SAAS,IAAG,KAAK,CAAO,CACvC,CACE,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xpl-avatar',\n})\nexport class XplAvatar {\n @Prop() color?: 'green' | 'yellow' | 'pink' | 'primary' | 'secondary';\n @Prop() disabled?: boolean = false;\n @Prop() href?: string;\n @Prop() name?: string;\n @Prop() size?: 'md' | 'sm';\n @Prop() src?: string;\n @Prop() status?: 'active' | 'warning' | 'inactive';\n @Prop() target?: string;\n\n render() {\n let className = 'xpl-avatar';\n if (this.size) className += ` xpl-avatar--${this.size}`;\n if (this.color) className += ` xpl-avatar--${this.color}`;\n\n const inner = (\n <div>\n {this.src ? (\n <img alt={this.name} src={this.src} />\n ) : (\n <div class=\"xpl-avatar__placeholder\">\n <slot></slot>\n </div>\n )}\n {this.status && (\n <div class={`xpl-avatar__dot--${this.status}`}></div>\n )}\n </div>\n );\n\n return (\n <Host>\n {this.href && !this.disabled ? (\n <a href={this.href} class={className} target={this.target}>\n {inner}\n </a>\n ) : this.href && this.disabled ? (\n <div class={className + ' xpl-avatar--disabled'}>\n {inner}\n </div>\n ) : (\n <div class={className}>{inner}</div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-backdrop.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-backdrop/xpl-backdrop.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAKzD,MAAM,OAAO,WAAW;;oBAKQ,KAAK;;EAEjC,MAAM;IACF,OAAO,CACH,EAAC,IAAI,IACD,KAAK,EAAE;QACH,cAAc,EAAE,IAAI;QACpB,qBAAqB,EAAE,CAAC,IAAI,CAAC,QAAQ;QACrC,wBAAwB,EAAE,IAAI,CAAC,QAAQ;OAC1C,iBACW,MAAM,GACd,CACX,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xpl-backdrop',\n})\nexport class XplBackdrop {\n /**\n * @property {boolean} - When true, backdrop will have relative position. This is useful when the backdrop doesn't cover the whole view area.\n * If false, the position will be fixed and cover the whole view area.\n */\n @Prop() relative: boolean = false;\n\n render() {\n return (\n <Host\n class={{\n 'xpl-backdrop': true,\n 'xpl-backdrop--fixed': !this.relative,\n 'xpl-backdrop--relative': this.relative,\n }}\n aria-hidden=\"true\"\n ></Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-badge.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-badge/xpl-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAKzD,MAAM,OAAO,QAAQ;;;;;EAIjB,MAAM;IACF,IAAI,SAAS,GAAG,WAAW,CAAC;IAC5B,IAAI,IAAI,CAAC,GAAG;MAAE,SAAS,IAAI,iBAAiB,CAAC;IAC7C,IAAI,IAAI,CAAC,OAAO;MAAE,SAAS,IAAI,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC;IAE7D,OAAO,CACH,EAAC,IAAI;MACD,WAAK,KAAK,EAAE,SAAS;QACjB,eAAa,CACX,CACH,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xpl-badge',\n})\nexport class XplBadge {\n @Prop() dot?: boolean;\n @Prop() variant?: 'success' | 'warning' | 'inactive' | 'error';\n\n render() {\n let className = 'xpl-badge';\n if (this.dot) className += ' xpl-badge--dot';\n if (this.variant) className += ' xpl-badge--' + this.variant;\n\n return (\n <Host>\n <div class={className}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-breadcrumb-item.js","sourceRoot":"","sources":["../../../../../src/components/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AAIH,MAAM,OAAO,iBAAiB;EAH9B;IAII,iHAAiH;IACzG,YAAO,GAAG;;;KAGjB,CAAC;GAYL;EAVG,MAAM;IACF,OAAO,CACH,EAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,UAAU;MAC7C,UAAI,IAAI,EAAC,MAAM;QACX,eAAa,CACZ;MACL,YAAM,SAAS,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,GAAI,CACnC,CACV,CAAC;EACN,CAAC;;CACJ","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n/**\n * @slot unnamed - content rendered inside <li>, should be link or button (styled as link)\n */\n@Component({\n tag: 'xpl-breadcrumb-item',\n})\nexport class XplBreadcrumbItem {\n // This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.\n private chevron = `<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"chevron-right\" class=\"svg-inline--fa fa-chevron-right fa-w-10\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\">\n <path fill=\"currentColor\" d=\"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z\"></path>\n </svg>\n `;\n\n render() {\n return (\n <Host class=\"xpl-breadcrumb-item\" role=\"listitem\">\n <li role=\"none\">\n <slot></slot>\n </li>\n <span innerHTML={`${this.chevron}`} />\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-breadcrumbs.js","sourceRoot":"","sources":["../../../../../src/components/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AAIH,MAAM,OAAO,cAAc;EACvB,MAAM;IACF,OAAO,CACH,EAAC,IAAI;MACD,WAAK,KAAK,EAAC,iBAAiB,gBAAY,YAAY;QAChD,UAAI,IAAI,EAAC,MAAM;UACX,eAAa,CACZ,CACH,CACH,CACV,CAAC;EACN,CAAC;;CACJ","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n/**\n * @slot unnamed - content rendered <ol>, should be a group of <li> or <xpl-breadcrumb-item>\n */\n@Component({\n tag: 'xpl-breadcrumbs',\n})\nexport class XplBreadcrumbs {\n render() {\n return (\n <Host>\n <nav class=\"xpl-breadcrumbs\" aria-label=\"Breadcrumb\">\n <ol role=\"list\">\n <slot></slot>\n </ol>\n </nav>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-button.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-button/xpl-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAIlE,MAAM,OAAO,SAAS;;;;;;;gBAyBsB,SAAS;;;mBAYK,SAAS;iBAIZ,SAAS;;EAE5D,kBAAkB;IACd,MAAM,KAAK,GAAG,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MAC1B,SAAS,IAAI,4BAA4B,CAAC;IAE9C,OAAO,CACH,EAAC,IAAI,IAAC,KAAK,EAAE,SAAS;IAEd;;;OAGG;IACH,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACR,eAAa,CAChB,CAAC,CAAC,CAAC,CACA,cACI,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK;MAEjB,eAAa,CACR,CACZ,CAEF,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Element, Host, h, Prop } from '@stencil/core';\n@Component({\n tag: 'xpl-button',\n})\nexport class XplButton {\n @Element() el: HTMLXplButtonElement;\n /**\n * whether button should be disabled\n */\n @Prop() disabled?: boolean;\n /**\n * whether button should yield a slot for a link tag\n */\n @Prop() link?: boolean;\n /**\n * whether button should render icon only\n */\n @Prop() iconOnly?: boolean;\n /**\n * whether button should render with full width\n */\n @Prop() fullWidth?: boolean;\n /**\n * @property {string} - button name attribute\n */\n @Prop() name?: string;\n /**\n * @property {\"default\" | \"sm\" | \"xs\"} - button size\n */\n @Prop() size: 'default' | 'sm' | 'xs' = 'default';\n /**\n * @property {\"submit\" | \"reset\" | \"button\"} - button type attribute\n */\n @Prop() type?: 'submit' | 'reset' | 'button';\n /**\n * @property {string} - button value attribute\n */\n @Prop() value?: string;\n /**\n * @property {\"primary\" | \"secondary\" | \"subtle\"} - button variant\n */\n @Prop() variant: 'primary' | 'secondary' | 'subtle' = 'primary';\n /**\n * @property {\"neutral\" | \"warning\" | \"success\"} - button state (color) neutral=purple, success=green, warning=red\n */\n @Prop() state: 'neutral' | 'warning' | 'success' = 'neutral';\n\n componentDidRender() {\n const attrs = this.el.attributes;\n const dataAttrs = Object.keys(attrs)\n .filter((k) => {\n const propertyName = attrs[k].name;\n if (propertyName) {\n return (\n propertyName.includes('data-test') ||\n propertyName.includes('aria-')\n );\n }\n return false;\n })\n .reduce((acc, k) => {\n return { ...acc, [attrs[k].name]: attrs[k].value };\n }, {});\n\n const child = this.el.querySelector('button');\n Object.keys(dataAttrs).forEach((k) => {\n child.setAttribute(k, dataAttrs[k]);\n this.el.removeAttribute(k);\n });\n }\n\n render() {\n let className = `xpl-button\n xpl-button--${this.size}\n xpl-button--${this.state}\n xpl-button--${this.variant}`;\n if (this.iconOnly) className += ' xpl-button--icon-only';\n if (this.fullWidth) className += ' xpl-button--full-width';\n if (this.link && this.disabled)\n className += ' xpl-button--link-disabled';\n\n return (\n <Host class={className}>\n {\n /**\n * Conditionally render either an <slot> or <button> element\n * depending on if there's an `link` or not\n */\n this.link ? (\n <slot></slot>\n ) : (\n <button\n disabled={this.disabled}\n name={this.name}\n type={this.type}\n value={this.value}\n >\n <slot></slot>\n </button>\n )\n }\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-button-row.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-button-row/xpl-button-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAK9E,MAAM,OAAO,YAAY;;IA+Bb,cAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAC3C,gBAAW,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IAC/C,eAAU,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;;;;;EAErD,MAAM;IACF,OAAO,CACH,EAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB;MACxB,WAAK,KAAK,EAAC,sBAAsB;QAC7B,WAAK,KAAK,EAAC,sBAAsB,IAC5B,IAAI,CAAC,SAAS,IAAI,CACf,kBACI,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,WAAW,IAExB,IAAI,CAAC,SAAS,CACN,CAChB,CACC;QACN,WAAK,KAAK,EAAC,uBAAuB;UAC7B,IAAI,CAAC,QAAQ,IAAI,CACd,kBACI,OAAO,EAAC,QAAQ,EAChB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,UAAU,IAEvB,IAAI,CAAC,QAAQ,CACL,CAChB;UACA,IAAI,CAAC,SAAS,IAAI,CACf,kBACI,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,WAAW,IAExB,IAAI,CAAC,SAAS,CACN,CAChB;UACA,IAAI,CAAC,OAAO,IAAI,CACb,kBACI,KAAK,EAAC,yBAAyB,EAC/B,OAAO,EAAE,IAAI,CAAC,SAAS,IAEtB,IAAI,CAAC,OAAO,CACJ,CAChB,CACC,CACJ,CACH,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'xpl-button-row',\n})\nexport class XplButtonRow {\n /**\n * The text for the primary button.\n */\n @Prop({ reflect: false }) primary: 'string';\n /**\n * The text for the secondary button. If left\n * empty, will not render a secondary button.\n */\n @Prop({ reflect: false }) secondary: 'string';\n /**\n * The text for the tertiary button. If left\n * empty, will not render a secondary button.\n */\n @Prop({ reflect: false }) tertiary: 'string';\n\n /**\n * Fires on the primary button.\n * If not set, the button can act as a standard\n * submit button for a form.\n */\n @Event() clickPrimary: EventEmitter;\n /**\n * Adds an event listener to the secondary button.\n */\n @Event() clickSecondary: EventEmitter;\n /**\n * Adds an event listener to the tertiary button.\n */\n @Event() clickTertiary: EventEmitter;\n\n private onPrimary = () => this.clickPrimary.emit();\n private onSecondary = () => this.clickSecondary.emit();\n private onTertiary = () => this.clickTertiary.emit();\n\n render() {\n return (\n <Host class=\"xpl-button-row\">\n <div class=\"xpl-button-row-inner\">\n <div class=\"xpl-button-row__left\">\n {this.secondary && (\n <xpl-button\n variant=\"secondary\"\n type=\"button\"\n onClick={this.onSecondary}\n >\n {this.secondary}\n </xpl-button>\n )}\n </div>\n <div class=\"xpl-button-row__right\">\n {this.tertiary && (\n <xpl-button\n variant=\"subtle\"\n type=\"button\"\n onClick={this.onTertiary}\n >\n {this.tertiary}\n </xpl-button>\n )}\n {this.secondary && (\n <xpl-button\n variant=\"secondary\"\n type=\"button\"\n onClick={this.onSecondary}\n >\n {this.secondary}\n </xpl-button>\n )}\n {this.primary && (\n <xpl-button\n class=\"xpl-button-row__primary\"\n onClick={this.onPrimary}\n >\n {this.primary}\n </xpl-button>\n )}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-checkbox.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-checkbox/xpl-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EACL,KAAK,GAER,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAKlC,MAAM,OAAO,WAAW;;;;;;;;;;cAUE,IAAI,EAAE;;EAO5B,MAAM;IACF,OAAO,CACH,EAAC,IAAI,IACD,KAAK,EAAE;QACH,8BAA8B,EAAE,IAAI;QACpC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;OAC1B;MAED,aACI,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,QAAQ,EAAE,GAAG,EAAE,CACX,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAEhD,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,EAAsB,CAAC,EAClD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,GACZ;MACT,aACI,KAAK,EAAE;UACH,WAAW,EAAE,IAAI;UACjB,qBAAqB,EAAE,IAAI,CAAC,QAAQ;SACvC,EACD,OAAO,EAAE,IAAI,CAAC,EAAE;QAEhB,eAAa;QACZ,IAAI,CAAC,WAAW,IAAI,CACjB,aACI,KAAK,EAAE;YACH,iBAAiB,EAAE,IAAI;YACvB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;WAC7C,IAEA,IAAI,CAAC,WAAW,CACb,CACX,CACG,CACL,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Event,\n EventEmitter,\n} from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\n@Component({\n tag: 'xpl-checkbox',\n})\nexport class XplCheckbox {\n @Prop() checked?: boolean;\n @Prop() description?: string;\n @Prop() disabled?: boolean;\n @Prop() indeterminate?: boolean;\n @Prop() name?: string;\n @Prop() required?: boolean;\n @Prop() styled?: boolean;\n @Prop() value?: string;\n\n @State() id: string = uuid();\n\n /** @private */\n @Event() checkboxChange: EventEmitter;\n\n private input!: HTMLInputElement;\n\n render() {\n return (\n <Host\n class={{\n 'xpl-checkbox-radio-container': true,\n styled: this.styled,\n disabled: this.disabled,\n }}\n >\n <input\n class=\"xpl-checkbox\"\n type=\"checkbox\"\n checked={this.checked}\n disabled={this.disabled}\n id={this.id}\n indeterminate={this.indeterminate}\n onChange={() =>\n this.checkboxChange.emit(this.input.checked)\n }\n name={this.name}\n ref={(el) => (this.input = el as HTMLInputElement)}\n required={this.required}\n value={this.value}\n ></input>\n <label\n class={{\n 'xpl-label': true,\n 'xpl-label--disabled': this.disabled,\n }}\n htmlFor={this.id}\n >\n <slot></slot>\n {this.description && (\n <small\n class={{\n 'xpl-description': true,\n 'xpl-description--disabled': this.disabled,\n }}\n >\n {this.description}\n </small>\n )}\n </label>\n </Host>\n );\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=choice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"choice.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-choicelist/choice.ts"],"names":[],"mappings":"","sourcesContent":["export interface Choice {\n checked?: boolean;\n children?: Choice[];\n description?: string;\n label?: string;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-choicelist.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-choicelist/xpl-choicelist.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAMhE,MAAM,OAAO,aAAa;;;;;;;;;;EAiCtB,iBAAiB;IACb,IAAI,C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CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CACnC,CAAC;UACN,CAAC,IAEA,KAAK,CACK,CAClB,CAAC,CAAC,CAAC,CACA,iBACI,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,aAAa,EAAE,GAAG,EAAE;YAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAC7B,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CACpB,CAAC;UACN,CAAC,IAEA,KAAK,CACE,CACf,CAAC;QAEF,IAAI,SAAS,GACT,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;UAC3B,CAAC,CAAC,UAAU;UACZ,CAAC,CAAC,EAAE,CAAC;QAEb,OAAO,CACH,UAAI,KAAK,EAAE,SAAS;UACf,KAAK;UACL,QAAQ,IAAI,CACT,cACK,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACpB,MAAM,UAAU,GAAG,IAAI;eAClB,KAAK,CAAC,CAAC,CAAC,CACT,oBACI,WAAW,EACP,KAAK,CAAC,WAAW,IAGpB,KAAK,CAAC,KAAK,CACD,CAClB,CAAC,CAAC,CAAC,CACA,iBACI,WAAW,EACP,KAAK,CAAC,WAAW,IAGpB,KAAK,CAAC,KAAK,CACJ,CACf,CAAC;YACF,OAAO,CACH,cAAK,UAAU,CAAM,CACxB,CAAC;UACN,CAAC,CAAC,CACD,CACR,CACA,CACR,CAAC;MACN,CAAC,CACJ,CACA,CACR,CACE,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop, State } from '@stencil/core';\nimport { Choice } from './choice';\n\n@Component({\n tag: 'xpl-choicelist',\n})\nexport class XplChoicelist {\n /**\n * An array of choices to be displayed in the list.\n * Each choice should be an object with keys:\n * - `checked` [boolean] - whether to pre-check or not\n * - `children` [Choice[]] - an array of child choices (recursive)\n * - `description` [string]\n * - `label` [string]\n */\n @Prop() choices: Choice[];\n /**\n * Descriptive text to be displayed above the choicelist.\n */\n @Prop() description?: string;\n /**\n * The title text to be displayed above the choicelist.\n */\n @Prop() heading?: string;\n /**\n * Whether the user can select more than one choice (true) or only a single choice (false). Corresponds to checkboxes vs. radio buttons.\n */\n @Prop() multi?: boolean;\n /**\n * The `name` to be associated with form data.\n */\n @Prop() name?: string;\n /**\n * If `true`, will include borders around the list and between individual choices.\n */\n @Prop() styled?: boolean;\n\n @State() selected: boolean[];\n\n componentWillLoad() {\n this.selected =\n this.choices !== undefined &&\n this.choices !== null &&\n this.choices.length > 0\n ? this.choices.map(() => false)\n : [];\n }\n\n render() {\n let className = 'xpl-choicelist';\n if (this.styled) className += ' xpl-choicelist--styled';\n\n return (\n <Host class=\"xpl-choicelist-container\">\n {this.heading !== undefined ||\n this.description !== undefined ? (\n <div class=\"xpl-choicelist-heading\">\n {this.heading && <h3>{this.heading}</h3>}\n {this.description && <p>{this.description}</p>}\n </div>\n ) : null}\n {this.choices && (\n <ul class={className}>\n {this.choices.map(\n ({ children, description, label }, i) => {\n const inner = this.multi ? (\n <xpl-checkbox\n description={description}\n name={this.name}\n onCheckboxChange={(e: {\n detail: boolean;\n }) => {\n const { detail } = e;\n this.selected = this.selected.map(\n (v, j) => (i === j ? detail : v)\n );\n }}\n >\n {label}\n </xpl-checkbox>\n ) : (\n <xpl-radio\n description={description}\n name={this.name}\n onRadioChange={() => {\n this.selected = this.selected.map(\n (_, j) => i === j\n );\n }}\n >\n {label}\n </xpl-radio>\n );\n\n let className =\n this.styled && this.selected[i]\n ? 'selected'\n : '';\n\n return (\n <li class={className}>\n {inner}\n {children && (\n <ul>\n {children.map((child) => {\n const childInner = this\n .multi ? (\n <xpl-checkbox\n description={\n child.description\n }\n >\n {child.label}\n </xpl-checkbox>\n ) : (\n <xpl-radio\n description={\n child.description\n }\n >\n {child.label}\n </xpl-radio>\n );\n return (\n <li>{childInner}</li>\n );\n })}\n </ul>\n )}\n </li>\n );\n }\n )}\n </ul>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-content-area.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-content-area/xpl-content-area.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAKzD,MAAM,OAAO,cAAc;;gBAIoB,MAAM;;EAEjD,MAAM;IACF,OAAO,CACH,EAAC,IAAI;MACD,YACI,KAAK,EAAE,sDAAsD,IAAI,CAAC,IAAI,EAAE;QAExE,WAAK,KAAK,EAAC,kBAAkB;UACzB,eAAa,CACX,CACH,CACJ,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xpl-content-area',\n})\nexport class XplContentArea {\n /**\n * @property {string} size - The content-area size.\n */\n @Prop() size: 'wide' | 'narrow' | 'full' = 'wide';\n\n render() {\n return (\n <Host>\n <main\n class={`xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}`}\n >\n <div class=\"xpl-content-area\">\n <slot></slot>\n </div>\n </main>\n </Host>\n );\n }\n}\n"]}
@@ -1,8 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- export class XplDashboard {
3
- render() {
4
- return (h(Host, null, h("dl", { class: "xpl-dashboard" }, h("slot", null))));
5
- }
6
- static get is() { return "xpl-dashboard"; }
7
- }
8
- //# sourceMappingURL=xpl-dashboard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-dashboard.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-dashboard/xpl-dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAKnD,MAAM,OAAO,YAAY;EACrB,MAAM;IACF,OAAO,CACH,EAAC,IAAI;MACD,UAAI,KAAK,EAAC,eAAe;QACrB,eAAa,CACZ,CACF,CACV,CAAC;EACN,CAAC;;CACJ","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'xpl-dashboard',\n})\nexport class XplDashboard {\n render() {\n return (\n <Host>\n <dl class=\"xpl-dashboard\">\n <slot></slot>\n </dl>\n </Host>\n );\n }\n}\n"]}
@@ -1,162 +0,0 @@
1
- import { h, Host } from '@stencil/core';
2
- export class XplDataCard {
3
- constructor() {
4
- this.link = undefined;
5
- this.name = undefined;
6
- this.stat = undefined;
7
- this.shortStat = undefined;
8
- this.variant = undefined;
9
- this.icon = undefined;
10
- }
11
- watchStat(newValue) {
12
- this.stat = newValue;
13
- }
14
- watchShortStat(newValue) {
15
- this.shortStat = newValue;
16
- }
17
- componentDidLoad() {
18
- if (this.link) {
19
- const anchorEl = this.el.getElementsByTagName('a')[0] ||
20
- this.el.getElementsByTagName('button')[0];
21
- const anchorText = document.createTextNode(this.name);
22
- const anchorSpan = document.createElement('span');
23
- anchorSpan.appendChild(anchorText);
24
- anchorEl.setAttribute('class', 'xpl-data-card__anchor');
25
- anchorEl.appendChild(anchorSpan);
26
- }
27
- return;
28
- }
29
- render() {
30
- const bgColorHue = this.variant === 'secondary' ? 'purple' : 'orange';
31
- let headerClasses = `xpl-data-card__header${!this.icon ? '--no-icon ' : ' '}`;
32
- headerClasses +=
33
- this.variant === 'secondary'
34
- ? 'xpl-data-card__header--secondary'
35
- : 'xpl-data-card__header--primary';
36
- return (h(Host, { role: "group", class: `xpl-data-card ${this.link && 'xpl-data-card__link'}`, tabindex: "0" }, this.link &&
37
- (this.shortStat ? (h("abbr", { title: this.stat }, h("slot", null))) : (h("slot", null))), h("dt", null, this.name), h("dd", null, h("div", { class: headerClasses }, !!this.icon && (h("xpl-icon", { icon: this.icon, "background-color": bgColorHue, size: 20 })), this.link && (h("span", { class: "xpl-data-card__header__arrow" }, h("xpl-icon", { icon: "chevron-right", size: 16 })))), h("span", { class: this.shortStat && 'xpl-data-card__long_stat' }, this.stat), this.shortStat && (h("span", { class: "xpl-data-card__short_stat" }, h("abbr", { title: this.stat }, this.shortStat))))));
38
- }
39
- static get is() { return "xpl-data-card"; }
40
- static get properties() {
41
- return {
42
- "link": {
43
- "type": "boolean",
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": "Whether the card is a link"
55
- },
56
- "attribute": "link",
57
- "reflect": false
58
- },
59
- "name": {
60
- "type": "string",
61
- "mutable": false,
62
- "complexType": {
63
- "original": "string",
64
- "resolved": "string",
65
- "references": {}
66
- },
67
- "required": false,
68
- "optional": false,
69
- "docs": {
70
- "tags": [],
71
- "text": "Name Term"
72
- },
73
- "attribute": "name",
74
- "reflect": false
75
- },
76
- "stat": {
77
- "type": "string",
78
- "mutable": false,
79
- "complexType": {
80
- "original": "string",
81
- "resolved": "string",
82
- "references": {}
83
- },
84
- "required": false,
85
- "optional": false,
86
- "docs": {
87
- "tags": [],
88
- "text": "Detail, stat, or value to be displayed.\nWill be rendered when card is larger than 441px.\nWill also appear in the tooltip when shortStat\nis shown."
89
- },
90
- "attribute": "stat",
91
- "reflect": false
92
- },
93
- "shortStat": {
94
- "type": "string",
95
- "mutable": false,
96
- "complexType": {
97
- "original": "string",
98
- "resolved": "string",
99
- "references": {}
100
- },
101
- "required": false,
102
- "optional": true,
103
- "docs": {
104
- "tags": [],
105
- "text": "Detail, stat, or value to be displayed\nin short format. Will be rendered when card is\nsmaller than 441px."
106
- },
107
- "attribute": "short-stat",
108
- "reflect": false
109
- },
110
- "variant": {
111
- "type": "string",
112
- "mutable": false,
113
- "complexType": {
114
- "original": "'primary' | 'secondary'",
115
- "resolved": "\"primary\" | \"secondary\"",
116
- "references": {}
117
- },
118
- "required": false,
119
- "optional": true,
120
- "docs": {
121
- "tags": [],
122
- "text": "Color variant. Used to set the icon\ncolor and background."
123
- },
124
- "attribute": "variant",
125
- "reflect": false
126
- },
127
- "icon": {
128
- "type": "string",
129
- "mutable": false,
130
- "complexType": {
131
- "original": "IconName",
132
- "resolved": "\"alarm-clock\" | \"alert-hex\" | \"alert-triangle\" | \"apps\" | \"archive\" | \"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"award\" | \"bell\" | \"bell-slash\" | \"bookmark\" | \"star\" | \"briefcase\" | \"calendar\" | \"calendar-month\" | \"calendar-week\" | \"camera\" | \"check\" | \"check-circle\" | \"check-circle-fill\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-up\" | \"chevrons-down\" | \"chevrons-left\" | \"chevrons-right\" | \"chevrons-up\" | \"circle-slash\" | \"clipboard\" | \"clock\" | \"comment\" | \"comment-alt\" | \"comment-discussion\" | \"compass\" | \"credit-card\" | \"dash\" | \"dollar-sign\" | \"download\" | \"duplicate\" | \"edit\" | \"expand\" | \"eye\" | \"eye-closed\" | \"file\" | \"folder\" | \"gear\" | \"gift\" | \"package\" | \"globe\" | \"graph\" | \"grid\" | \"heart\" | \"home\" | \"image\" | \"info\" | \"kebab-horizontal\" | \"kebab-vertical\" | \"key\" | \"lock\" | \"law\" | \"layers\" | \"left-align\" | \"light-bulb\" | \"link-external\" | \"list-ordered\" | \"list-unordered\" | \"loader\" | \"location\" | \"mail\" | \"map\" | \"megaphone\" | \"minus-circle\" | \"moon\" | \"navigation\" | \"organization\" | \"people\" | \"paperclip\" | \"pencil\" | \"percent\" | \"person\" | \"person-circle\" | \"phone\" | \"pie-chart\" | \"play\" | \"plus\" | \"plus-circle\" | \"printer\" | \"question\" | \"refresh-cw\" | \"right-align\" | \"rocket\" | \"rotate-ccw\" | \"rotate-cw\" | \"save\" | \"search\" | \"shopping-bag\" | \"shopping-cart\" | \"sign-in\" | \"sign-out\" | \"signature\" | \"sliders-h\" | \"sliders-v\" | \"sort\" | \"star-fill\" | \"star-half-fill\" | \"tag\" | \"three-bars\" | \"time-reverse\" | \"tools\" | \"trashcan\" | \"triangle-down\" | \"triangle-left\" | \"triangle-right\" | \"triangle-up\" | \"unlock\" | \"upload\" | \"video-camera\" | \"x\" | \"x-circle\" | \"x-circle-fill\" | \"zoom-in\" | \"zoom-out\"",
133
- "references": {
134
- "IconName": {
135
- "location": "import",
136
- "path": "../xpl-icon/xpl-icon"
137
- }
138
- }
139
- },
140
- "required": false,
141
- "optional": true,
142
- "docs": {
143
- "tags": [],
144
- "text": "Whether to display the icon or not."
145
- },
146
- "attribute": "icon",
147
- "reflect": false
148
- }
149
- };
150
- }
151
- static get elementRef() { return "el"; }
152
- static get watchers() {
153
- return [{
154
- "propName": "stat",
155
- "methodName": "watchStat"
156
- }, {
157
- "propName": "shortStat",
158
- "methodName": "watchShortStat"
159
- }];
160
- }
161
- }
162
- //# sourceMappingURL=xpl-data-card.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-data-card.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-data-card/xpl-data-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAMzE,MAAM,OAAO,WAAW;;;;;;;;;EAkCpB,SAAS,CAAC,QAAgB;IACtB,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;EACzB,CAAC;EAGD,cAAc,CAAC,QAAgB;IAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;EAC9B,CAAC;EAED,gBAAgB;IACZ,IAAI,IAAI,CAAC,IAAI,EAAE;MACX,MAAM,QAAQ,GACV,IAAI,CAAC,EAAE,CAAC,oBAAoB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,gBACI,IAAI,EAAE,IAAI,CAAC,IAAI,sBACG,UAAU,EAC5B,IAAI,EAAE,EAAE,GACA,CACf;UACA,IAAI,CAAC,IAAI,IAAI,CACV,YAAM,KAAK,EAAC,8BAA8B;YACtC,gBACI,IAAI,EAAC,eAAe,EACpB,IAAI,EAAE,EAAE,GACA,CACT,CACV,CACC;QACN,YAAM,KAAK,EAAE,IAAI,CAAC,SAAS,IAAI,0BAA0B,IACpD,IAAI,CAAC,IAAI,CACP;QACN,IAAI,CAAC,SAAS,IAAI,CACf,YAAM,KAAK,EAAC,2BAA2B;UACnC,YAAM,KAAK,EAAE,IAAI,CAAC,IAAI,IAAG,IAAI,CAAC,SAAS,CAAQ,CAC5C,CACV,CACA,CACF,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from '@stencil/core';\nimport { IconName } from '../xpl-icon/xpl-icon';\n\n@Component({\n tag: 'xpl-data-card',\n})\nexport class XplDataCard {\n @Element() el: HTMLXplDataCardElement;\n /**\n * Whether the card is a link\n */\n @Prop() link?: boolean;\n /**\n * Name Term\n */\n @Prop() name: string;\n /**\n * Detail, stat, or value to be displayed.\n * Will be rendered when card is larger than 441px.\n * Will also appear in the tooltip when shortStat\n * is shown.\n */\n @Prop() stat: string;\n /**\n * Detail, stat, or value to be displayed\n * in short format. Will be rendered when card is\n * smaller than 441px.\n */\n @Prop() shortStat?: string;\n /**\n * Color variant. Used to set the icon\n * color and background.\n */\n @Prop() variant?: 'primary' | 'secondary';\n /**\n * Whether to display the icon or not.\n */\n @Prop() icon?: IconName;\n\n @Watch('stat')\n watchStat(newValue: string) {\n this.stat = newValue;\n }\n\n @Watch('shortStat')\n watchShortStat(newValue: string) {\n this.shortStat = newValue;\n }\n\n componentDidLoad() {\n if (this.link) {\n const anchorEl =\n this.el.getElementsByTagName('a')[0] ||\n this.el.getElementsByTagName('button')[0];\n const anchorText = document.createTextNode(this.name);\n const anchorSpan = document.createElement('span');\n anchorSpan.appendChild(anchorText);\n\n anchorEl.setAttribute('class', 'xpl-data-card__anchor');\n anchorEl.appendChild(anchorSpan);\n }\n return;\n }\n\n render() {\n const bgColorHue = this.variant === 'secondary' ? 'purple' : 'orange';\n let headerClasses = `xpl-data-card__header${\n !this.icon ? '--no-icon ' : ' '\n }`;\n headerClasses +=\n this.variant === 'secondary'\n ? 'xpl-data-card__header--secondary'\n : 'xpl-data-card__header--primary';\n return (\n <Host\n role=\"group\"\n class={`xpl-data-card ${this.link && 'xpl-data-card__link'}`}\n tabindex=\"0\"\n >\n {this.link &&\n (this.shortStat ? (\n <abbr title={this.stat}>\n <slot></slot>\n </abbr>\n ) : (\n <slot></slot>\n ))}\n <dt>{this.name}</dt>\n <dd>\n <div class={headerClasses}>\n {!!this.icon && (\n <xpl-icon\n icon={this.icon}\n background-color={bgColorHue}\n size={20}\n ></xpl-icon>\n )}\n {this.link && (\n <span class=\"xpl-data-card__header__arrow\">\n <xpl-icon\n icon=\"chevron-right\"\n size={16}\n ></xpl-icon>\n </span>\n )}\n </div>\n <span class={this.shortStat && 'xpl-data-card__long_stat'}>\n {this.stat}\n </span>\n {this.shortStat && (\n <span class=\"xpl-data-card__short_stat\">\n <abbr title={this.stat}>{this.shortStat}</abbr>\n </span>\n )}\n </dd>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-divider.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-divider/xpl-divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAKzD,MAAM,OAAO,UAAU;;;;EAQnB,MAAM;IACF,IAAI,SAAS,GAAG,aAAa,CAAC;IAC9B,SAAS,IAAI,iBAAiB,IAAI,CAAC,IAAI,EAAE,CAAC;IAE1C,OAAO,CACH,EAAC,IAAI,IAAC,KAAK,EAAE,SAAS;MAClB;QACI,eAAa,CACV,CACJ,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xpl-divider',\n})\nexport class XplDivider {\n /**\n * The tier should be an integer between 0 and 3.\n * Tier 0 dividers do not display text, and 1-3 increase\n * in size with each increasing tier.\n */\n @Prop() tier?: number;\n\n render() {\n let className = 'xpl-divider';\n className += ` xpl-divider--${this.tier}`;\n\n return (\n <Host class={className}>\n <span>\n <slot></slot>\n </span>\n </Host>\n );\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dropdownoption.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdownoption.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-dropdown/dropdownoption.ts"],"names":[],"mappings":"","sourcesContent":["export interface DropdownOption {\n label: string;\n value?: string;\n isSelected?: boolean;\n isDisabled?: boolean;\n}\n\nexport type DropdownItem = Partial<DropdownOption & DropdownOptionGroup>;\n\nexport interface DropdownOptionGroup {\n groupName: string;\n options: DropdownItem[];\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-dropdown-group.js","sourceRoot":"","sources":["../../../../../src/components/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAIzD,MAAM,OAAO,gBAAgB;;;;;EAOzB,MAAM;IACF,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEpC,MAAM,UAAU,GAAG,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAC7C,MAAM,aAAa,GACf,UAAU;MACV,OAAO,CAAC,GAAG,CAAC,CAAC,EAA4B,EAAE,EAAE;YAAhC,EAAE,SAAS,OAAiB,EAAZ,UAAU,cAA1B,aAA4B,CAAF;QACnC,OAAA,SAAS,CAAC,CAAC,CAAC,CACR,wCACI,KAAK,EAAE,SAAS,IACZ,UAAU,EACI,CACzB,CAAC,CAAC,CAAC,CACA,2CAAyB,UAAU,EAAwB,CAC9D,CAAA;OAAA,CACJ,CAAC;IACN,OAAO,CACH,EAAC,IAAI,IAAC,IAAI,EAAC,OAAO,gBAAa,SAAS;MACpC,UAAI,KAAK,EAAC,wBAAwB;QAC9B,4BACI,KAAK,EAAE,SAAS,GACI;QACxB,UAAI,KAAK,EAAC,mBAAmB,IACxB,aAAa,IAAI,YAAM,IAAI,EAAC,SAAS,GAAQ,CAC7C,CACJ,CACF,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\nimport type { DropdownOptionGroup } from '../dropdownoption';\n\n@Component({ tag: 'xpl-dropdown-group' })\nexport class XplDropdownGroup {\n /** text to display as heading */\n @Prop({ attribute: 'label' }) groupName: string;\n\n /** options that are listed */\n @Prop() options?: DropdownOptionGroup['options'];\n\n render() {\n const { groupName, options } = this;\n\n const hasOptions = options && options.length;\n const mappedOptions =\n hasOptions &&\n options.map(({ groupName, ...properties }) =>\n groupName ? (\n <xpl-dropdown-group\n label={groupName}\n {...properties}\n ></xpl-dropdown-group>\n ) : (\n <xpl-dropdown-option {...properties}></xpl-dropdown-option>\n )\n );\n return (\n <Host role=\"group\" aria-label={groupName}>\n <li class=\"xpl-dropdown-list-item\">\n <xpl-dropdown-heading\n label={groupName}\n ></xpl-dropdown-heading>\n <ul class=\"xpl-dropdown-list\">\n {mappedOptions || <slot name=\"options\"></slot>}\n </ul>\n </li>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-dropdown-heading.js","sourceRoot":"","sources":["../../../../../src/components/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGzD,MAAM,OAAO,kBAAkB;;;;EAI3B,MAAM;IACF,OAAO,CACH,EAAC,IAAI,IAAC,KAAK,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAC,cAAc;MAC9D,gBAAO,IAAI,CAAC,KAAK,IAAI,YAAM,IAAI,EAAC,SAAS,GAAQ,CAAQ,CACtD,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({ tag: 'xpl-dropdown-heading' })\nexport class XplDropdownHeading {\n /** text to display as heading */\n @Prop() label: string;\n\n render() {\n return (\n <Host class={{ 'xpl-dropdown-heading': true }} role=\"presentation\">\n <span>{this.label || <slot name=\"heading\"></slot>}</span>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-dropdown-option.js","sourceRoot":"","sources":["../../../../../src/components/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGlE,MAAM,OAAO,iBAAiB;;;;;;;EAqB1B,iBAAiB;IACb,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;EAC7D,CAAC;EAEO,WAAW,CAAC,EAAgB;IAChC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;IAE9C,IAAI,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,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AAC;EAED,iBAAiB;IACb,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;EAC5E,CAAC;EAED,oBAAoB;IAChB,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAChE,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;EACpE,CAAC;EAED,MAAM;IACF,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAEtD,OAAO,CACH,EAAC,IAAI,IACD,KAAK,EAAE;QACH,qBAAqB,EAAE,IAAI;QAC3B,+BAA+B,EAAE,UAAU;QAC3C,+BAA+B,EAAE,UAAU;OAC9C,EACD,IAAI,EAAC,QAAQ,kBACC,UAAU,mBACT,UAAU,mBACV,UAAU,EACzB,KAAK,EAAE,KAAK;MAEZ,UAAI,KAAK,EAAC,wBAAwB,IAC7B,KAAK,IAAI,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACpC,CACF,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Element, Host, h, Prop } from '@stencil/core';\n\n@Component({ tag: 'xpl-dropdown-option' })\nexport class XplDropdownOption {\n /** whether option is disabled */\n @Prop({ attribute: 'disabled', reflect: true }) isDisabled?: boolean;\n\n /**\n * text to display for option\n */\n @Prop() label: string;\n\n /**\n * The selected options value to be submitted with the form, should this option be selected.\n */\n @Prop() value?: string;\n\n /** whether option is selected */\n @Prop({ attribute: 'selected' })\n isSelected?: boolean;\n\n @Element() hostElement: HTMLXplDropdownOptionElement;\n private dropdown: HTMLXplDropdownElement;\n\n componentWillLoad() {\n this.dropdown = this.hostElement.closest('xpl-dropdown');\n }\n\n private handleClick(ev: PointerEvent) {\n const { closeOnSelect, mode } = this.dropdown;\n\n if (Boolean(ev.x && ev.y)) {\n this.dropdown.handleSelect(ev, { component: this });\n\n if (mode === 'single' && closeOnSelect)\n this.dropdown.isOpen = false;\n }\n }\n\n private handleKeyup(ev: KeyboardEvent) {\n const { dropdown } = this;\n\n const navigationKeys = [\n 'ArrowDown',\n 'ArrowLeft',\n 'ArrowRight',\n 'ArrowUp',\n 'Tab',\n ];\n const { closeOnSelect, mode, selectOnFocus } = this.dropdown;\n\n if (selectOnFocus && navigationKeys.includes(ev.key)) {\n const hostElement = document.activeElement.closest(\n 'xpl-dropdown-option'\n );\n const component = {\n component: { hostElement } as XplDropdownOption,\n };\n dropdown.handleSelect(ev, component);\n\n if (mode === 'single' && closeOnSelect)\n this.dropdown.isOpen = false;\n return;\n }\n\n const selectionKeys = ['Escape', 'Enter'];\n if (selectionKeys.includes(ev.key)) {\n dropdown.handleSelect(ev, { component: this });\n\n if (this.dropdown.closeOnSelect) this.dropdown.isOpen = false;\n }\n }\n\n connectedCallback() {\n this.hostElement.addEventListener('click', this.handleClick.bind(this));\n this.hostElement.addEventListener('keyup', this.handleKeyup.bind(this));\n }\n\n disconnectedCallback() {\n this.hostElement.removeEventListener('click', this.handleClick);\n this.hostElement.removeEventListener('keyup', this.handleKeyup);\n }\n\n render() {\n const { label, isSelected, isDisabled, value } = this;\n\n return (\n <Host\n class={{\n 'xpl-dropdown-option': true,\n 'xpl-dropdown-option--disabled': isDisabled,\n 'xpl-dropdown-option--selected': isSelected,\n }}\n role=\"option\"\n aria-checked={isSelected}\n aria-disabled={isDisabled}\n aria-selected={isSelected}\n value={value}\n >\n <li class=\"xpl-dropdown-list-item\">\n {label || <slot name=\"option\"></slot>}\n </li>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-dropdown.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-dropdown/xpl-dropdown.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAK1E,MAAM,OAAO,WAAW;;IAsFZ,uBAAkB,GAAG,CAAC,EAAE,MAAM,EAAc,EAAQ,EAAE;MAC1D,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;MAC3B,MAAM,SAAS,GAAG,SAAS,IAAK,MAAsB,CAAC,EAAE,KAAK,SAAS,CAAC;MACxE,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CACtC,MAAkC,CACrC,CAAC;MAEF,IAAI,CAAC,QAAQ,IAAI,CAAC,SAAS;QAAE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACrD,CAAC,CAAC;kBA3FE,KAAK;yBAGwB,IAAI;gBAGF,QAAQ;;yBAMV,KAAK;;;;EAetC;;KAEG;EAEH,KAAK,CAAC,YAAY,CACd,CAAC,EACD,EAAE,SAAS,EAAoC;IAE/C,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACpD,MAAM,QAAQ,GAAG,IAAI,KAAK,QAAQ,CAAC;IACnC,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IAEjC,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;MAClB,OAAO;SACF,MAAM,CACH,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC;QACX,GAAG,GAAG;QACN,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;OAC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,EAAC,SAAS,GAAQ,CAC7C,CACF,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Element, h, Host, Method, Prop } from '@stencil/core';\nimport type { DropdownItem } from './dropdownoption';\nimport type { XplDropdownOption } from './xpl-dropdown-option/xpl-dropdown-option';\n\n@Component({ tag: 'xpl-dropdown' })\nexport class XplDropdown {\n /** text to display as heading */\n @Prop({ attribute: 'open', mutable: true, reflect: true }) isOpen: boolean =\n false;\n\n /** options that are listed */\n @Prop() closeOnSelect: boolean = true;\n\n /** constant representing number of options that can be selected */\n @Prop() mode: 'single' | 'multi' = 'single';\n\n /** options that are listed */\n @Prop() options?: DropdownItem[];\n\n /** whether selection should be made when focusing on interactable element */\n @Prop() selectOnFocus: boolean = false;\n\n /** the id for the element that triggers the open state */\n @Prop() triggerId: string;\n\n /**\n * @callback update\n * @param {Object} e - event object\n * @param {Object} options - component\n */\n /** call back function invoked when a selection is made */\n @Prop() update?: (e, { component }: { component: XplDropdown }) => void;\n\n @Element() hostElement: HTMLXplDropdownElement;\n\n /**\n * called on dropdown option click and keydown events to update isSelected states\n */\n @Method()\n async handleSelect(\n e,\n { component }: { component: XplDropdownOption }\n ): Promise<void> {\n const { hostElement, mode, options, update } = this;\n const isSingle = mode === 'single';\n const isMulti = mode === 'multi';\n\n if (Boolean(options)) {\n options\n .reduce<typeof options>(\n (acc, curr) => [\n ...acc,\n ...(curr.groupName ? curr.options : [curr]),\n ],\n []\n )\n .forEach((option) => {\n const isMatch =\n (option.value || option.label) ===\n (component.hostElement.value ||\n component.hostElement.label);\n if (isSingle) {\n option.isSelected = isMatch;\n component.hostElement.isSelected = option.isSelected;\n } else if (isMulti && isMatch) {\n option.isSelected = !option.isSelected;\n component.hostElement.isSelected = option.isSelected;\n }\n });\n\n const mapOptions = (option: DropdownItem): DropdownItem => {\n option.options = option.groupName\n ? option.options.map(mapOptions)\n : undefined;\n return option;\n };\n this.options = options.map(mapOptions);\n } else if (isSingle) {\n const optionNodes = Array.from(\n hostElement.querySelectorAll('xpl-dropdown-option')\n );\n optionNodes.forEach(\n (node) => (node.isSelected = node === component.hostElement)\n );\n } else if (isMulti) {\n component.isSelected = !component.isSelected;\n }\n\n if (Boolean(update)) update(e, { component: this });\n }\n\n private handleClickOutside = ({ target }: MouseEvent): void => {\n const { triggerId } = this;\n const isTrigger = triggerId && (target as HTMLElement).id === triggerId;\n const isInside = this.hostElement.contains(\n target as undefined as HTMLElement\n );\n\n if (!isInside && !isTrigger) this.isOpen = false;\n };\n\n componentWillLoad() {\n this.handleSelect = this.handleSelect.bind(this);\n }\n\n connectedCallback() {\n document.addEventListener(\n 'mousedown',\n this.handleClickOutside.bind(this)\n );\n }\n\n disconnectedCallback() {\n document.removeEventListener('mousedown', this.handleClickOutside);\n }\n\n render() {\n let { isOpen } = this;\n\n const { mode, options } = this;\n\n const hasOptions = options && options.length;\n const mappedOptions =\n hasOptions &&\n options.map(({ groupName, options, ...properties }) =>\n groupName ? (\n <xpl-dropdown-group\n groupName={groupName}\n options={options}\n {...properties}\n ></xpl-dropdown-group>\n ) : (\n <xpl-dropdown-option {...properties}></xpl-dropdown-option>\n )\n );\n\n return (\n <Host\n aria-expanded={isOpen}\n class={{\n 'xpl-dropdown': true,\n 'xpl-dropdown--multi': mode === 'multi',\n 'xpl-dropdown--open': isOpen,\n }}\n role=\"listbox\"\n >\n <ul class=\"xpl-dropdown-list\">\n {mappedOptions || <slot name=\"options\"></slot>}\n </ul>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-grid.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-grid/xpl-grid.tsx"],"names":[],"mappings":"AAA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C;EACrC,CAAC;;;CACJ","sourcesContent":["import { Component, Host, h, Element } from '@stencil/core';\n\n@Component({\n tag: 'xpl-grid',\n})\nexport class XplGrid {\n @Element() container: HTMLXplGridElement;\n\n componentDidLoad() {\n const items = Array.from(\n this.container.querySelectorAll('.xpl-grid-item')\n );\n\n let lgCounter = 0,\n mdCounter = 0,\n smCounter = 0,\n xsCounter = 0;\n\n items.forEach((item) => {\n lgCounter += +item.getAttribute('lg') || 6;\n mdCounter += +item.getAttribute('md') || 6;\n smCounter += +item.getAttribute('sm') || 6;\n xsCounter += +item.getAttribute('xs') || 6;\n\n if (lgCounter % 6 === 0)\n item.classList.add('xpl-grid-item-lg-last');\n if (mdCounter % 6 === 0)\n item.classList.add('xpl-grid-item-md-last');\n if (smCounter % 6 === 0)\n item.classList.add('xpl-grid-item-sm-last');\n if (xsCounter % 6 === 0)\n item.classList.add('xpl-grid-item-xs-last');\n });\n }\n\n render() {\n return <Host class=\"xpl-grid\" />;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xpl-grid-item.js","sourceRoot":"","sources":["../../../../src/components/components/xpl-grid-item/xpl-grid-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAKzD,MAAM,OAAO,WAAW;;cACC,CAAC;cACD,CAAC;cACD,CAAC;cACD,CAAC;;EAEtB,MAAM;IACF,IAAI,SAAS,GAAG,eAAe,CAAC;IAChC,SAAS,IAAI,qBAAqB,IAAI,CAAC,EAAE,EAAE,CAAC;IAC5C,SAAS,IAAI,qBAAqB,IAAI,CAAC,EAAE,EAAE,CAAC;IAC5C,SAAS,IAAI,qBAAqB,IAAI,CAAC,EAAE,EAAE,CAAC;IAC5C,SAAS,IAAI,qBAAqB,IAAI,CAAC,EAAE,EAAE,CAAC;IAE5C,OAAO,CACH,EAAC,IAAI,IAAC,KAAK,EAAE,SAAS;MAClB,eAAa,CACV,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xpl-grid-item',\n})\nexport class XplGridItem {\n @Prop() xs: number = 6;\n @Prop() sm: number = 6;\n @Prop() md: number = 6;\n @Prop() lg: number = 6;\n\n render() {\n let className = 'xpl-grid-item';\n className += ` xpl-grid-item-xs-${this.xs}`;\n className += ` xpl-grid-item-sm-${this.sm}`;\n className += ` xpl-grid-item-md-${this.md}`;\n className += ` xpl-grid-item-lg-${this.lg}`;\n\n return (\n <Host class={className}>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1,5 +0,0 @@
1
- .xpl-icon {
2
- align-items: center;
3
- display: grid;
4
- justify-content: center;
5
- }