@xplortech/apollo-core 1.0.0-beta.7 → 1.0.0-beta.9

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 (571) hide show
  1. package/dist/apollo-core/apollo-core.css +5841 -9
  2. package/dist/apollo-core/apollo-core.esm.js +163 -1
  3. package/dist/apollo-core/apollo-core.esm.js.map +1 -0
  4. package/dist/apollo-core/app-globals-0f993ce5.js +5 -0
  5. package/dist/apollo-core/app-globals-0f993ce5.js.map +1 -0
  6. package/dist/apollo-core/css-shim-6210ce77.js +6 -0
  7. package/dist/apollo-core/css-shim-6210ce77.js.map +1 -0
  8. package/dist/apollo-core/dom-423bdd70.js +75 -0
  9. package/dist/apollo-core/dom-423bdd70.js.map +1 -0
  10. package/dist/apollo-core/index-307c7018.js +3397 -0
  11. package/dist/apollo-core/index-307c7018.js.map +1 -0
  12. package/dist/apollo-core/index-912d1a21.js +586 -0
  13. package/dist/apollo-core/index-912d1a21.js.map +1 -0
  14. package/dist/apollo-core/index.esm.js +3 -0
  15. package/dist/apollo-core/index.esm.js.map +1 -0
  16. package/dist/apollo-core/p-08abab41.entry.js +2 -0
  17. package/dist/apollo-core/p-08abab41.entry.js.map +1 -0
  18. package/dist/apollo-core/p-16654189.entry.js +2 -0
  19. package/dist/apollo-core/p-16654189.entry.js.map +1 -0
  20. package/dist/apollo-core/p-2f90296c.js +3 -3
  21. package/dist/apollo-core/p-2f90296c.js.map +1 -0
  22. package/dist/apollo-core/p-315920cd.entry.js +2 -0
  23. package/dist/apollo-core/p-315920cd.entry.js.map +1 -0
  24. package/dist/apollo-core/p-3c934536.entry.js +2 -0
  25. package/dist/apollo-core/p-3c934536.entry.js.map +1 -0
  26. package/dist/apollo-core/p-47a55fa9.entry.js +2 -0
  27. package/dist/apollo-core/p-47a55fa9.entry.js.map +1 -0
  28. package/dist/apollo-core/p-485d0c40.entry.js +2 -0
  29. package/dist/apollo-core/p-485d0c40.entry.js.map +1 -0
  30. package/dist/apollo-core/p-5a038a8e.entry.js +2 -0
  31. package/dist/apollo-core/p-5a038a8e.entry.js.map +1 -0
  32. package/dist/apollo-core/p-88135928.entry.js +2 -0
  33. package/dist/apollo-core/p-88135928.entry.js.map +1 -0
  34. package/dist/apollo-core/p-91d6572c.entry.js +2 -0
  35. package/dist/apollo-core/p-91d6572c.entry.js.map +1 -0
  36. package/dist/apollo-core/p-ad90fe4d.js +2 -1
  37. package/dist/apollo-core/p-ad90fe4d.js.map +1 -0
  38. package/dist/apollo-core/p-ae99c266.entry.js +2 -0
  39. package/dist/apollo-core/p-ae99c266.entry.js.map +1 -0
  40. package/dist/apollo-core/p-aeef61dd.entry.js +2 -0
  41. package/dist/apollo-core/p-aeef61dd.entry.js.map +1 -0
  42. package/dist/apollo-core/p-c1b28f32.entry.js +2 -0
  43. package/dist/apollo-core/p-c1b28f32.entry.js.map +1 -0
  44. package/dist/apollo-core/p-ce6cb219.entry.js +2 -0
  45. package/dist/apollo-core/p-ce6cb219.entry.js.map +1 -0
  46. package/dist/apollo-core/p-cf2e6132.js +3 -0
  47. package/dist/apollo-core/p-cf2e6132.js.map +1 -0
  48. package/dist/apollo-core/p-e9cd309e.entry.js +2 -0
  49. package/dist/apollo-core/p-e9cd309e.entry.js.map +1 -0
  50. package/dist/apollo-core/p-f5561238.entry.js +2 -0
  51. package/dist/apollo-core/p-f5561238.entry.js.map +1 -0
  52. package/dist/apollo-core/p-ff46d20f.entry.js +2 -0
  53. package/dist/apollo-core/p-ff46d20f.entry.js.map +1 -0
  54. package/dist/{custom-elements/index.js → apollo-core/regular-133c23b5.js} +13 -4197
  55. package/dist/apollo-core/regular-133c23b5.js.map +1 -0
  56. package/dist/apollo-core/shadow-css-f0279020.js +389 -0
  57. package/dist/apollo-core/shadow-css-f0279020.js.map +1 -0
  58. package/dist/apollo-core/xpl-application-shell.entry.js +51 -0
  59. package/dist/apollo-core/xpl-application-shell.entry.js.map +1 -0
  60. package/dist/apollo-core/xpl-avatar.entry.js +28 -0
  61. package/dist/apollo-core/xpl-avatar.entry.js.map +1 -0
  62. package/dist/apollo-core/xpl-backdrop.entry.js +19 -0
  63. package/dist/apollo-core/xpl-backdrop.entry.js.map +1 -0
  64. package/dist/apollo-core/xpl-badge.entry.js +21 -0
  65. package/dist/apollo-core/xpl-badge.entry.js.map +1 -0
  66. package/dist/apollo-core/xpl-breadcrumb-item.entry.js +19 -0
  67. package/dist/apollo-core/xpl-breadcrumb-item.entry.js.map +1 -0
  68. package/dist/apollo-core/xpl-breadcrumbs.entry.js +14 -0
  69. package/dist/apollo-core/xpl-breadcrumbs.entry.js.map +1 -0
  70. package/dist/apollo-core/xpl-button-row.entry.js +23 -0
  71. package/dist/apollo-core/xpl-button-row.entry.js.map +1 -0
  72. package/dist/apollo-core/xpl-button.entry.js +60 -0
  73. package/dist/apollo-core/xpl-button.entry.js.map +1 -0
  74. package/dist/apollo-core/xpl-checkbox.entry.js +35 -0
  75. package/dist/apollo-core/xpl-checkbox.entry.js.map +1 -0
  76. package/dist/apollo-core/xpl-choicelist.entry.js +48 -0
  77. package/dist/apollo-core/xpl-choicelist.entry.js.map +1 -0
  78. package/dist/apollo-core/xpl-content-area.entry.js +15 -0
  79. package/dist/apollo-core/xpl-content-area.entry.js.map +1 -0
  80. package/dist/apollo-core/xpl-divider.entry.js +17 -0
  81. package/dist/apollo-core/xpl-divider.entry.js.map +1 -0
  82. package/dist/apollo-core/xpl-dropdown-group.entry.js +35 -0
  83. package/dist/apollo-core/xpl-dropdown-group.entry.js.map +1 -0
  84. package/dist/apollo-core/xpl-dropdown-heading.entry.js +15 -0
  85. package/dist/apollo-core/xpl-dropdown-heading.entry.js.map +1 -0
  86. package/dist/apollo-core/xpl-dropdown-option.entry.js +70 -0
  87. package/dist/apollo-core/xpl-dropdown-option.entry.js.map +1 -0
  88. package/dist/apollo-core/xpl-dropdown.entry.js +106 -0
  89. package/dist/apollo-core/xpl-dropdown.entry.js.map +1 -0
  90. package/dist/apollo-core/xpl-grid-item.entry.js +23 -0
  91. package/dist/apollo-core/xpl-grid-item.entry.js.map +1 -0
  92. package/dist/apollo-core/xpl-grid.entry.js +33 -0
  93. package/dist/apollo-core/xpl-grid.entry.js.map +1 -0
  94. package/dist/apollo-core/xpl-input.entry.js +2553 -0
  95. package/dist/apollo-core/xpl-input.entry.js.map +1 -0
  96. package/dist/apollo-core/xpl-list.entry.js +37 -0
  97. package/dist/apollo-core/xpl-list.entry.js.map +1 -0
  98. package/dist/apollo-core/xpl-main-nav.entry.js +25 -0
  99. package/dist/apollo-core/xpl-main-nav.entry.js.map +1 -0
  100. package/dist/apollo-core/xpl-nav-item.entry.js +25 -0
  101. package/dist/apollo-core/xpl-nav-item.entry.js.map +1 -0
  102. package/dist/apollo-core/xpl-pagination.entry.js +77 -0
  103. package/dist/apollo-core/xpl-pagination.entry.js.map +1 -0
  104. package/dist/apollo-core/xpl-radio.entry.js +34 -0
  105. package/dist/apollo-core/xpl-radio.entry.js.map +1 -0
  106. package/dist/apollo-core/xpl-secondary-nav.entry.js +14 -0
  107. package/dist/apollo-core/xpl-secondary-nav.entry.js.map +1 -0
  108. package/dist/apollo-core/xpl-select.entry.js +680 -0
  109. package/dist/apollo-core/xpl-select.entry.js.map +1 -0
  110. package/dist/apollo-core/xpl-table.entry.js +109 -0
  111. package/dist/apollo-core/xpl-table.entry.js.map +1 -0
  112. package/dist/apollo-core/xpl-tag.entry.js +19 -0
  113. package/dist/apollo-core/xpl-tag.entry.js.map +1 -0
  114. package/dist/apollo-core/xpl-toggle.entry.js +35 -0
  115. package/dist/apollo-core/xpl-toggle.entry.js.map +1 -0
  116. package/dist/apollo-core/xpl-utility-bar.entry.js +31 -0
  117. package/dist/apollo-core/xpl-utility-bar.entry.js.map +1 -0
  118. package/dist/cjs/apollo-core.cjs.js +154 -5
  119. package/dist/cjs/apollo-core.cjs.js.map +1 -0
  120. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  121. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  122. package/dist/cjs/css-shim-0a6fd78d.js +8 -0
  123. package/dist/cjs/css-shim-0a6fd78d.js.map +1 -0
  124. package/dist/cjs/dom-2c6adc90.js +77 -0
  125. package/dist/cjs/dom-2c6adc90.js.map +1 -0
  126. package/dist/cjs/index-0fdb260e.js +3564 -0
  127. package/dist/cjs/index-0fdb260e.js.map +1 -0
  128. package/dist/cjs/index-318d5fc7.js +588 -0
  129. package/dist/cjs/index-318d5fc7.js.map +1 -0
  130. package/dist/cjs/{index-acf3dd7a.js → index-e53b018b.js} +675 -215
  131. package/dist/cjs/index-e53b018b.js.map +1 -0
  132. package/dist/cjs/index.cjs.js +3 -0
  133. package/dist/cjs/index.cjs.js.map +1 -0
  134. package/dist/cjs/loader.cjs.js +24 -3
  135. package/dist/cjs/loader.cjs.js.map +1 -0
  136. package/dist/cjs/regular-503465f4.js +16056 -0
  137. package/dist/cjs/regular-503465f4.js.map +1 -0
  138. package/dist/cjs/regular-872f5226.js +2 -0
  139. package/dist/cjs/regular-872f5226.js.map +1 -0
  140. package/dist/cjs/shadow-css-39dfcfae.js +391 -0
  141. package/dist/cjs/shadow-css-39dfcfae.js.map +1 -0
  142. package/dist/cjs/v4-14140ff3.js +2 -0
  143. package/dist/cjs/v4-14140ff3.js.map +1 -0
  144. package/dist/cjs/xpl-application-shell.cjs.entry.js +4 -13
  145. package/dist/cjs/xpl-application-shell.cjs.entry.js.map +1 -0
  146. package/dist/cjs/xpl-avatar.cjs.entry.js +32 -0
  147. package/dist/cjs/xpl-avatar.cjs.entry.js.map +1 -0
  148. package/dist/cjs/xpl-avatar_12.cjs.entry.js +74 -38
  149. package/dist/cjs/xpl-avatar_12.cjs.entry.js.map +1 -0
  150. package/dist/cjs/xpl-backdrop.cjs.entry.js +3 -5
  151. package/dist/cjs/xpl-backdrop.cjs.entry.js.map +1 -0
  152. package/dist/cjs/xpl-badge.cjs.entry.js +25 -0
  153. package/dist/cjs/xpl-badge.cjs.entry.js.map +1 -0
  154. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +23 -0
  155. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js.map +1 -0
  156. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +18 -0
  157. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js.map +1 -0
  158. package/dist/cjs/xpl-button-row.cjs.entry.js +6 -1
  159. package/dist/cjs/xpl-button-row.cjs.entry.js.map +1 -0
  160. package/dist/cjs/xpl-button.cjs.entry.js +64 -0
  161. package/dist/cjs/xpl-button.cjs.entry.js.map +1 -0
  162. package/dist/cjs/xpl-checkbox.cjs.entry.js +39 -0
  163. package/dist/cjs/xpl-checkbox.cjs.entry.js.map +1 -0
  164. package/dist/cjs/xpl-choicelist.cjs.entry.js +10 -1
  165. package/dist/cjs/xpl-choicelist.cjs.entry.js.map +1 -0
  166. package/dist/cjs/xpl-content-area.cjs.entry.js +19 -0
  167. package/dist/cjs/xpl-content-area.cjs.entry.js.map +1 -0
  168. package/dist/cjs/xpl-divider.cjs.entry.js +4 -1
  169. package/dist/cjs/xpl-divider.cjs.entry.js.map +1 -0
  170. package/dist/cjs/xpl-dropdown-group.cjs.entry.js +39 -0
  171. package/dist/cjs/xpl-dropdown-group.cjs.entry.js.map +1 -0
  172. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +12 -3
  173. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +1 -0
  174. package/dist/cjs/xpl-dropdown-heading.cjs.entry.js +19 -0
  175. package/dist/cjs/xpl-dropdown-heading.cjs.entry.js.map +1 -0
  176. package/dist/cjs/xpl-dropdown-option.cjs.entry.js +74 -0
  177. package/dist/cjs/xpl-dropdown-option.cjs.entry.js.map +1 -0
  178. package/dist/cjs/xpl-dropdown.cjs.entry.js +110 -0
  179. package/dist/cjs/xpl-dropdown.cjs.entry.js.map +1 -0
  180. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +13 -10
  181. package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +1 -0
  182. package/dist/cjs/xpl-grid-item.cjs.entry.js +3 -1
  183. package/dist/cjs/xpl-grid-item.cjs.entry.js.map +1 -0
  184. package/dist/cjs/xpl-grid.cjs.entry.js +3 -1
  185. package/dist/cjs/xpl-grid.cjs.entry.js.map +1 -0
  186. package/dist/cjs/xpl-input.cjs.entry.js +40 -17
  187. package/dist/cjs/xpl-input.cjs.entry.js.map +1 -0
  188. package/dist/cjs/xpl-list.cjs.entry.js +4 -24
  189. package/dist/cjs/xpl-list.cjs.entry.js.map +1 -0
  190. package/dist/cjs/xpl-main-nav.cjs.entry.js +3 -4
  191. package/dist/cjs/xpl-main-nav.cjs.entry.js.map +1 -0
  192. package/dist/cjs/xpl-nav-item.cjs.entry.js +29 -0
  193. package/dist/cjs/xpl-nav-item.cjs.entry.js.map +1 -0
  194. package/dist/cjs/xpl-pagination.cjs.entry.js +7 -2
  195. package/dist/cjs/xpl-pagination.cjs.entry.js.map +1 -0
  196. package/dist/cjs/xpl-radio.cjs.entry.js +38 -0
  197. package/dist/cjs/xpl-radio.cjs.entry.js.map +1 -0
  198. package/dist/cjs/xpl-secondary-nav.cjs.entry.js +18 -0
  199. package/dist/cjs/xpl-secondary-nav.cjs.entry.js.map +1 -0
  200. package/dist/cjs/xpl-select.cjs.entry.js +86 -27
  201. package/dist/cjs/xpl-select.cjs.entry.js.map +1 -0
  202. package/dist/cjs/xpl-table.cjs.entry.js +113 -0
  203. package/dist/cjs/xpl-table.cjs.entry.js.map +1 -0
  204. package/dist/cjs/xpl-tag.cjs.entry.js +23 -0
  205. package/dist/cjs/xpl-tag.cjs.entry.js.map +1 -0
  206. package/dist/cjs/xpl-toggle.cjs.entry.js +11 -6
  207. package/dist/cjs/xpl-toggle.cjs.entry.js.map +1 -0
  208. package/dist/cjs/xpl-utility-bar.cjs.entry.js +35 -0
  209. package/dist/cjs/xpl-utility-bar.cjs.entry.js.map +1 -0
  210. package/dist/collection/collection-manifest.json +2 -2
  211. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +119 -132
  212. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +1 -0
  213. package/dist/collection/components/xpl-avatar/xpl-avatar.js +151 -144
  214. package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +1 -0
  215. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +27 -28
  216. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +1 -0
  217. package/dist/collection/components/xpl-badge/xpl-badge.js +44 -39
  218. package/dist/collection/components/xpl-badge/xpl-badge.js.map +1 -0
  219. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +3 -5
  220. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +1 -0
  221. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +3 -5
  222. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +1 -0
  223. package/dist/collection/components/xpl-button/xpl-button.js +205 -205
  224. package/dist/collection/components/xpl-button/xpl-button.js.map +1 -0
  225. package/dist/collection/components/xpl-button-row/xpl-button-row.js +106 -104
  226. package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +1 -0
  227. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +182 -171
  228. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +1 -0
  229. package/dist/collection/components/xpl-choicelist/choice.js +1 -0
  230. package/dist/collection/components/xpl-choicelist/choice.js.map +1 -0
  231. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +134 -126
  232. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +1 -0
  233. package/dist/collection/components/xpl-content-area/xpl-content-area.js +28 -31
  234. package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +1 -0
  235. package/dist/collection/components/xpl-divider/xpl-divider.js +27 -23
  236. package/dist/collection/components/xpl-divider/xpl-divider.js.map +1 -0
  237. package/dist/collection/components/xpl-dropdown/dropdownoption.js +1 -0
  238. package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +1 -0
  239. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +47 -42
  240. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +1 -0
  241. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +27 -22
  242. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +1 -0
  243. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +79 -54
  244. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +1 -0
  245. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +168 -168
  246. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +1 -0
  247. package/dist/collection/components/xpl-grid/xpl-grid.js +2 -1
  248. package/dist/collection/components/xpl-grid/xpl-grid.js.map +1 -0
  249. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +76 -74
  250. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +1 -0
  251. package/dist/collection/components/xpl-input/xpl-input.js +405 -417
  252. package/dist/collection/components/xpl-input/xpl-input.js.map +1 -0
  253. package/dist/collection/components/xpl-list/listitem.js +1 -0
  254. package/dist/collection/components/xpl-list/listitem.js.map +1 -0
  255. package/dist/collection/components/xpl-list/xpl-list.js +43 -75
  256. package/dist/collection/components/xpl-list/xpl-list.js.map +1 -0
  257. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +48 -54
  258. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +1 -0
  259. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +48 -49
  260. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +1 -0
  261. package/dist/collection/components/xpl-pagination/xpl-pagination.js +117 -128
  262. package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +1 -0
  263. package/dist/collection/components/xpl-radio/xpl-radio.js +158 -148
  264. package/dist/collection/components/xpl-radio/xpl-radio.js.map +1 -0
  265. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +3 -4
  266. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +1 -0
  267. package/dist/collection/components/xpl-select/xpl-select.js +296 -236
  268. package/dist/collection/components/xpl-select/xpl-select.js.map +1 -0
  269. package/dist/collection/components/xpl-table/xpl-table.js +169 -151
  270. package/dist/collection/components/xpl-table/xpl-table.js.map +1 -0
  271. package/dist/collection/components/xpl-tag/xpl-tag.js +25 -25
  272. package/dist/collection/components/xpl-tag/xpl-tag.js.map +1 -0
  273. package/dist/collection/components/xpl-toggle/xpl-toggle.js +138 -135
  274. package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +1 -0
  275. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +74 -70
  276. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +1 -0
  277. package/dist/components/index.d.ts +39 -0
  278. package/dist/components/index.js +81 -0
  279. package/dist/components/index.js.map +1 -0
  280. package/dist/components/index2.js +586 -0
  281. package/dist/components/index2.js.map +1 -0
  282. package/dist/components/regular.js +16054 -0
  283. package/dist/components/regular.js.map +1 -0
  284. package/dist/components/v4.js +77 -0
  285. package/dist/components/v4.js.map +1 -0
  286. package/dist/components/xpl-application-shell.d.ts +11 -0
  287. package/dist/components/xpl-application-shell.js +80 -0
  288. package/dist/components/xpl-application-shell.js.map +1 -0
  289. package/dist/components/xpl-avatar.d.ts +11 -0
  290. package/dist/components/xpl-avatar.js +8 -0
  291. package/dist/components/xpl-avatar.js.map +1 -0
  292. package/dist/components/xpl-avatar2.js +51 -0
  293. package/dist/components/xpl-avatar2.js.map +1 -0
  294. package/dist/components/xpl-backdrop.d.ts +11 -0
  295. package/dist/components/xpl-backdrop.js +8 -0
  296. package/dist/components/xpl-backdrop.js.map +1 -0
  297. package/dist/components/xpl-backdrop2.js +35 -0
  298. package/dist/components/xpl-backdrop2.js.map +1 -0
  299. package/dist/components/xpl-badge.d.ts +11 -0
  300. package/dist/components/xpl-badge.js +8 -0
  301. package/dist/components/xpl-badge.js.map +1 -0
  302. package/dist/components/xpl-badge2.js +38 -0
  303. package/dist/components/xpl-badge2.js.map +1 -0
  304. package/dist/components/xpl-breadcrumb-item.d.ts +11 -0
  305. package/dist/components/xpl-breadcrumb-item.js +36 -0
  306. package/dist/components/xpl-breadcrumb-item.js.map +1 -0
  307. package/dist/components/xpl-breadcrumbs.d.ts +11 -0
  308. package/dist/components/xpl-breadcrumbs.js +31 -0
  309. package/dist/components/xpl-breadcrumbs.js.map +1 -0
  310. package/dist/components/xpl-button-row.d.ts +11 -0
  311. package/dist/components/xpl-button-row.js +50 -0
  312. package/dist/components/xpl-button-row.js.map +1 -0
  313. package/dist/components/xpl-button.d.ts +11 -0
  314. package/dist/components/xpl-button.js +8 -0
  315. package/dist/components/xpl-button.js.map +1 -0
  316. package/dist/components/xpl-button2.js +85 -0
  317. package/dist/components/xpl-button2.js.map +1 -0
  318. package/dist/components/xpl-checkbox.d.ts +11 -0
  319. package/dist/components/xpl-checkbox.js +8 -0
  320. package/dist/components/xpl-checkbox.js.map +1 -0
  321. package/dist/components/xpl-checkbox2.js +59 -0
  322. package/dist/components/xpl-checkbox2.js.map +1 -0
  323. package/dist/components/xpl-choicelist.d.ts +11 -0
  324. package/dist/components/xpl-choicelist.js +85 -0
  325. package/dist/components/xpl-choicelist.js.map +1 -0
  326. package/dist/components/xpl-content-area.d.ts +11 -0
  327. package/dist/components/xpl-content-area.js +34 -0
  328. package/dist/components/xpl-content-area.js.map +1 -0
  329. package/dist/components/xpl-divider.d.ts +11 -0
  330. package/dist/components/xpl-divider.js +36 -0
  331. package/dist/components/xpl-divider.js.map +1 -0
  332. package/dist/components/xpl-dropdown-group.d.ts +11 -0
  333. package/dist/components/xpl-dropdown-group.js +8 -0
  334. package/dist/components/xpl-dropdown-group.js.map +1 -0
  335. package/dist/components/xpl-dropdown-group2.js +69 -0
  336. package/dist/components/xpl-dropdown-group2.js.map +1 -0
  337. package/dist/components/xpl-dropdown-heading.d.ts +11 -0
  338. package/dist/components/xpl-dropdown-heading.js +8 -0
  339. package/dist/components/xpl-dropdown-heading.js.map +1 -0
  340. package/dist/components/xpl-dropdown-heading2.js +31 -0
  341. package/dist/components/xpl-dropdown-heading2.js.map +1 -0
  342. package/dist/components/xpl-dropdown-option.d.ts +11 -0
  343. package/dist/components/xpl-dropdown-option.js +8 -0
  344. package/dist/components/xpl-dropdown-option.js.map +1 -0
  345. package/dist/components/xpl-dropdown-option2.js +89 -0
  346. package/dist/components/xpl-dropdown-option2.js.map +1 -0
  347. package/dist/components/xpl-dropdown.d.ts +11 -0
  348. package/dist/components/xpl-dropdown.js +8 -0
  349. package/dist/components/xpl-dropdown.js.map +1 -0
  350. package/dist/components/xpl-dropdown2.js +147 -0
  351. package/dist/components/xpl-dropdown2.js.map +1 -0
  352. package/dist/components/xpl-grid-item.d.ts +11 -0
  353. package/dist/components/xpl-grid-item.js +45 -0
  354. package/dist/components/xpl-grid-item.js.map +1 -0
  355. package/dist/components/xpl-grid.d.ts +11 -0
  356. package/dist/components/xpl-grid.js +50 -0
  357. package/dist/components/xpl-grid.js.map +1 -0
  358. package/dist/components/xpl-input.d.ts +11 -0
  359. package/dist/components/xpl-input.js +2594 -0
  360. package/dist/components/xpl-input.js.map +1 -0
  361. package/dist/components/xpl-list.d.ts +11 -0
  362. package/dist/components/xpl-list.js +68 -0
  363. package/dist/components/xpl-list.js.map +1 -0
  364. package/dist/components/xpl-main-nav.d.ts +11 -0
  365. package/dist/components/xpl-main-nav.js +44 -0
  366. package/dist/components/xpl-main-nav.js.map +1 -0
  367. package/dist/components/xpl-nav-item.d.ts +11 -0
  368. package/dist/components/xpl-nav-item.js +44 -0
  369. package/dist/components/xpl-nav-item.js.map +1 -0
  370. package/dist/components/xpl-pagination.d.ts +11 -0
  371. package/dist/components/xpl-pagination.js +100 -0
  372. package/dist/components/xpl-pagination.js.map +1 -0
  373. package/dist/components/xpl-radio.d.ts +11 -0
  374. package/dist/components/xpl-radio.js +8 -0
  375. package/dist/components/xpl-radio.js.map +1 -0
  376. package/dist/components/xpl-radio2.js +57 -0
  377. package/dist/components/xpl-radio2.js.map +1 -0
  378. package/dist/components/xpl-secondary-nav.d.ts +11 -0
  379. package/dist/components/xpl-secondary-nav.js +31 -0
  380. package/dist/components/xpl-secondary-nav.js.map +1 -0
  381. package/dist/components/xpl-select.d.ts +11 -0
  382. package/dist/components/xpl-select.js +745 -0
  383. package/dist/components/xpl-select.js.map +1 -0
  384. package/dist/components/xpl-table.d.ts +11 -0
  385. package/dist/components/xpl-table.js +136 -0
  386. package/dist/components/xpl-table.js.map +1 -0
  387. package/dist/components/xpl-tag.d.ts +11 -0
  388. package/dist/components/xpl-tag.js +8 -0
  389. package/dist/components/xpl-tag.js.map +1 -0
  390. package/dist/components/xpl-tag2.js +33 -0
  391. package/dist/components/xpl-tag2.js.map +1 -0
  392. package/dist/components/xpl-toggle.d.ts +11 -0
  393. package/dist/components/xpl-toggle.js +61 -0
  394. package/dist/components/xpl-toggle.js.map +1 -0
  395. package/dist/components/xpl-utility-bar.d.ts +11 -0
  396. package/dist/components/xpl-utility-bar.js +52 -0
  397. package/dist/components/xpl-utility-bar.js.map +1 -0
  398. package/dist/esm/apollo-core.js +151 -5
  399. package/dist/esm/apollo-core.js.map +1 -0
  400. package/dist/esm/app-globals-0f993ce5.js +5 -0
  401. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  402. package/dist/esm/css-shim-6210ce77.js +6 -0
  403. package/dist/esm/css-shim-6210ce77.js.map +1 -0
  404. package/dist/esm/dom-423bdd70.js +75 -0
  405. package/dist/esm/dom-423bdd70.js.map +1 -0
  406. package/dist/esm/index-307c7018.js +3526 -0
  407. package/dist/esm/index-307c7018.js.map +1 -0
  408. package/dist/esm/index-912d1a21.js +586 -0
  409. package/dist/esm/index-912d1a21.js.map +1 -0
  410. package/dist/esm/{index-e3c4bb97.js → index-df9b48b4.js} +675 -216
  411. package/dist/esm/index-df9b48b4.js.map +1 -0
  412. package/dist/esm/index.js +2 -0
  413. package/dist/esm/index.js.map +1 -0
  414. package/dist/esm/loader.js +24 -3
  415. package/dist/esm/loader.js.map +1 -0
  416. package/dist/esm/polyfills/css-shim.js +1 -1
  417. package/dist/esm/regular-133c23b5.js +16054 -0
  418. package/dist/esm/regular-133c23b5.js.map +1 -0
  419. package/dist/esm/regular-86225e9d.js +2 -0
  420. package/dist/esm/regular-86225e9d.js.map +1 -0
  421. package/dist/esm/shadow-css-f0279020.js +389 -0
  422. package/dist/esm/shadow-css-f0279020.js.map +1 -0
  423. package/dist/esm/v4-929670b7.js +2 -0
  424. package/dist/esm/v4-929670b7.js.map +1 -0
  425. package/dist/esm/xpl-application-shell.entry.js +4 -13
  426. package/dist/esm/xpl-application-shell.entry.js.map +1 -0
  427. package/dist/esm/xpl-avatar.entry.js +28 -0
  428. package/dist/esm/xpl-avatar.entry.js.map +1 -0
  429. package/dist/esm/xpl-avatar_12.entry.js +74 -38
  430. package/dist/esm/xpl-avatar_12.entry.js.map +1 -0
  431. package/dist/esm/xpl-backdrop.entry.js +3 -5
  432. package/dist/esm/xpl-backdrop.entry.js.map +1 -0
  433. package/dist/esm/xpl-badge.entry.js +21 -0
  434. package/dist/esm/xpl-badge.entry.js.map +1 -0
  435. package/dist/esm/xpl-breadcrumb-item.entry.js +19 -0
  436. package/dist/esm/xpl-breadcrumb-item.entry.js.map +1 -0
  437. package/dist/esm/xpl-breadcrumbs.entry.js +14 -0
  438. package/dist/esm/xpl-breadcrumbs.entry.js.map +1 -0
  439. package/dist/esm/xpl-button-row.entry.js +6 -1
  440. package/dist/esm/xpl-button-row.entry.js.map +1 -0
  441. package/dist/esm/xpl-button.entry.js +60 -0
  442. package/dist/esm/xpl-button.entry.js.map +1 -0
  443. package/dist/esm/xpl-checkbox.entry.js +35 -0
  444. package/dist/esm/xpl-checkbox.entry.js.map +1 -0
  445. package/dist/esm/xpl-choicelist.entry.js +10 -1
  446. package/dist/esm/xpl-choicelist.entry.js.map +1 -0
  447. package/dist/esm/xpl-content-area.entry.js +15 -0
  448. package/dist/esm/xpl-content-area.entry.js.map +1 -0
  449. package/dist/esm/xpl-divider.entry.js +4 -1
  450. package/dist/esm/xpl-divider.entry.js.map +1 -0
  451. package/dist/esm/xpl-dropdown-group.entry.js +35 -0
  452. package/dist/esm/xpl-dropdown-group.entry.js.map +1 -0
  453. package/dist/esm/xpl-dropdown-group_3.entry.js +12 -3
  454. package/dist/esm/xpl-dropdown-group_3.entry.js.map +1 -0
  455. package/dist/esm/xpl-dropdown-heading.entry.js +15 -0
  456. package/dist/esm/xpl-dropdown-heading.entry.js.map +1 -0
  457. package/dist/esm/xpl-dropdown-option.entry.js +70 -0
  458. package/dist/esm/xpl-dropdown-option.entry.js.map +1 -0
  459. package/dist/esm/xpl-dropdown.entry.js +106 -0
  460. package/dist/esm/xpl-dropdown.entry.js.map +1 -0
  461. package/dist/esm/xpl-dropdown_2.entry.js +13 -10
  462. package/dist/esm/xpl-dropdown_2.entry.js.map +1 -0
  463. package/dist/esm/xpl-grid-item.entry.js +3 -1
  464. package/dist/esm/xpl-grid-item.entry.js.map +1 -0
  465. package/dist/esm/xpl-grid.entry.js +3 -1
  466. package/dist/esm/xpl-grid.entry.js.map +1 -0
  467. package/dist/esm/xpl-input.entry.js +39 -16
  468. package/dist/esm/xpl-input.entry.js.map +1 -0
  469. package/dist/esm/xpl-list.entry.js +4 -24
  470. package/dist/esm/xpl-list.entry.js.map +1 -0
  471. package/dist/esm/xpl-main-nav.entry.js +3 -4
  472. package/dist/esm/xpl-main-nav.entry.js.map +1 -0
  473. package/dist/esm/xpl-nav-item.entry.js +25 -0
  474. package/dist/esm/xpl-nav-item.entry.js.map +1 -0
  475. package/dist/esm/xpl-pagination.entry.js +7 -2
  476. package/dist/esm/xpl-pagination.entry.js.map +1 -0
  477. package/dist/esm/xpl-radio.entry.js +34 -0
  478. package/dist/esm/xpl-radio.entry.js.map +1 -0
  479. package/dist/esm/xpl-secondary-nav.entry.js +14 -0
  480. package/dist/esm/xpl-secondary-nav.entry.js.map +1 -0
  481. package/dist/esm/xpl-select.entry.js +85 -26
  482. package/dist/esm/xpl-select.entry.js.map +1 -0
  483. package/dist/esm/xpl-table.entry.js +109 -0
  484. package/dist/esm/xpl-table.entry.js.map +1 -0
  485. package/dist/esm/xpl-tag.entry.js +19 -0
  486. package/dist/esm/xpl-tag.entry.js.map +1 -0
  487. package/dist/esm/xpl-toggle.entry.js +10 -5
  488. package/dist/esm/xpl-toggle.entry.js.map +1 -0
  489. package/dist/esm/xpl-utility-bar.entry.js +31 -0
  490. package/dist/esm/xpl-utility-bar.entry.js.map +1 -0
  491. package/dist/stories/application-shell.stories.js +1 -0
  492. package/dist/stories/application-shell.stories.js.map +1 -0
  493. package/dist/stories/avatar.stories.js +1 -0
  494. package/dist/stories/avatar.stories.js.map +1 -0
  495. package/dist/stories/backdrop.stories.js +1 -0
  496. package/dist/stories/backdrop.stories.js.map +1 -0
  497. package/dist/stories/badge.stories.js +1 -0
  498. package/dist/stories/badge.stories.js.map +1 -0
  499. package/dist/stories/breadcrumbs.stories.js +1 -0
  500. package/dist/stories/breadcrumbs.stories.js.map +1 -0
  501. package/dist/stories/button-row.stories.js +1 -0
  502. package/dist/stories/button-row.stories.js.map +1 -0
  503. package/dist/stories/button.stories.js +1 -0
  504. package/dist/stories/button.stories.js.map +1 -0
  505. package/dist/stories/checkbox.stories.js +1 -0
  506. package/dist/stories/checkbox.stories.js.map +1 -0
  507. package/dist/stories/choicelist.stories.js +1 -0
  508. package/dist/stories/choicelist.stories.js.map +1 -0
  509. package/dist/stories/content-area.stories.js +1 -0
  510. package/dist/stories/content-area.stories.js.map +1 -0
  511. package/dist/stories/divider.stories.js +1 -0
  512. package/dist/stories/divider.stories.js.map +1 -0
  513. package/dist/stories/dropdown.stories.js +74 -65
  514. package/dist/stories/dropdown.stories.js.map +1 -0
  515. package/dist/stories/grid.stories.js +1 -0
  516. package/dist/stories/grid.stories.js.map +1 -0
  517. package/dist/stories/input.stories.js +1 -0
  518. package/dist/stories/input.stories.js.map +1 -0
  519. package/dist/stories/list.stories.js +1 -0
  520. package/dist/stories/list.stories.js.map +1 -0
  521. package/dist/stories/main-nav.stories.js +1 -0
  522. package/dist/stories/main-nav.stories.js.map +1 -0
  523. package/dist/stories/pagination.stories.js +1 -0
  524. package/dist/stories/pagination.stories.js.map +1 -0
  525. package/dist/stories/radio.stories.js +1 -0
  526. package/dist/stories/radio.stories.js.map +1 -0
  527. package/dist/stories/secondary-nav.stories.js +1 -0
  528. package/dist/stories/secondary-nav.stories.js.map +1 -0
  529. package/dist/stories/select.stories.js +109 -32
  530. package/dist/stories/select.stories.js.map +1 -0
  531. package/dist/stories/table.stories.js +1 -0
  532. package/dist/stories/table.stories.js.map +1 -0
  533. package/dist/stories/tabs.stories.js +1 -0
  534. package/dist/stories/tabs.stories.js.map +1 -0
  535. package/dist/stories/toggle.stories.js +1 -0
  536. package/dist/stories/toggle.stories.js.map +1 -0
  537. package/dist/stories/utility-bar.stories.js +1 -0
  538. package/dist/stories/utility-bar.stories.js.map +1 -0
  539. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dropdown.stories.d.ts +17 -1
  540. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +60 -0
  541. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +2 -1
  542. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +7 -1
  543. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +2 -2
  544. package/dist/types/components/xpl-select/xpl-select.d.ts +16 -2
  545. package/dist/types/components/xpl-table/xpl-table.d.ts +2 -0
  546. package/dist/types/components.d.ts +88 -23
  547. package/dist/types/stencil-public-runtime.d.ts +97 -23
  548. package/loader/index.d.ts +9 -1
  549. package/loader/package.json +1 -0
  550. package/package.json +7 -6
  551. package/CHANGELOG.md +0 -106
  552. package/dist/apollo-core/p-25f84d39.entry.js +0 -1
  553. package/dist/apollo-core/p-2ce2fe5c.entry.js +0 -1
  554. package/dist/apollo-core/p-3ff1ff38.entry.js +0 -1
  555. package/dist/apollo-core/p-63dd9a65.entry.js +0 -1
  556. package/dist/apollo-core/p-6c3c1e3d.entry.js +0 -1
  557. package/dist/apollo-core/p-81a6ce4c.entry.js +0 -1
  558. package/dist/apollo-core/p-918b0731.entry.js +0 -1
  559. package/dist/apollo-core/p-a43e2d1f.entry.js +0 -1
  560. package/dist/apollo-core/p-a7cc4114.entry.js +0 -1
  561. package/dist/apollo-core/p-b6d1b135.entry.js +0 -1
  562. package/dist/apollo-core/p-bc0ebed2.entry.js +0 -1
  563. package/dist/apollo-core/p-c8af4ed6.entry.js +0 -1
  564. package/dist/apollo-core/p-d4aa2fa9.js +0 -1
  565. package/dist/apollo-core/p-d4e5d3aa.entry.js +0 -1
  566. package/dist/apollo-core/p-dad11011.entry.js +0 -1
  567. package/dist/apollo-core/p-db74c99c.entry.js +0 -1
  568. package/dist/apollo-core/p-ee16942f.entry.js +0 -1
  569. package/dist/collection/components/xpl-select/selectchoice.js +0 -1
  570. package/dist/custom-elements/index.d.ts +0 -219
  571. package/dist/types/components/xpl-select/selectchoice.d.ts +0 -4
@@ -0,0 +1 @@
1
+ {"file":"xpl-list.entry.js","mappings":";;;AAYA,MAAM,WAAW,GAAkC,CAAC,EAChD,MAAM,EACN,OAAO,EACP,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,GACX;EACG,MAAM,QAAQ,GAAG,OAAO,IAAI,MAAM,IAAI,OAAO,CAAC;EAC9C,MAAM,KAAK,IACP,EAAC,QAAQ,QACJ,MAAM;KACF,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,IACxD,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AAC,eAAe,IAAE,KAAK,CAAO,CAC3C,CAAC;AACN,CAAC,CAAC;MAKW,OAAO;;;iBAuBa,EAAE;;EAE/B,MAAM;IACF,QACI,EAAC,IAAI,QACA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,MACjB,EAAC,WAAW,oBAAK,IAAI,EAAI,CAC5B,CAAC,CACC,EACT;GACL;;;;;","names":[],"sources":["./src/components/components/xpl-list/xpl-list.tsx"],"sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n FunctionalComponent,\n Fragment,\n} from '@stencil/core';\nimport '../../../font-awesome/fontawesome';\nimport '../../../font-awesome/regular';\nimport type { ListItem } from './listitem';\n\nconst ListItemCpt: FunctionalComponent<ListItem> = ({\n avatar,\n avatars,\n badges,\n href,\n title,\n subtext,\n metadata,\n}) => {\n const hasRight = avatars || badges || subtext;\n const inner = (\n <Fragment>\n {avatar &&\n (avatar.slice(0, 1) === '/' || avatar.slice(0, 4) === 'http' ? (\n <xpl-avatar src={avatar} name={title}></xpl-avatar>\n ) : (\n <xpl-avatar name={title}>{avatar}</xpl-avatar>\n ))}\n <div class=\"xpl-list-item-content\">\n <div class=\"xpl-list-left\">\n <div>\n <h4>{title}</h4>\n {metadata && (\n <ul class=\"xpl-list-item-metadata\">\n {metadata.map((d) => {\n if (typeof d === 'string') {\n return <li>{d}</li>;\n } else {\n return (\n <li>\n <span\n class={`far fa-${d.icon}`}\n ></span>{' '}\n {d.text}\n </li>\n );\n }\n })}\n </ul>\n )}\n </div>\n </div>\n {hasRight && (\n <div class=\"xpl-list-right\">\n {subtext && (\n <div class=\"xpl-list-item-subtext\">{subtext}</div>\n )}\n {avatars && (\n <div class=\"xpl-avatar-group xpl-avatar-group--s\">\n {avatars.map((a) => (\n <img src={a} alt=\"\" />\n ))}\n </div>\n )}\n {badges &&\n badges.map((b) => {\n if (typeof b === 'string') {\n return <xpl-badge>{b}</xpl-badge>;\n } else {\n return (\n <xpl-badge\n dot={b.dot}\n variant={b.variant}\n >\n {b.text}\n </xpl-badge>\n );\n }\n })}\n </div>\n )}\n </div>\n </Fragment>\n );\n return href ? (\n <a class=\"xpl-list-item\" href={href}>\n {inner}\n </a>\n ) : (\n <div class=\"xpl-list-item\">{inner}</div>\n );\n};\n\n@Component({\n tag: 'xpl-list',\n})\nexport class XplList {\n /**\n * `items` should be an array of objects with the following signature:\n * {\n * avatar?: string; // The URL of the avatar, or the placeholder initials (ex. \"SPD\").\n * avatars?: string[]; // The URLs of multiple avatars to be displayed in a group on the right.\n * badges?: string[] | { // An array of strings or badge-like objects to be displayed as badges\n * dot?: boolean; // in a group on the right. See <xpl-badge> for more details.\n * text: string;\n * variant?: string;\n * }[];\n * href?: string; // A URL, if this list item is meant to link somewhere.\n * title: string; // The text to be displayed for the list item.\n * metadata?: string[] | { // An array of strings or strings with icons (reference the allowed\n * icon: string; // Font Awesome icons) to be displayed as metadata below the title.\n * text: string;\n * }[];\n * subtext?: string; // Subtext to be displayed on the right.\n * }\n *\n * - Note that you should *only use one of* `avatars`, `badges`, or `subtext`, to avoid cluttering\n * the right-hand side of the list item.\n */\n @Prop() items?: ListItem[] = [];\n\n render() {\n return (\n <Host>\n {this.items.map((item) => (\n <ListItemCpt {...item} />\n ))}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,12 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-e3c4bb97.js';
1
+ import { r as registerInstance, f as createEvent, h, e as Host } from './index-307c7018.js';
2
2
 
3
3
  const XplMainNav = class {
4
4
  constructor(hostRef) {
5
5
  registerInstance(this, hostRef);
6
6
  this.navWidth = createEvent(this, "navWidth", 7);
7
- /**
8
- * @property {string} width - The width of the Main Nav.
9
- */
10
7
  this.width = 'default';
11
8
  }
12
9
  navWidthHandler() {
@@ -24,3 +21,5 @@ const XplMainNav = class {
24
21
  };
25
22
 
26
23
  export { XplMainNav as xpl_main_nav };
24
+
25
+ //# sourceMappingURL=xpl-main-nav.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"xpl-main-nav.entry.js","mappings":";;MAKa,UAAU;;;;iBAIsB,SAAS;;EAO1C,eAAe;IACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;GAClC;EAED,iBAAiB;IACb,IAAI,CAAC,eAAe,EAAE,CAAC;GAC1B;EAED,kBAAkB;IACd,IAAI,CAAC,eAAe,EAAE,CAAC;GAC1B;EAED,MAAM;IACF,QACI,EAAC,IAAI,IACD,KAAK,EAAE,8BAA8B,IAAI,CAAC,KAAK,EAAE,gBACtC,SAAS,IAEpB,eACI,4BAAmB,gBAAgB,IAC/B,YAAM,IAAI,EAAC,MAAM,GAAQ,EACzB,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC1B,EACT,WAAK,KAAK,EAAC,4BAA4B,IACnC,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC7B,EACN,cACI,KAAK,EAAC,sBAAsB,gBACjB,gBAAgB,IAE3B,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACtB,CACP,CACH,EACT;GACL;;;;;","names":[],"sources":["./src/components/components/xpl-main-nav/xpl-main-nav.tsx"],"sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'xpl-main-nav',\n})\nexport class XplMainNav {\n /**\n * @property {string} width - The width of the Main Nav.\n */\n @Prop() width: 'default' | 'md' | 'sm' = 'default';\n\n /**\n * @event {string} navWidth - Emits the `nav-width` prop set by the user\n * when the component is attached to the DOM and when the component is updated.\n */\n @Event() navWidth: EventEmitter<string>;\n private navWidthHandler() {\n this.navWidth.emit(this.width);\n }\n\n connectedCallback() {\n this.navWidthHandler();\n }\n\n componentDidUpdate() {\n this.navWidthHandler();\n }\n\n render() {\n return (\n <Host\n class={`xpl-main-nav xpl-main-nav--${this.width}`}\n aria-label=\"Sidebar\"\n >\n <nav>\n <header aria-label=\"Sidebar Header\">\n <slot name=\"logo\"></slot>\n <slot name=\"brand-name\"></slot>\n </header>\n <div class=\"xpl-main-nav__main_section\">\n <slot name=\"navigation\"></slot>\n </div>\n <footer\n class=\"xpl-main-nav__footer\"\n aria-label=\"Sidebar Footer\"\n >\n <slot name=\"footer\"></slot>\n </footer>\n </nav>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,25 @@
1
+ import { r as registerInstance, f as createEvent, h, e as Host } from './index-307c7018.js';
2
+
3
+ const XplNavItem = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.navOpen = createEvent(this, "navOpen", 7);
7
+ this.navControl = false;
8
+ }
9
+ onNavToggle() {
10
+ if (window.innerWidth <= 640) {
11
+ this.navOpen.emit(false);
12
+ }
13
+ }
14
+ render() {
15
+ return (h(Host, { class: "xpl-nav-item", role: "listitem", onClick: () => {
16
+ if (this.navControl) {
17
+ this.onNavToggle();
18
+ }
19
+ } }, h("slot", { name: "link" }, h("slot", { name: "icon" }), h("slot", null))));
20
+ }
21
+ };
22
+
23
+ export { XplNavItem as xpl_nav_item };
24
+
25
+ //# sourceMappingURL=xpl-nav-item.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"xpl-nav-item.entry.js","mappings":";;MAKa,UAAU;;;;sBAIY,KAAK;;EAO5B,WAAW;IACf,IAAI,MAAM,CAAC,UAAU,IAAI,GAAG,EAAE;MAC1B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC5B;GACJ;EAED,MAAM;IACF,QACI,EAAC,IAAI,IACD,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,UAAU,EACf,OAAO,EAAE;QACL,IAAI,IAAI,CAAC,UAAU,EAAE;UACjB,IAAI,CAAC,WAAW,EAAE,CAAC;SACtB;OACJ,IAED,YAAM,IAAI,EAAC,MAAM,IACb,YAAM,IAAI,EAAC,MAAM,GAAQ,EACzB,eAAa,CACV,CACJ,EACT;GACL;;;;;","names":[],"sources":["./src/components/components/xpl-nav-item/xpl-nav-item.tsx"],"sourcesContent":["import { Component, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xpl-nav-item',\n})\nexport class XplNavItem {\n /**\n * @property {boolean} - Whether or not the item should control the main nav state on click\n */\n @Prop() navControl?: boolean = false;\n\n /**\n * @event {boolean} - Emits the desired state of the navigation bar (open: true/false)\n */\n @Event() navOpen: EventEmitter<boolean>;\n\n private onNavToggle() {\n if (window.innerWidth <= 640) {\n this.navOpen.emit(false);\n }\n }\n\n render() {\n return (\n <Host\n class=\"xpl-nav-item\"\n role=\"listitem\"\n onClick={() => {\n if (this.navControl) {\n this.onNavToggle();\n }\n }}\n >\n <slot name=\"link\">\n <slot name=\"icon\"></slot>\n <slot></slot>\n </slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,10 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-e3c4bb97.js';
1
+ import { r as registerInstance, f as createEvent, h, e as Host } from './index-307c7018.js';
2
2
 
3
3
  const XplPagination = class {
4
4
  constructor(hostRef) {
5
5
  registerInstance(this, hostRef);
6
6
  this.page = createEvent(this, "page", 7);
7
- this.current = 1;
8
7
  /**
9
8
  * Private `_goto` method respects the `waitForCallback` prop --
10
9
  * it will always emit the `page` event, but won't actually update
@@ -26,6 +25,10 @@ const XplPagination = class {
26
25
  if (this.current < numPages)
27
26
  this._goto(this.current + 1);
28
27
  };
28
+ this.total = undefined;
29
+ this.perPage = undefined;
30
+ this.waitForCallback = undefined;
31
+ this.current = 1;
29
32
  }
30
33
  /**
31
34
  * Calling `goto` with a page number (which should probably be
@@ -70,3 +73,5 @@ const XplPagination = class {
70
73
  };
71
74
 
72
75
  export { XplPagination as xpl_pagination };
76
+
77
+ //# sourceMappingURL=xpl-pagination.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"xpl-pagination.entry.js","mappings":";;MAca,aAAa;;;;;;;;;;IAyBd,UAAK,GAAG,CAAC,CAAS;MACtB,IAAI,CAAC,IAAI,CAAC,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C,WAAW,iBAAa,MAAM,IACvC,yBACc,SAAS,EACnB,CAAC,EAAC,oHAAoH,eAC5G,SAAS,GACrB,CACA,CACD,CACP,CACJ,CACJ,CACH,EACT;GACL;;;;;","names":[],"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}
@@ -0,0 +1,34 @@
1
+ import { r as registerInstance, f as createEvent, h, e as Host } from './index-307c7018.js';
2
+ import { v as v4 } from './index-912d1a21.js';
3
+
4
+ const XplRadio = class {
5
+ constructor(hostRef) {
6
+ registerInstance(this, hostRef);
7
+ this.radioChange = createEvent(this, "radioChange", 7);
8
+ this.checked = undefined;
9
+ this.description = undefined;
10
+ this.disabled = undefined;
11
+ this.name = undefined;
12
+ this.required = undefined;
13
+ this.styled = undefined;
14
+ this.value = undefined;
15
+ this.id = v4();
16
+ }
17
+ render() {
18
+ return (h(Host, { class: {
19
+ 'xpl-checkbox-radio-container': true,
20
+ styled: this.styled,
21
+ disabled: this.disabled,
22
+ } }, h("input", { class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, value: this.value, onChange: () => this.radioChange.emit(true) }), h("label", { class: {
23
+ 'xpl-label': true,
24
+ 'xpl-label--disabled': this.disabled,
25
+ }, htmlFor: this.id }, h("slot", null), this.description && (h("small", { class: {
26
+ 'xpl-description': true,
27
+ 'xpl-description--disabled': this.disabled,
28
+ } }, this.description)))));
29
+ }
30
+ };
31
+
32
+ export { XplRadio as xpl_radio };
33
+
34
+ //# sourceMappingURL=xpl-radio.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"xpl-radio.entry.js","mappings":";;;MAca,QAAQ;;;;;;;;;;;cASKA,EAAI,EAAE;;EAK5B,MAAM;IACF,QACI,EAAC,IAAI,IACD,KAAK,EAAE;QACH,8BAA8B,EAAE,IAAI;QACpC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;OAC1B,IAED,aACI,KAAK,EAAC,WAAW,EACjB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GACtC,EACT,aACI,KAAK,EAAE;QACH,WAAW,EAAE,IAAI;QACjB,qBAAqB,EAAE,IAAI,CAAC,QAAQ;OACvC,EACD,OAAO,EAAE,IAAI,CAAC,EAAE,IAEhB,eAAa,EACZ,IAAI,CAAC,WAAW,KACb,aACI,KAAK,EAAE;QACH,iBAAiB,EAAE,IAAI;QACvB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;OAC7C,IAEA,IAAI,CAAC,WAAW,CACb,CACX,CACG,CACL,EACT;GACL;;;;;","names":["uuid"],"sources":["./src/components/components/xpl-radio/xpl-radio.tsx"],"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-radio',\n})\nexport class XplRadio {\n @Prop() checked?: boolean;\n @Prop() description?: string;\n @Prop() disabled?: 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() radioChange: EventEmitter;\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-radio\"\n type=\"radio\"\n checked={this.checked}\n disabled={this.disabled}\n id={this.id}\n name={this.name}\n required={this.required}\n value={this.value}\n onChange={() => this.radioChange.emit(true)}\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"],"version":3}
@@ -0,0 +1,14 @@
1
+ import { r as registerInstance, h, e as Host } from './index-307c7018.js';
2
+
3
+ const XplSecondaryNav = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ }
7
+ render() {
8
+ return (h(Host, { class: "xpl-secondary-nav" }, h("nav", { "aria-label": "Secondary Nav" }, h("slot", null))));
9
+ }
10
+ };
11
+
12
+ export { XplSecondaryNav as xpl_secondary_nav };
13
+
14
+ //# sourceMappingURL=xpl-secondary-nav.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"xpl-secondary-nav.entry.js","mappings":";;MAKa,eAAe;;;;EACxB,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,mBAAmB,IAC3B,yBAAgB,eAAe,IAC3B,eAAa,CACX,CACH,EACT;GACL;;;;;","names":[],"sources":["./src/components/components/xpl-secondary-nav/xpl-secondary-nav.tsx"],"sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'xpl-secondary-nav',\n})\nexport class XplSecondaryNav {\n render() {\n return (\n <Host class=\"xpl-secondary-nav\">\n <nav aria-label=\"Secondary Nav\">\n <slot></slot>\n </nav>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,8 +1,49 @@
1
- import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
- import { v as v4 } from './v4-929670b7.js';
1
+ import { r as registerInstance, f as createEvent, h, e as Host } from './index-307c7018.js';
2
+ import { v as v4 } from './index-912d1a21.js';
3
3
 
4
4
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
5
 
6
+ function getDefaultExportFromCjs (x) {
7
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
8
+ }
9
+
10
+ function createCommonjsModule(fn, basedir, module) {
11
+ return module = {
12
+ path: basedir,
13
+ exports: {},
14
+ require: function (path, base) {
15
+ return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
16
+ }
17
+ }, fn(module, module.exports), module.exports;
18
+ }
19
+
20
+ function getDefaultExportFromNamespaceIfPresent (n) {
21
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
22
+ }
23
+
24
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
25
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
26
+ }
27
+
28
+ function getAugmentedNamespace(n) {
29
+ if (n.__esModule) return n;
30
+ var a = Object.defineProperty({}, '__esModule', {value: true});
31
+ Object.keys(n).forEach(function (k) {
32
+ var d = Object.getOwnPropertyDescriptor(n, k);
33
+ Object.defineProperty(a, k, d.get ? d : {
34
+ enumerable: true,
35
+ get: function () {
36
+ return n[k];
37
+ }
38
+ });
39
+ });
40
+ return a;
41
+ }
42
+
43
+ function commonjsRequire () {
44
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
45
+ }
46
+
6
47
  /**
7
48
  * lodash (Custom Build) <https://lodash.com/>
8
49
  * Build: `lodash modularize exports="npm" -o ./`
@@ -452,35 +493,23 @@ function tagWidth(text) {
452
493
  const XplSelect = class {
453
494
  constructor(hostRef) {
454
495
  registerInstance(this, hostRef);
455
- /**
456
- * An array of choices for the user to choose from.
457
- * Each choice should be of the form:
458
- * {
459
- * label: string;
460
- * href?: string;
461
- * value?: string;
462
- * isGroupHeading?: boolean;
463
- * }
464
- */
496
+ this.selectChange = createEvent(this, "selectChange", 7);
465
497
  this.choices = [];
466
- /**
467
- * Whether to allow a single choice or multiple choices.
468
- */
498
+ this.description = undefined;
499
+ this.disabled = undefined;
500
+ this.error = undefined;
501
+ this.label = undefined;
469
502
  this.mode = 'single';
470
- /**
471
- * Only used in multi-choice selects. If `true`,
472
- * badges representing selections that would overflow the
473
- * container are replaced with "+x more" (where x is the
474
- * number not shown). If `false`, the container's height will
475
- * adjust to show all badges representing selections.
476
- */
503
+ this.name = undefined;
504
+ this.placeholder = undefined;
477
505
  this.truncate = true;
506
+ this.selectedValues = undefined;
478
507
  this.active = false;
479
508
  this.id = v4();
480
509
  this.keepFocus = false;
510
+ this.selected = undefined;
481
511
  this.value = '';
482
512
  this.displayValue = '';
483
- // infinity isn't real, it's just a mathematical construct, it can't hurt you
484
513
  this.visibleChoices = Infinity;
485
514
  }
486
515
  componentWillLoad() {
@@ -488,6 +517,27 @@ const XplSelect = class {
488
517
  this.choices && this.choices.length > 0
489
518
  ? this.choices.map(() => false)
490
519
  : [];
520
+ if (this.selectedValues) {
521
+ const isSingleMode = this.mode === 'single';
522
+ if (isSingleMode) {
523
+ this.choices.forEach((choice) => {
524
+ const shouldBeSelected = choice.value.includes(this.selectedValues) ||
525
+ choice.label.includes(this.selectedValues);
526
+ if (shouldBeSelected)
527
+ choice.isSelected = true;
528
+ });
529
+ }
530
+ else {
531
+ this.choices.forEach(({ options }) => {
532
+ options.forEach((option) => {
533
+ const shouldBeSelected = this.selectedValues.includes(option.value || option.label);
534
+ if (shouldBeSelected)
535
+ option.isSelected = true;
536
+ });
537
+ });
538
+ }
539
+ this.update();
540
+ }
491
541
  window.addEventListener('click', (e) => {
492
542
  const el = e.target;
493
543
  const select = el.closest('.xpl-select');
@@ -550,6 +600,9 @@ const XplSelect = class {
550
600
  .join('|');
551
601
  }
552
602
  }
603
+ handleValueStateChange(newValue) {
604
+ this.selectChange.emit(newValue);
605
+ }
553
606
  render() {
554
607
  let visibleChoices = 0;
555
608
  return (h(Host, { class: {
@@ -580,8 +633,9 @@ const XplSelect = class {
580
633
  ? this.selected.map((v, i) => {
581
634
  if (!v)
582
635
  return null;
583
- if (visibleChoices >= this.visibleChoices)
636
+ if (visibleChoices >= this.visibleChoices) {
584
637
  return null;
638
+ }
585
639
  visibleChoices++;
586
640
  return (h("xpl-tag", { onClose: () => {
587
641
  this.flattenChoices().forEach((v, j) => {
@@ -611,11 +665,16 @@ const XplSelect = class {
611
665
  const { dropdown } = this;
612
666
  if (!this.disabled)
613
667
  dropdown.isOpen = !dropdown.isOpen;
614
- } })), !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
668
+ }, type: "button" })), !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
615
669
  this.update();
616
670
  this.maybeTruncateChoices();
617
- } })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("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" })), this.error))), h("input", { type: "hidden", value: this.value })));
671
+ } })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("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" })), this.error))), h("input", { type: "hidden", name: this.name, value: this.value })));
618
672
  }
673
+ static get watchers() { return {
674
+ "value": ["handleValueStateChange"]
675
+ }; }
619
676
  };
620
677
 
621
678
  export { XplSelect as xpl_select };
679
+
680
+ //# sourceMappingURL=xpl-select.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"xpl-select.entry.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,qBAAqB,CAAC;AAC5C;AACA;AACA,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;AAChB;AACA;AACA,IAAI,SAAS,GAAG,iBAAiB,CAAC;AAClC;AACA;AACA,IAAI,MAAM,GAAG,YAAY,CAAC;AAC1B;AACA;AACA,IAAI,UAAU,GAAG,oBAAoB,CAAC;AACtC;AACA;AACA,IAAI,UAAU,GAAG,YAAY,CAAC;AAC9B;AACA;AACA,IAAI,SAAS,GAAG,aAAa,CAAC;AAC9B;AACA;AACA,IAAI,YAAY,GAAG,QAAQ,CAAC;AAC5B;AACA;AACA,IAAI,UAAU,GAAG,OAAOA,cAAM,IAAI,QAAQ,IAAIA,cAAM,IAAIA,cAAM,CAAC,MAAM,KAAK,MAAM,IAAIA,cAAM,CAAC;AAC3F;AACA;AACA,IAAI,QAAQ,GAAG,OAAO,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,IAAI,CAAC;AACjF;AACA;AACA,IAAI,IAAI,GAAG,UAAU,IAAI,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;AAC/D;AACA;AACA,IAAI,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,cAAc,GAAG,WAAW,CAAC,QAAQ,CAAC;AAC1C;AACA;AACA,IAAI,SAAS,GAAG,IAAI,CAAC,GAAG;AACxB,IAAI,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC;AACzB;AACA;AACA;AACA;AACA;AACA;AAC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W,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAElC,YAAM,CAAC,EAAC,ymBAAymB,GAAG,CAClnB,EACL,IAAI,CAAC,KAAK,CACP,CACX,CACC,EACN,aAAO,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CACxD,EACT;GACL;;;;;;;;","names":["global","uuid","throttle"],"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}
@@ -0,0 +1,109 @@
1
+ import { r as registerInstance, f as createEvent, h, e as Host } from './index-307c7018.js';
2
+
3
+ const XplTable = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.tableSelect = createEvent(this, "tableSelect", 7);
7
+ this.selectAll = (e) => {
8
+ const { target } = e;
9
+ if (!(target instanceof HTMLInputElement))
10
+ return;
11
+ const { checked } = target;
12
+ this.areAllSelected = checked;
13
+ this.selected = this.selected.map(() => checked);
14
+ this.onChange();
15
+ };
16
+ this.selectOne = (e, i) => {
17
+ const { target } = e;
18
+ if (!(target instanceof HTMLInputElement))
19
+ return;
20
+ const { checked } = target;
21
+ this.areAllSelected = false;
22
+ this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
23
+ this.onChange();
24
+ };
25
+ this.onChange = () => {
26
+ this.tableSelect.emit({
27
+ selected: this.selected,
28
+ areAllSelected: this.areAllSelected,
29
+ });
30
+ };
31
+ this.onScroll = () => {
32
+ this.hasScrolled = this.container.scrollLeft > 0;
33
+ };
34
+ /**
35
+ * TODO: Need to figure out how this interplays with data
36
+ * received from an API/server
37
+ */
38
+ // private sortBy = (col: number, ascending = true) => {
39
+ // this.rowData.sort((a, b) => {
40
+ // const A = a[col];
41
+ // const B = b[col];
42
+ // if (typeof A === 'number' && typeof B === 'number') {
43
+ // const f = ascending ? 1 : -1;
44
+ // return A > B ? f : -f;
45
+ // }
46
+ // return -1;
47
+ // });
48
+ // this.rowData = Array.from(this.rowData);
49
+ // this.render();
50
+ // };
51
+ this.setData = () => {
52
+ this.rowData = this.data !== undefined ? Array.from(this.data) : [];
53
+ this.selected = new Array(this.rowData.length).fill(false);
54
+ };
55
+ this.columns = undefined;
56
+ this.data = undefined;
57
+ this.freeze = undefined;
58
+ this.multiselect = undefined;
59
+ this.striped = undefined;
60
+ this.areAllSelected = false;
61
+ this.rowData = undefined;
62
+ this.hasScrolled = false;
63
+ this.selected = undefined;
64
+ }
65
+ watchData() {
66
+ this.setData();
67
+ }
68
+ componentWillLoad() {
69
+ this.areAllSelected = false;
70
+ this.setData();
71
+ }
72
+ render() {
73
+ let className = 'xpl-table';
74
+ if (this.striped)
75
+ className += ' xpl-table--striped';
76
+ if (this.freeze)
77
+ className += ' xpl-table--freeze';
78
+ if (this.hasScrolled)
79
+ className += ' xpl-table--has-scrolled';
80
+ return (h(Host, null, h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) }, h("table", { class: className }, this.columns && (h("thead", null, this.columns.map((column, i) => {
81
+ return (h("th", null, this.multiselect && i === 0 ? (h("label", { htmlFor: "__xpl-table-th" }, h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
82
+ // appear indeterminate when at least one but not all
83
+ // are selected
84
+ indeterminate: !this
85
+ .areAllSelected &&
86
+ this.selected.some((a) => a), onChange: (e) => {
87
+ this.selectAll(e);
88
+ }, type: "checkbox" }), column)) : (column)));
89
+ }))), h("tbody", null, this.rowData.map((row, rowNum) => {
90
+ return (h("tr", { class: this.selected &&
91
+ this.selected[rowNum]
92
+ ? 'xpl-table-row-selected'
93
+ : '' }, row.map((cell, i) => {
94
+ return (h("td", null, this.multiselect &&
95
+ i === 0 ? (h("label", { htmlFor: '__xpl-table-row-' +
96
+ rowNum }, h("input", { id: '__xpl-table-row-' +
97
+ rowNum, checked: this
98
+ .selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))));
99
+ })));
100
+ }))))));
101
+ }
102
+ static get watchers() { return {
103
+ "data": ["watchData"]
104
+ }; }
105
+ };
106
+
107
+ export { XplTable as xpl_table };
108
+
109
+ //# sourceMappingURL=xpl-table.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"xpl-table.entry.js","mappings":";;MAca,QAAQ;;;;IAgBT,cAAS,GAAG,CAAC,CAAQ;MACzB,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;MACrB,IAAI,EAAE,MAAM,YAAY,gBAAgB,CAAC;QAAE,OAAO;MAClD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;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I,KAAK,EACD,IAAI,CAAC,QAAQ;UACb,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;YACf,wBAAwB;YACxB,EAAE,IAGX,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QACb,QACI,cACK,IAAI,CAAC,WAAW;UACjB,CAAC,KAAK,CAAC,IACH,aACI,OAAO,EACH,kBAAkB;YAClB,MAAM,IAGV,aACI,EAAE,EACE,kBAAkB;YAClB,MAAM,EAEV,OAAO,EACH,IAAI;aACC,QAAQ,CACT,MAAM,CACT,EAEL,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,CAAC,CAAC,KACR,IAAI,CAAC,SAAS,CACV,CAAC,EACD,MAAM,CACT,GAEP,EACF,WACI,SAAS,EAAE,IAAI,GACjB,CACE,KAER,WAAK,SAAS,EAAE,IAAI,GAAI,CAC3B,CACA,EACP;OACL,CAAC,CACD,EACP;KACL,CAAC,CACE,CACJ,CACN,CACH,EACT;GACL;;;;;;;;","names":[],"sources":["./src/components/components/xpl-table/xpl-table.tsx"],"sourcesContent":["import {\n Component,\n Host,\n Prop,\n State,\n Event,\n EventEmitter,\n h,\n Watch,\n} from '@stencil/core';\n\n@Component({\n tag: 'xpl-table',\n})\nexport class XplTable {\n @Prop() columns?: string[];\n @Prop() data?: string[][];\n @Prop() freeze?: boolean;\n @Prop() multiselect?: boolean;\n @Prop() striped?: boolean;\n\n @State() areAllSelected: boolean = false;\n @State() rowData: string[][];\n @State() hasScrolled: boolean = false;\n @State() selected: boolean[];\n\n @Event() tableSelect: EventEmitter;\n\n private container!: HTMLDivElement;\n\n private selectAll = (e: Event) => {\n const { target } = e;\n if (!(target instanceof HTMLInputElement)) return;\n const { checked } = target;\n this.areAllSelected = checked;\n this.selected = this.selected.map(() => checked);\n this.onChange();\n };\n\n private selectOne = (e: Event, i: number) => {\n const { target } = e;\n if (!(target instanceof HTMLInputElement)) return;\n const { checked } = target;\n this.areAllSelected = false;\n this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));\n this.onChange();\n };\n\n private onChange = () => {\n this.tableSelect.emit({\n selected: this.selected,\n areAllSelected: this.areAllSelected,\n });\n };\n\n private onScroll = () => {\n this.hasScrolled = this.container.scrollLeft > 0;\n };\n\n /**\n * TODO: Need to figure out how this interplays with data\n * received from an API/server\n */\n // private sortBy = (col: number, ascending = true) => {\n // this.rowData.sort((a, b) => {\n // const A = a[col];\n // const B = b[col];\n // if (typeof A === 'number' && typeof B === 'number') {\n // const f = ascending ? 1 : -1;\n // return A > B ? f : -f;\n // }\n // return -1;\n // });\n // this.rowData = Array.from(this.rowData);\n // this.render();\n // };\n\n private setData = () => {\n this.rowData = this.data !== undefined ? Array.from(this.data) : [];\n this.selected = new Array(this.rowData.length).fill(false);\n };\n\n @Watch('data')\n watchData() {\n this.setData();\n }\n\n componentWillLoad() {\n this.areAllSelected = false;\n this.setData();\n }\n\n render() {\n let className = 'xpl-table';\n if (this.striped) className += ' xpl-table--striped';\n if (this.freeze) className += ' xpl-table--freeze';\n if (this.hasScrolled) className += ' xpl-table--has-scrolled';\n\n return (\n <Host>\n <div\n class=\"xpl-table-container\"\n onScroll={this.onScroll}\n ref={(el) => (this.container = el as HTMLDivElement)}\n >\n <table class={className}>\n {this.columns && (\n <thead>\n {this.columns.map((column, i) => {\n return (\n <th>\n {this.multiselect && i === 0 ? (\n <label htmlFor=\"__xpl-table-th\">\n <input\n checked={\n this.areAllSelected\n }\n id=\"__xpl-table-th\"\n // appear indeterminate when at least one but not all\n // are selected\n indeterminate={\n !this\n .areAllSelected &&\n this.selected.some(\n (a) => a\n )\n }\n onChange={(e) => {\n this.selectAll(e);\n }}\n type=\"checkbox\"\n />\n {column}\n </label>\n ) : (\n column\n )}\n </th>\n );\n })}\n </thead>\n )}\n <tbody>\n {this.rowData.map((row, rowNum) => {\n return (\n <tr\n class={\n this.selected &&\n this.selected[rowNum]\n ? 'xpl-table-row-selected'\n : ''\n }\n >\n {row.map((cell, i) => {\n return (\n <td>\n {this.multiselect &&\n i === 0 ? (\n <label\n htmlFor={\n '__xpl-table-row-' +\n rowNum\n }\n >\n <input\n id={\n '__xpl-table-row-' +\n rowNum\n }\n checked={\n this\n .selected[\n rowNum\n ]\n }\n type=\"checkbox\"\n onChange={(e) =>\n this.selectOne(\n e,\n rowNum\n )\n }\n />\n <div\n innerHTML={cell}\n />\n </label>\n ) : (\n <div innerHTML={cell} />\n )}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,19 @@
1
+ import { r as registerInstance, f as createEvent, h, e as Host } from './index-307c7018.js';
2
+
3
+ const XplTag = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.close = createEvent(this, "close", 7);
7
+ }
8
+ render() {
9
+ return (h(Host, { class: "xpl-tag-container" }, h("button", { class: "xpl-tag", onClick: () => {
10
+ this.close.emit();
11
+ } }, h("slot", null)), h("button", { class: "xpl-tag__close", onClick: () => {
12
+ this.close.emit();
13
+ } }, "\u00D7")));
14
+ }
15
+ };
16
+
17
+ export { XplTag as xpl_tag };
18
+
19
+ //# sourceMappingURL=xpl-tag.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"xpl-tag.entry.js","mappings":";;MAKa,MAAM;;;;;EAGf,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,mBAAmB,IAC3B,cACI,KAAK,EAAC,SAAS,EACf,OAAO,EAAE;QACL,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;OACrB,IAED,eAAa,CACR,EACT,cACI,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE;QACL,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;OACrB,aAGI,CACN,EACT;GACL;;;;;","names":[],"sources":["./src/components/components/xpl-tag/xpl-tag.tsx"],"sourcesContent":["import { Component, Host, h, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'xpl-tag',\n})\nexport class XplTag {\n @Event() close: EventEmitter;\n\n render() {\n return (\n <Host class=\"xpl-tag-container\">\n <button\n class=\"xpl-tag\"\n onClick={() => {\n this.close.emit();\n }}\n >\n <slot></slot>\n </button>\n <button\n class=\"xpl-tag__close\"\n onClick={() => {\n this.close.emit();\n }}\n >\n &times;\n </button>\n </Host>\n );\n }\n}\n"],"version":3}