@xplortech/apollo-core 1.0.0-beta.18 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/build/style.css +2758 -1509
  3. package/dist/apollo-core/apollo-core.css +14 -4597
  4. package/dist/apollo-core/apollo-core.esm.js +1 -2
  5. package/dist/apollo-core/index.esm.js +0 -2
  6. package/dist/apollo-core/p-13e7d3ea.entry.js +1 -0
  7. package/dist/apollo-core/p-2ce2fe5c.entry.js +1 -0
  8. package/dist/apollo-core/p-2f90296c.js +10 -0
  9. package/dist/apollo-core/p-3ff1ff38.entry.js +1 -0
  10. package/dist/apollo-core/p-63dd9a65.entry.js +1 -0
  11. package/dist/apollo-core/p-6c3c1e3d.entry.js +1 -0
  12. package/dist/apollo-core/p-81a6ce4c.entry.js +1 -0
  13. package/dist/apollo-core/p-918b0731.entry.js +1 -0
  14. package/dist/apollo-core/p-97bdb450.entry.js +1 -0
  15. package/dist/apollo-core/p-a43e2d1f.entry.js +1 -0
  16. package/dist/apollo-core/p-a7cc4114.entry.js +1 -0
  17. package/dist/apollo-core/p-ad90fe4d.js +1 -2
  18. package/dist/apollo-core/p-b6d1b135.entry.js +1 -0
  19. package/dist/apollo-core/p-bc0ebed2.entry.js +1 -0
  20. package/dist/apollo-core/p-c8af4ed6.entry.js +1 -0
  21. package/dist/apollo-core/p-d4aa2fa9.js +1 -0
  22. package/dist/apollo-core/p-d4e5d3aa.entry.js +1 -0
  23. package/dist/apollo-core/p-dad11011.entry.js +1 -0
  24. package/dist/apollo-core/p-db74c99c.entry.js +1 -0
  25. package/dist/cjs/apollo-core.cjs.js +3 -12
  26. package/dist/cjs/{index-000e170c.js → index-acf3dd7a.js} +216 -765
  27. package/dist/cjs/index.cjs.js +0 -2
  28. package/dist/cjs/loader.cjs.js +3 -6
  29. package/dist/cjs/regular-872f5226.js +16043 -0
  30. package/dist/cjs/v4-14140ff3.js +0 -2
  31. package/dist/cjs/xpl-application-shell.cjs.entry.js +13 -10
  32. package/dist/cjs/xpl-avatar_12.cjs.entry.js +322 -0
  33. package/dist/cjs/xpl-backdrop.cjs.entry.js +5 -3
  34. package/dist/cjs/xpl-button-row.cjs.entry.js +1 -6
  35. package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -10
  36. package/dist/cjs/xpl-divider.cjs.entry.js +1 -4
  37. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -16
  38. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +12 -14
  39. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -3
  40. package/dist/cjs/xpl-grid.cjs.entry.js +1 -3
  41. package/dist/cjs/xpl-input.cjs.entry.js +25 -22
  42. package/dist/cjs/xpl-list.cjs.entry.js +25 -4
  43. package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -3
  44. package/dist/cjs/xpl-pagination.cjs.entry.js +2 -7
  45. package/dist/cjs/xpl-select.cjs.entry.js +25 -51
  46. package/dist/cjs/xpl-toggle.cjs.entry.js +4 -9
  47. package/dist/collection/collection-manifest.json +3 -6
  48. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +109 -125
  49. package/dist/collection/components/xpl-avatar/xpl-avatar.js +144 -151
  50. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +28 -27
  51. package/dist/collection/components/xpl-badge/xpl-badge.js +39 -44
  52. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +5 -3
  53. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +5 -3
  54. package/dist/collection/components/xpl-button/xpl-button.js +205 -205
  55. package/dist/collection/components/xpl-button-row/xpl-button-row.js +104 -106
  56. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +171 -182
  57. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +126 -134
  58. package/dist/collection/components/xpl-content-area/xpl-content-area.js +31 -28
  59. package/dist/collection/components/xpl-divider/xpl-divider.js +23 -27
  60. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +41 -47
  61. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +22 -27
  62. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +55 -83
  63. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +161 -169
  64. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -2
  65. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +74 -76
  66. package/dist/collection/components/xpl-input/xpl-input.js +419 -397
  67. package/dist/collection/components/xpl-list/xpl-list.js +77 -43
  68. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +54 -48
  69. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +49 -48
  70. package/dist/collection/components/xpl-pagination/xpl-pagination.js +128 -117
  71. package/dist/collection/components/xpl-radio/xpl-radio.js +148 -158
  72. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +4 -3
  73. package/dist/collection/components/xpl-select/xpl-select.js +235 -306
  74. package/dist/collection/components/xpl-table/xpl-table.js +148 -215
  75. package/dist/collection/components/xpl-tag/xpl-tag.js +25 -25
  76. package/dist/collection/components/xpl-toggle/xpl-toggle.js +135 -138
  77. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +52 -79
  78. package/dist/custom-elements/index.d.ts +219 -0
  79. package/dist/custom-elements/index.js +20224 -0
  80. package/dist/esm/apollo-core.js +3 -9
  81. package/dist/esm/{index-56581b5c.js → index-e3c4bb97.js} +217 -765
  82. package/dist/esm/index.js +0 -2
  83. package/dist/esm/loader.js +3 -6
  84. package/dist/esm/polyfills/css-shim.js +1 -1
  85. package/dist/esm/regular-86225e9d.js +16041 -0
  86. package/dist/esm/v4-929670b7.js +0 -2
  87. package/dist/esm/xpl-application-shell.entry.js +13 -10
  88. package/dist/esm/xpl-avatar_12.entry.js +307 -0
  89. package/dist/esm/xpl-backdrop.entry.js +5 -3
  90. package/dist/esm/xpl-button-row.entry.js +1 -6
  91. package/dist/esm/xpl-choicelist.entry.js +1 -10
  92. package/dist/esm/xpl-divider.entry.js +1 -4
  93. package/dist/esm/xpl-dropdown-group_3.entry.js +4 -16
  94. package/dist/esm/xpl-dropdown_2.entry.js +12 -14
  95. package/dist/esm/xpl-grid-item.entry.js +1 -3
  96. package/dist/esm/xpl-grid.entry.js +1 -3
  97. package/dist/esm/xpl-input.entry.js +25 -22
  98. package/dist/esm/xpl-list.entry.js +25 -4
  99. package/dist/esm/xpl-main-nav.entry.js +4 -3
  100. package/dist/esm/xpl-pagination.entry.js +2 -7
  101. package/dist/esm/xpl-select.entry.js +25 -51
  102. package/dist/esm/xpl-toggle.entry.js +4 -9
  103. package/dist/stories/application-shell.stories.js +8 -18
  104. package/dist/stories/avatar.stories.js +0 -1
  105. package/dist/stories/backdrop.stories.js +0 -1
  106. package/dist/stories/badge.stories.js +0 -1
  107. package/dist/stories/breadcrumbs.stories.js +0 -1
  108. package/dist/stories/button-row.stories.js +0 -1
  109. package/dist/stories/button.stories.js +0 -1
  110. package/dist/stories/checkbox.stories.js +0 -1
  111. package/dist/stories/choicelist.stories.js +0 -1
  112. package/dist/stories/content-area.stories.js +0 -1
  113. package/dist/stories/divider.stories.js +0 -1
  114. package/dist/stories/dropdown.stories.js +65 -74
  115. package/dist/stories/grid.stories.js +0 -1
  116. package/dist/stories/input.stories.js +0 -1
  117. package/dist/stories/list.stories.js +2 -3
  118. package/dist/stories/main-nav.stories.js +0 -1
  119. package/dist/stories/pagination.stories.js +0 -1
  120. package/dist/stories/radio.stories.js +0 -1
  121. package/dist/stories/secondary-nav.stories.js +0 -1
  122. package/dist/stories/select.stories.js +32 -109
  123. package/dist/stories/table.stories.js +7 -24
  124. package/dist/stories/tabs.stories.js +0 -1
  125. package/dist/stories/toggle.stories.js +0 -1
  126. package/dist/stories/utility-bar.stories.js +6 -2
  127. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/application-shell.stories.d.ts +5 -14
  128. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/dropdown.stories.d.ts +1 -17
  129. package/dist/types/Users/fernandogelin/Projects/apollo-admin/packages/apollo/.stencil/stories/select.stories.d.ts +74 -0
  130. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/table.stories.d.ts +1 -22
  131. package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -6
  132. package/dist/types/components/xpl-choicelist/choice.d.ts +5 -5
  133. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -2
  134. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +10 -9
  135. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +0 -1
  136. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -7
  137. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -7
  138. package/dist/types/components/xpl-input/xpl-input.d.ts +2 -0
  139. package/dist/types/components/xpl-list/listitem.d.ts +19 -15
  140. package/dist/types/components/xpl-list/xpl-list.d.ts +3 -2
  141. package/dist/types/components/xpl-select/selectchoice.d.ts +3 -0
  142. package/dist/types/components/xpl-select/xpl-select.d.ts +1 -21
  143. package/dist/types/components/xpl-table/xpl-table.d.ts +7 -29
  144. package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -5
  145. package/dist/types/components.d.ts +21 -268
  146. package/dist/types/stencil-public-runtime.d.ts +23 -97
  147. package/loader/index.d.ts +1 -9
  148. package/loader/package.json +0 -1
  149. package/package.json +28 -21
  150. package/LICENSE +0 -21
  151. package/dist/apollo-core/apollo-core.esm.js.map +0 -1
  152. package/dist/apollo-core/index.esm.js.map +0 -1
  153. package/dist/apollo-core/p-1fa46bc3.entry.js +0 -2
  154. package/dist/apollo-core/p-1fa46bc3.entry.js.map +0 -1
  155. package/dist/apollo-core/p-29f4679d.entry.js +0 -2
  156. package/dist/apollo-core/p-29f4679d.entry.js.map +0 -1
  157. package/dist/apollo-core/p-3f3cc34e.entry.js +0 -2
  158. package/dist/apollo-core/p-3f3cc34e.entry.js.map +0 -1
  159. package/dist/apollo-core/p-5372bf3e.entry.js +0 -2
  160. package/dist/apollo-core/p-5372bf3e.entry.js.map +0 -1
  161. package/dist/apollo-core/p-5ceaec87.entry.js +0 -2
  162. package/dist/apollo-core/p-5ceaec87.entry.js.map +0 -1
  163. package/dist/apollo-core/p-60d4d252.entry.js +0 -2
  164. package/dist/apollo-core/p-60d4d252.entry.js.map +0 -1
  165. package/dist/apollo-core/p-6797b2b7.entry.js +0 -7
  166. package/dist/apollo-core/p-6797b2b7.entry.js.map +0 -1
  167. package/dist/apollo-core/p-6acc4122.entry.js +0 -2
  168. package/dist/apollo-core/p-6acc4122.entry.js.map +0 -1
  169. package/dist/apollo-core/p-787bac91.entry.js +0 -2
  170. package/dist/apollo-core/p-787bac91.entry.js.map +0 -1
  171. package/dist/apollo-core/p-7a8e818a.entry.js +0 -2
  172. package/dist/apollo-core/p-7a8e818a.entry.js.map +0 -1
  173. package/dist/apollo-core/p-807d8de9.entry.js +0 -2
  174. package/dist/apollo-core/p-807d8de9.entry.js.map +0 -1
  175. package/dist/apollo-core/p-ad90fe4d.js.map +0 -1
  176. package/dist/apollo-core/p-bcb81e30.entry.js +0 -2
  177. package/dist/apollo-core/p-bcb81e30.entry.js.map +0 -1
  178. package/dist/apollo-core/p-da5a8e74.entry.js +0 -2
  179. package/dist/apollo-core/p-da5a8e74.entry.js.map +0 -1
  180. package/dist/apollo-core/p-e0541e23.entry.js +0 -2
  181. package/dist/apollo-core/p-e0541e23.entry.js.map +0 -1
  182. package/dist/apollo-core/p-e215fc5f.entry.js +0 -2
  183. package/dist/apollo-core/p-e215fc5f.entry.js.map +0 -1
  184. package/dist/apollo-core/p-e8953b60.js +0 -3
  185. package/dist/apollo-core/p-e8953b60.js.map +0 -1
  186. package/dist/apollo-core/p-efa8a79d.entry.js +0 -2
  187. package/dist/apollo-core/p-efa8a79d.entry.js.map +0 -1
  188. package/dist/cjs/apollo-core.cjs.js.map +0 -1
  189. package/dist/cjs/index-000e170c.js.map +0 -1
  190. package/dist/cjs/index.cjs.js.map +0 -1
  191. package/dist/cjs/loader.cjs.js.map +0 -1
  192. package/dist/cjs/v4-14140ff3.js.map +0 -1
  193. package/dist/cjs/xpl-application-shell.cjs.entry.js.map +0 -1
  194. package/dist/cjs/xpl-avatar_15.cjs.entry.js +0 -2278
  195. package/dist/cjs/xpl-avatar_15.cjs.entry.js.map +0 -1
  196. package/dist/cjs/xpl-backdrop.cjs.entry.js.map +0 -1
  197. package/dist/cjs/xpl-button-row.cjs.entry.js.map +0 -1
  198. package/dist/cjs/xpl-choicelist.cjs.entry.js.map +0 -1
  199. package/dist/cjs/xpl-divider.cjs.entry.js.map +0 -1
  200. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +0 -1
  201. package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +0 -1
  202. package/dist/cjs/xpl-grid-item.cjs.entry.js.map +0 -1
  203. package/dist/cjs/xpl-grid.cjs.entry.js.map +0 -1
  204. package/dist/cjs/xpl-input.cjs.entry.js.map +0 -1
  205. package/dist/cjs/xpl-list.cjs.entry.js.map +0 -1
  206. package/dist/cjs/xpl-main-nav.cjs.entry.js.map +0 -1
  207. package/dist/cjs/xpl-pagination.cjs.entry.js.map +0 -1
  208. package/dist/cjs/xpl-select.cjs.entry.js.map +0 -1
  209. package/dist/cjs/xpl-toggle.cjs.entry.js.map +0 -1
  210. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +0 -1
  211. package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +0 -1
  212. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +0 -1
  213. package/dist/collection/components/xpl-badge/xpl-badge.js.map +0 -1
  214. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +0 -1
  215. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +0 -1
  216. package/dist/collection/components/xpl-button/xpl-button.js.map +0 -1
  217. package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +0 -1
  218. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +0 -1
  219. package/dist/collection/components/xpl-choicelist/choice.js +0 -2
  220. package/dist/collection/components/xpl-choicelist/choice.js.map +0 -1
  221. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +0 -1
  222. package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +0 -1
  223. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +0 -8
  224. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js.map +0 -1
  225. package/dist/collection/components/xpl-data-card/xpl-data-card.js +0 -162
  226. package/dist/collection/components/xpl-data-card/xpl-data-card.js.map +0 -1
  227. package/dist/collection/components/xpl-divider/xpl-divider.js.map +0 -1
  228. package/dist/collection/components/xpl-dropdown/dropdownoption.js +0 -2
  229. package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +0 -1
  230. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +0 -1
  231. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +0 -1
  232. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +0 -1
  233. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +0 -1
  234. package/dist/collection/components/xpl-grid/xpl-grid.js.map +0 -1
  235. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +0 -1
  236. package/dist/collection/components/xpl-icon/xpl-icon.css +0 -5
  237. package/dist/collection/components/xpl-icon/xpl-icon.js +0 -93
  238. package/dist/collection/components/xpl-icon/xpl-icon.js.map +0 -1
  239. package/dist/collection/components/xpl-input/xpl-input.js.map +0 -1
  240. package/dist/collection/components/xpl-list/listitem.js +0 -2
  241. package/dist/collection/components/xpl-list/listitem.js.map +0 -1
  242. package/dist/collection/components/xpl-list/xpl-list.js.map +0 -1
  243. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +0 -1
  244. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +0 -1
  245. package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +0 -1
  246. package/dist/collection/components/xpl-radio/xpl-radio.js.map +0 -1
  247. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +0 -1
  248. package/dist/collection/components/xpl-select/xpl-select.js.map +0 -1
  249. package/dist/collection/components/xpl-table/xpl-table.js.map +0 -1
  250. package/dist/collection/components/xpl-tag/xpl-tag.js.map +0 -1
  251. package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +0 -1
  252. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +0 -1
  253. package/dist/components/index.d.ts +0 -39
  254. package/dist/components/index.js +0 -82
  255. package/dist/components/index.js.map +0 -1
  256. package/dist/components/v4.js +0 -77
  257. package/dist/components/v4.js.map +0 -1
  258. package/dist/components/xpl-application-shell.d.ts +0 -11
  259. package/dist/components/xpl-application-shell.js +0 -80
  260. package/dist/components/xpl-application-shell.js.map +0 -1
  261. package/dist/components/xpl-avatar.d.ts +0 -11
  262. package/dist/components/xpl-avatar.js +0 -8
  263. package/dist/components/xpl-avatar.js.map +0 -1
  264. package/dist/components/xpl-avatar2.js +0 -51
  265. package/dist/components/xpl-avatar2.js.map +0 -1
  266. package/dist/components/xpl-backdrop.d.ts +0 -11
  267. package/dist/components/xpl-backdrop.js +0 -8
  268. package/dist/components/xpl-backdrop.js.map +0 -1
  269. package/dist/components/xpl-backdrop2.js +0 -35
  270. package/dist/components/xpl-backdrop2.js.map +0 -1
  271. package/dist/components/xpl-badge.d.ts +0 -11
  272. package/dist/components/xpl-badge.js +0 -8
  273. package/dist/components/xpl-badge.js.map +0 -1
  274. package/dist/components/xpl-badge2.js +0 -38
  275. package/dist/components/xpl-badge2.js.map +0 -1
  276. package/dist/components/xpl-breadcrumb-item.d.ts +0 -11
  277. package/dist/components/xpl-breadcrumb-item.js +0 -36
  278. package/dist/components/xpl-breadcrumb-item.js.map +0 -1
  279. package/dist/components/xpl-breadcrumbs.d.ts +0 -11
  280. package/dist/components/xpl-breadcrumbs.js +0 -31
  281. package/dist/components/xpl-breadcrumbs.js.map +0 -1
  282. package/dist/components/xpl-button-row.d.ts +0 -11
  283. package/dist/components/xpl-button-row.js +0 -50
  284. package/dist/components/xpl-button-row.js.map +0 -1
  285. package/dist/components/xpl-button.d.ts +0 -11
  286. package/dist/components/xpl-button.js +0 -8
  287. package/dist/components/xpl-button.js.map +0 -1
  288. package/dist/components/xpl-button2.js +0 -85
  289. package/dist/components/xpl-button2.js.map +0 -1
  290. package/dist/components/xpl-checkbox.d.ts +0 -11
  291. package/dist/components/xpl-checkbox.js +0 -8
  292. package/dist/components/xpl-checkbox.js.map +0 -1
  293. package/dist/components/xpl-checkbox2.js +0 -59
  294. package/dist/components/xpl-checkbox2.js.map +0 -1
  295. package/dist/components/xpl-choicelist.d.ts +0 -11
  296. package/dist/components/xpl-choicelist.js +0 -85
  297. package/dist/components/xpl-choicelist.js.map +0 -1
  298. package/dist/components/xpl-content-area.d.ts +0 -11
  299. package/dist/components/xpl-content-area.js +0 -34
  300. package/dist/components/xpl-content-area.js.map +0 -1
  301. package/dist/components/xpl-dashboard.d.ts +0 -11
  302. package/dist/components/xpl-dashboard.js +0 -31
  303. package/dist/components/xpl-dashboard.js.map +0 -1
  304. package/dist/components/xpl-data-card.d.ts +0 -11
  305. package/dist/components/xpl-data-card.js +0 -80
  306. package/dist/components/xpl-data-card.js.map +0 -1
  307. package/dist/components/xpl-divider.d.ts +0 -11
  308. package/dist/components/xpl-divider.js +0 -36
  309. package/dist/components/xpl-divider.js.map +0 -1
  310. package/dist/components/xpl-dropdown-group.d.ts +0 -11
  311. package/dist/components/xpl-dropdown-group.js +0 -8
  312. package/dist/components/xpl-dropdown-group.js.map +0 -1
  313. package/dist/components/xpl-dropdown-group2.js +0 -69
  314. package/dist/components/xpl-dropdown-group2.js.map +0 -1
  315. package/dist/components/xpl-dropdown-heading.d.ts +0 -11
  316. package/dist/components/xpl-dropdown-heading.js +0 -8
  317. package/dist/components/xpl-dropdown-heading.js.map +0 -1
  318. package/dist/components/xpl-dropdown-heading2.js +0 -31
  319. package/dist/components/xpl-dropdown-heading2.js.map +0 -1
  320. package/dist/components/xpl-dropdown-option.d.ts +0 -11
  321. package/dist/components/xpl-dropdown-option.js +0 -8
  322. package/dist/components/xpl-dropdown-option.js.map +0 -1
  323. package/dist/components/xpl-dropdown-option2.js +0 -89
  324. package/dist/components/xpl-dropdown-option2.js.map +0 -1
  325. package/dist/components/xpl-dropdown.d.ts +0 -11
  326. package/dist/components/xpl-dropdown.js +0 -8
  327. package/dist/components/xpl-dropdown.js.map +0 -1
  328. package/dist/components/xpl-dropdown2.js +0 -147
  329. package/dist/components/xpl-dropdown2.js.map +0 -1
  330. package/dist/components/xpl-grid-item.d.ts +0 -11
  331. package/dist/components/xpl-grid-item.js +0 -45
  332. package/dist/components/xpl-grid-item.js.map +0 -1
  333. package/dist/components/xpl-grid.d.ts +0 -11
  334. package/dist/components/xpl-grid.js +0 -50
  335. package/dist/components/xpl-grid.js.map +0 -1
  336. package/dist/components/xpl-icon.d.ts +0 -11
  337. package/dist/components/xpl-icon.js +0 -8
  338. package/dist/components/xpl-icon.js.map +0 -1
  339. package/dist/components/xpl-icon2.js +0 -1850
  340. package/dist/components/xpl-icon2.js.map +0 -1
  341. package/dist/components/xpl-input.d.ts +0 -11
  342. package/dist/components/xpl-input.js +0 -2574
  343. package/dist/components/xpl-input.js.map +0 -1
  344. package/dist/components/xpl-list.d.ts +0 -11
  345. package/dist/components/xpl-list.js +0 -73
  346. package/dist/components/xpl-list.js.map +0 -1
  347. package/dist/components/xpl-main-nav.d.ts +0 -11
  348. package/dist/components/xpl-main-nav.js +0 -44
  349. package/dist/components/xpl-main-nav.js.map +0 -1
  350. package/dist/components/xpl-nav-item.d.ts +0 -11
  351. package/dist/components/xpl-nav-item.js +0 -44
  352. package/dist/components/xpl-nav-item.js.map +0 -1
  353. package/dist/components/xpl-pagination.d.ts +0 -11
  354. package/dist/components/xpl-pagination.js +0 -100
  355. package/dist/components/xpl-pagination.js.map +0 -1
  356. package/dist/components/xpl-radio.d.ts +0 -11
  357. package/dist/components/xpl-radio.js +0 -8
  358. package/dist/components/xpl-radio.js.map +0 -1
  359. package/dist/components/xpl-radio2.js +0 -57
  360. package/dist/components/xpl-radio2.js.map +0 -1
  361. package/dist/components/xpl-secondary-nav.d.ts +0 -11
  362. package/dist/components/xpl-secondary-nav.js +0 -31
  363. package/dist/components/xpl-secondary-nav.js.map +0 -1
  364. package/dist/components/xpl-select.d.ts +0 -11
  365. package/dist/components/xpl-select.js +0 -712
  366. package/dist/components/xpl-select.js.map +0 -1
  367. package/dist/components/xpl-table.d.ts +0 -11
  368. package/dist/components/xpl-table.js +0 -170
  369. package/dist/components/xpl-table.js.map +0 -1
  370. package/dist/components/xpl-tag.d.ts +0 -11
  371. package/dist/components/xpl-tag.js +0 -8
  372. package/dist/components/xpl-tag.js.map +0 -1
  373. package/dist/components/xpl-tag2.js +0 -33
  374. package/dist/components/xpl-tag2.js.map +0 -1
  375. package/dist/components/xpl-toggle.d.ts +0 -11
  376. package/dist/components/xpl-toggle.js +0 -61
  377. package/dist/components/xpl-toggle.js.map +0 -1
  378. package/dist/components/xpl-utility-bar.d.ts +0 -11
  379. package/dist/components/xpl-utility-bar.js +0 -55
  380. package/dist/components/xpl-utility-bar.js.map +0 -1
  381. package/dist/esm/apollo-core.js.map +0 -1
  382. package/dist/esm/index-56581b5c.js.map +0 -1
  383. package/dist/esm/index.js.map +0 -1
  384. package/dist/esm/loader.js.map +0 -1
  385. package/dist/esm/v4-929670b7.js.map +0 -1
  386. package/dist/esm/xpl-application-shell.entry.js.map +0 -1
  387. package/dist/esm/xpl-avatar_15.entry.js +0 -2260
  388. package/dist/esm/xpl-avatar_15.entry.js.map +0 -1
  389. package/dist/esm/xpl-backdrop.entry.js.map +0 -1
  390. package/dist/esm/xpl-button-row.entry.js.map +0 -1
  391. package/dist/esm/xpl-choicelist.entry.js.map +0 -1
  392. package/dist/esm/xpl-divider.entry.js.map +0 -1
  393. package/dist/esm/xpl-dropdown-group_3.entry.js.map +0 -1
  394. package/dist/esm/xpl-dropdown_2.entry.js.map +0 -1
  395. package/dist/esm/xpl-grid-item.entry.js.map +0 -1
  396. package/dist/esm/xpl-grid.entry.js.map +0 -1
  397. package/dist/esm/xpl-input.entry.js.map +0 -1
  398. package/dist/esm/xpl-list.entry.js.map +0 -1
  399. package/dist/esm/xpl-main-nav.entry.js.map +0 -1
  400. package/dist/esm/xpl-pagination.entry.js.map +0 -1
  401. package/dist/esm/xpl-select.entry.js.map +0 -1
  402. package/dist/esm/xpl-toggle.entry.js.map +0 -1
  403. package/dist/stories/application-shell.stories.js.map +0 -1
  404. package/dist/stories/avatar.stories.js.map +0 -1
  405. package/dist/stories/backdrop.stories.js.map +0 -1
  406. package/dist/stories/badge.stories.js.map +0 -1
  407. package/dist/stories/breadcrumbs.stories.js.map +0 -1
  408. package/dist/stories/button-row.stories.js.map +0 -1
  409. package/dist/stories/button.stories.js.map +0 -1
  410. package/dist/stories/checkbox.stories.js.map +0 -1
  411. package/dist/stories/choicelist.stories.js.map +0 -1
  412. package/dist/stories/content-area.stories.js.map +0 -1
  413. package/dist/stories/dashboard.stories.js +0 -51
  414. package/dist/stories/dashboard.stories.js.map +0 -1
  415. package/dist/stories/data-card.stories.js +0 -70
  416. package/dist/stories/data-card.stories.js.map +0 -1
  417. package/dist/stories/divider.stories.js.map +0 -1
  418. package/dist/stories/dropdown.stories.js.map +0 -1
  419. package/dist/stories/grid.stories.js.map +0 -1
  420. package/dist/stories/icons.stories.js +0 -69
  421. package/dist/stories/icons.stories.js.map +0 -1
  422. package/dist/stories/input.stories.js.map +0 -1
  423. package/dist/stories/list.stories.js.map +0 -1
  424. package/dist/stories/main-nav.stories.js.map +0 -1
  425. package/dist/stories/pagination.stories.js.map +0 -1
  426. package/dist/stories/radio.stories.js.map +0 -1
  427. package/dist/stories/secondary-nav.stories.js.map +0 -1
  428. package/dist/stories/select.stories.js.map +0 -1
  429. package/dist/stories/table.stories.js.map +0 -1
  430. package/dist/stories/tabs.stories.js.map +0 -1
  431. package/dist/stories/toggle.stories.js.map +0 -1
  432. package/dist/stories/utility-bar.stories.js.map +0 -1
  433. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dashboard.stories.d.ts +0 -31
  434. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/data-card.stories.d.ts +0 -71
  435. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/icons.stories.d.ts +0 -77
  436. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +0 -134
  437. package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +0 -3
  438. package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +0 -38
  439. package/dist/types/components/xpl-icon/xpl-icon.d.ts +0 -17
  440. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
  441. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
  442. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
  443. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
  444. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
  445. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button.stories.d.ts +0 -0
  446. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
  447. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
  448. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
  449. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
  450. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
  451. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/input.stories.d.ts +0 -0
  452. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/list.stories.d.ts +0 -0
  453. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
  454. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  455. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
  456. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
  457. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  458. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
  459. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
@@ -73,5 +73,3 @@ function v4(options, buf, offset) {
73
73
  }
74
74
 
75
75
  export { v4 as v };
76
-
77
- //# sourceMappingURL=v4-929670b7.js.map
@@ -1,12 +1,23 @@
1
- import { r as registerInstance, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplApplicationShell = class {
4
4
  constructor(hostRef) {
5
5
  registerInstance(this, hostRef);
6
+ /**
7
+ * @property {boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar
8
+ */
6
9
  this.withSubnav = false;
10
+ /**
11
+ * @property {boolean} - Whether or not the Grid should have space for a utility bar
12
+ */
7
13
  this.withUtility = true;
14
+ /**
15
+ * @property {string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.
16
+ */
8
17
  this.navWidth = 'default';
9
- this.isNavOpenAtStartup = undefined;
18
+ /**
19
+ * @state {boolean} - Whether or not the main nav is open, updates when the nav-open envent is emitted.
20
+ */
10
21
  this.navOpen = true;
11
22
  }
12
23
  closeNavOnMobile() {
@@ -26,12 +37,6 @@ const XplApplicationShell = class {
26
37
  connectedCallback() {
27
38
  this.closeNavOnMobile();
28
39
  }
29
- componentWillLoad() {
30
- this.navOpen =
31
- this.isNavOpenAtStartup !== undefined
32
- ? this.isNavOpenAtStartup
33
- : this.navOpen;
34
- }
35
40
  render() {
36
41
  let applicationShellClasses = 'xpl-application-shell';
37
42
  if (this.withUtility)
@@ -47,5 +52,3 @@ const XplApplicationShell = class {
47
52
  };
48
53
 
49
54
  export { XplApplicationShell as xpl_application_shell };
50
-
51
- //# sourceMappingURL=xpl-application-shell.entry.js.map
@@ -0,0 +1,307 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-e3c4bb97.js';
2
+ import { v as v4 } from './v4-929670b7.js';
3
+
4
+ const XplAvatar = class {
5
+ constructor(hostRef) {
6
+ registerInstance(this, hostRef);
7
+ this.disabled = false;
8
+ }
9
+ render() {
10
+ let className = 'xpl-avatar';
11
+ if (this.size)
12
+ className += ` xpl-avatar--${this.size}`;
13
+ if (this.color)
14
+ className += ` xpl-avatar--${this.color}`;
15
+ const inner = (h("div", null, this.src ? (h("img", { alt: this.name, src: this.src })) : (h("div", { class: "xpl-avatar__placeholder" }, h("slot", null))), this.status && (h("div", { class: `xpl-avatar__dot--${this.status}` }))));
16
+ return (h(Host, null, this.href && !this.disabled ? (h("a", { href: this.href, class: className, target: this.target }, inner)) : this.href && this.disabled ? (h("div", { class: className + ' xpl-avatar--disabled' }, inner)) : (h("div", { class: className }, inner))));
17
+ }
18
+ };
19
+
20
+ const XplBadge = class {
21
+ constructor(hostRef) {
22
+ registerInstance(this, hostRef);
23
+ }
24
+ render() {
25
+ let className = 'xpl-badge';
26
+ if (this.dot)
27
+ className += ' xpl-badge--dot';
28
+ if (this.variant)
29
+ className += ' xpl-badge--' + this.variant;
30
+ return (h(Host, null, h("div", { class: className }, h("slot", null))));
31
+ }
32
+ };
33
+
34
+ const XplBreadcrumbItem = class {
35
+ constructor(hostRef) {
36
+ registerInstance(this, hostRef);
37
+ // This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.
38
+ this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
39
+ <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
40
+ </svg>
41
+ `;
42
+ }
43
+ render() {
44
+ return (h(Host, { class: "xpl-breadcrumb-item", role: "listitem" }, h("li", { role: "none" }, h("slot", null)), h("span", { innerHTML: `${this.chevron}` })));
45
+ }
46
+ };
47
+
48
+ const XplBreadcrumbs = class {
49
+ constructor(hostRef) {
50
+ registerInstance(this, hostRef);
51
+ }
52
+ render() {
53
+ return (h(Host, null, h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, h("ol", { role: "list" }, h("slot", null)))));
54
+ }
55
+ };
56
+
57
+ const XplButton = class {
58
+ constructor(hostRef) {
59
+ registerInstance(this, hostRef);
60
+ /**
61
+ * @property {"default" | "sm" | "xs"} - button size
62
+ */
63
+ this.size = 'default';
64
+ /**
65
+ * @property {"primary" | "secondary" | "subtle"} - button variant
66
+ */
67
+ this.variant = 'primary';
68
+ /**
69
+ * @property {"neutral" | "warning" | "success"} - button state (color) neutral=purple, success=green, warning=red
70
+ */
71
+ this.state = 'neutral';
72
+ }
73
+ componentDidRender() {
74
+ const attrs = this.el.attributes;
75
+ const dataAttrs = Object.keys(attrs)
76
+ .filter((k) => {
77
+ const propertyName = attrs[k].name;
78
+ if (propertyName) {
79
+ return (propertyName.includes('data-test') ||
80
+ propertyName.includes('aria-'));
81
+ }
82
+ return false;
83
+ })
84
+ .reduce((acc, k) => {
85
+ return Object.assign(Object.assign({}, acc), { [attrs[k].name]: attrs[k].value });
86
+ }, {});
87
+ const child = this.el.querySelector('button');
88
+ Object.keys(dataAttrs).forEach((k) => {
89
+ child.setAttribute(k, dataAttrs[k]);
90
+ this.el.removeAttribute(k);
91
+ });
92
+ }
93
+ render() {
94
+ let className = `xpl-button
95
+ xpl-button--${this.size}
96
+ xpl-button--${this.state}
97
+ xpl-button--${this.variant}`;
98
+ if (this.iconOnly)
99
+ className += ' xpl-button--icon-only';
100
+ if (this.fullWidth)
101
+ className += ' xpl-button--full-width';
102
+ if (this.link && this.disabled)
103
+ className += ' xpl-button--link-disabled';
104
+ return (h(Host, { class: className },
105
+ /**
106
+ * Conditionally render either an <slot> or <button> element
107
+ * depending on if there's an `link` or not
108
+ */
109
+ this.link ? (h("slot", null)) : (h("button", { disabled: this.disabled, name: this.name, type: this.type, value: this.value }, h("slot", null)))));
110
+ }
111
+ get el() { return getElement(this); }
112
+ };
113
+
114
+ const XplCheckbox = class {
115
+ constructor(hostRef) {
116
+ registerInstance(this, hostRef);
117
+ this.checkboxChange = createEvent(this, "checkboxChange", 7);
118
+ this.id = v4();
119
+ }
120
+ render() {
121
+ return (h(Host, { class: {
122
+ 'xpl-checkbox-radio-container': true,
123
+ styled: this.styled,
124
+ disabled: this.disabled,
125
+ } }, h("input", { class: "xpl-checkbox", type: "checkbox", checked: this.checked, disabled: this.disabled, id: this.id, indeterminate: this.indeterminate, onChange: () => this.checkboxChange.emit(this.input.checked), name: this.name, ref: (el) => (this.input = el), required: this.required, value: this.value }), h("label", { class: {
126
+ 'xpl-label': true,
127
+ 'xpl-label--disabled': this.disabled,
128
+ }, htmlFor: this.id }, h("slot", null), this.description && (h("small", { class: {
129
+ 'xpl-description': true,
130
+ 'xpl-description--disabled': this.disabled,
131
+ } }, this.description)))));
132
+ }
133
+ };
134
+
135
+ const XplContentArea = class {
136
+ constructor(hostRef) {
137
+ registerInstance(this, hostRef);
138
+ /**
139
+ * @property {string} size - The content-area size.
140
+ */
141
+ this.size = 'wide';
142
+ }
143
+ render() {
144
+ return (h(Host, null, h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, h("div", { class: "xpl-content-area" }, h("slot", null)))));
145
+ }
146
+ };
147
+
148
+ const XplNavItem = class {
149
+ constructor(hostRef) {
150
+ registerInstance(this, hostRef);
151
+ this.navOpen = createEvent(this, "navOpen", 7);
152
+ /**
153
+ * @property {boolean} - Whether or not the item should control the main nav state on click
154
+ */
155
+ this.navControl = false;
156
+ }
157
+ onNavToggle() {
158
+ if (window.innerWidth <= 640) {
159
+ this.navOpen.emit(false);
160
+ }
161
+ }
162
+ render() {
163
+ return (h(Host, { class: "xpl-nav-item", role: "listitem", onClick: () => {
164
+ if (this.navControl) {
165
+ this.onNavToggle();
166
+ }
167
+ } }, h("slot", { name: "link" }, h("slot", { name: "icon" }), h("slot", null))));
168
+ }
169
+ };
170
+
171
+ const XplRadio = class {
172
+ constructor(hostRef) {
173
+ registerInstance(this, hostRef);
174
+ this.radioChange = createEvent(this, "radioChange", 7);
175
+ this.id = v4();
176
+ }
177
+ render() {
178
+ return (h(Host, { class: {
179
+ 'xpl-checkbox-radio-container': true,
180
+ styled: this.styled,
181
+ disabled: this.disabled,
182
+ } }, 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: {
183
+ 'xpl-label': true,
184
+ 'xpl-label--disabled': this.disabled,
185
+ }, htmlFor: this.id }, h("slot", null), this.description && (h("small", { class: {
186
+ 'xpl-description': true,
187
+ 'xpl-description--disabled': this.disabled,
188
+ } }, this.description)))));
189
+ }
190
+ };
191
+
192
+ const XplSecondaryNav = class {
193
+ constructor(hostRef) {
194
+ registerInstance(this, hostRef);
195
+ }
196
+ render() {
197
+ return (h(Host, { class: "xpl-secondary-nav" }, h("nav", { "aria-label": "Secondary Nav" }, h("slot", null))));
198
+ }
199
+ };
200
+
201
+ const XplTable = class {
202
+ constructor(hostRef) {
203
+ registerInstance(this, hostRef);
204
+ this.tableSelect = createEvent(this, "tableSelect", 7);
205
+ this.areAllSelected = false;
206
+ this.hasScrolled = false;
207
+ this.selectAll = (e) => {
208
+ const { target } = e;
209
+ if (!(target instanceof HTMLInputElement))
210
+ return;
211
+ const { checked } = target;
212
+ this.areAllSelected = checked;
213
+ this.selected = this.selected.map(() => checked);
214
+ this.onChange();
215
+ };
216
+ this.selectOne = (e, i) => {
217
+ const { target } = e;
218
+ if (!(target instanceof HTMLInputElement))
219
+ return;
220
+ const { checked } = target;
221
+ this.areAllSelected = false;
222
+ this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
223
+ this.onChange();
224
+ };
225
+ this.onChange = () => {
226
+ this.tableSelect.emit({
227
+ selected: this.selected,
228
+ areAllSelected: this.areAllSelected,
229
+ });
230
+ };
231
+ this.onScroll = () => {
232
+ this.hasScrolled = this.container.scrollLeft > 0;
233
+ };
234
+ /**
235
+ * TODO: Need to figure out how this interplays with data
236
+ * received from an API/server
237
+ */
238
+ this.sortBy = (col, ascending = true) => {
239
+ this.rowData.sort((a, b) => {
240
+ const A = a[col];
241
+ const B = b[col];
242
+ if (typeof A === 'number' && typeof B === 'number') {
243
+ const f = ascending ? 1 : -1;
244
+ return A > B ? f : -f;
245
+ }
246
+ return -1;
247
+ });
248
+ this.rowData = Array.from(this.rowData);
249
+ this.render();
250
+ };
251
+ }
252
+ componentWillLoad() {
253
+ this.areAllSelected = false;
254
+ this.rowData = this.data !== undefined ? Array.from(this.data) : [];
255
+ this.selected = new Array(this.rowData.length).fill(false);
256
+ }
257
+ render() {
258
+ let className = 'xpl-table';
259
+ if (this.striped)
260
+ className += ' xpl-table--striped';
261
+ if (this.freeze)
262
+ className += ' xpl-table--freeze';
263
+ if (this.hasScrolled)
264
+ className += ' xpl-table--has-scrolled';
265
+ 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) => {
266
+ return (h("th", null, this.multiselect && i === 0 ? (h("label", { htmlFor: "__xpl-table-th" }, h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
267
+ // appear indeterminate when at least one but not all
268
+ // are selected
269
+ indeterminate: !this
270
+ .areAllSelected &&
271
+ this.selected.some((a) => a), onChange: (e) => {
272
+ this.selectAll(e);
273
+ }, type: "checkbox" }), column)) : (column)));
274
+ }))), h("tbody", null, this.rowData.map((row, rowNum) => {
275
+ return (h("tr", { class: this.selected &&
276
+ this.selected[rowNum]
277
+ ? 'xpl-table-row-selected'
278
+ : '' }, row.map((cell, i) => {
279
+ return (h("td", null, this.multiselect &&
280
+ i === 0 ? (h("label", { htmlFor: '__xpl-table-row-' +
281
+ rowNum }, h("input", { id: '__xpl-table-row-' +
282
+ rowNum, checked: this
283
+ .selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))));
284
+ })));
285
+ }))))));
286
+ }
287
+ };
288
+
289
+ const XplUtilityBar = class {
290
+ constructor(hostRef) {
291
+ registerInstance(this, hostRef);
292
+ this.navOpen = createEvent(this, "navOpen", 7);
293
+ this.open = true;
294
+ this.bars = `
295
+ <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14 xpl-utility-nav__bars" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg>
296
+ `;
297
+ }
298
+ onNavToggle() {
299
+ this.open = !this.open;
300
+ this.navOpen.emit(this.open);
301
+ }
302
+ render() {
303
+ return (h(Host, null, h("nav", { "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (h("div", null, h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle(), innerHTML: `${this.bars}` }), h("slot", { name: "aside" }))) : (h("slot", { name: "aside" })), h("slot", { name: "main" }))));
304
+ }
305
+ };
306
+
307
+ export { XplAvatar as xpl_avatar, XplBadge as xpl_badge, XplBreadcrumbItem as xpl_breadcrumb_item, XplBreadcrumbs as xpl_breadcrumbs, XplButton as xpl_button, XplCheckbox as xpl_checkbox, XplContentArea as xpl_content_area, XplNavItem as xpl_nav_item, XplRadio as xpl_radio, XplSecondaryNav as xpl_secondary_nav, XplTable as xpl_table, XplUtilityBar as xpl_utility_bar };
@@ -1,8 +1,12 @@
1
- import { r as registerInstance, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplBackdrop = class {
4
4
  constructor(hostRef) {
5
5
  registerInstance(this, hostRef);
6
+ /**
7
+ * @property {boolean} - When true, backdrop will have relative position. This is useful when the backdrop doesn't cover the whole view area.
8
+ * If false, the position will be fixed and cover the whole view area.
9
+ */
6
10
  this.relative = false;
7
11
  }
8
12
  render() {
@@ -15,5 +19,3 @@ const XplBackdrop = class {
15
19
  };
16
20
 
17
21
  export { XplBackdrop as xpl_backdrop };
18
-
19
- //# sourceMappingURL=xpl-backdrop.entry.js.map
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplButtonRow = class {
4
4
  constructor(hostRef) {
@@ -9,9 +9,6 @@ const XplButtonRow = class {
9
9
  this.onPrimary = () => this.clickPrimary.emit();
10
10
  this.onSecondary = () => this.clickSecondary.emit();
11
11
  this.onTertiary = () => this.clickTertiary.emit();
12
- this.primary = undefined;
13
- this.secondary = undefined;
14
- this.tertiary = undefined;
15
12
  }
16
13
  render() {
17
14
  return (h(Host, { class: "xpl-button-row" }, h("div", { class: "xpl-button-row-inner" }, h("div", { class: "xpl-button-row__left" }, this.secondary && (h("xpl-button", { variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary))), h("div", { class: "xpl-button-row__right" }, this.tertiary && (h("xpl-button", { variant: "subtle", type: "button", onClick: this.onTertiary }, this.tertiary)), this.secondary && (h("xpl-button", { variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary)), this.primary && (h("xpl-button", { class: "xpl-button-row__primary", onClick: this.onPrimary }, this.primary))))));
@@ -19,5 +16,3 @@ const XplButtonRow = class {
19
16
  };
20
17
 
21
18
  export { XplButtonRow as xpl_button_row };
22
-
23
- //# sourceMappingURL=xpl-button-row.entry.js.map
@@ -1,15 +1,8 @@
1
- import { r as registerInstance, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplChoicelist = class {
4
4
  constructor(hostRef) {
5
5
  registerInstance(this, hostRef);
6
- this.choices = undefined;
7
- this.description = undefined;
8
- this.heading = undefined;
9
- this.multi = undefined;
10
- this.name = undefined;
11
- this.styled = undefined;
12
- this.selected = undefined;
13
6
  }
14
7
  componentWillLoad() {
15
8
  this.selected =
@@ -44,5 +37,3 @@ const XplChoicelist = class {
44
37
  };
45
38
 
46
39
  export { XplChoicelist as xpl_choicelist };
47
-
48
- //# sourceMappingURL=xpl-choicelist.entry.js.map
@@ -1,9 +1,8 @@
1
- import { r as registerInstance, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplDivider = class {
4
4
  constructor(hostRef) {
5
5
  registerInstance(this, hostRef);
6
- this.tier = undefined;
7
6
  }
8
7
  render() {
9
8
  let className = 'xpl-divider';
@@ -13,5 +12,3 @@ const XplDivider = class {
13
12
  };
14
13
 
15
14
  export { XplDivider as xpl_divider };
16
-
17
- //# sourceMappingURL=xpl-divider.entry.js.map
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-e3c4bb97.js';
2
2
 
3
3
  var __rest = (undefined && undefined.__rest) || function (s, e) {
4
4
  var t = {};
@@ -15,8 +15,6 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
15
15
  const XplDropdownGroup = class {
16
16
  constructor(hostRef) {
17
17
  registerInstance(this, hostRef);
18
- this.groupName = undefined;
19
- this.options = undefined;
20
18
  }
21
19
  render() {
22
20
  const { groupName, options } = this;
@@ -33,7 +31,6 @@ const XplDropdownGroup = class {
33
31
  const XplDropdownHeading = class {
34
32
  constructor(hostRef) {
35
33
  registerInstance(this, hostRef);
36
- this.label = undefined;
37
34
  }
38
35
  render() {
39
36
  return (h(Host, { class: { 'xpl-dropdown-heading': true }, role: "presentation" }, h("span", null, this.label || h("slot", { name: "heading" }))));
@@ -43,10 +40,6 @@ const XplDropdownHeading = class {
43
40
  const XplDropdownOption = class {
44
41
  constructor(hostRef) {
45
42
  registerInstance(this, hostRef);
46
- this.isDisabled = undefined;
47
- this.label = undefined;
48
- this.value = undefined;
49
- this.isSelected = undefined;
50
43
  }
51
44
  componentWillLoad() {
52
45
  this.dropdown = this.hostElement.closest('xpl-dropdown');
@@ -71,10 +64,7 @@ const XplDropdownOption = class {
71
64
  const { closeOnSelect, mode, selectOnFocus } = this.dropdown;
72
65
  if (selectOnFocus && navigationKeys.includes(ev.key)) {
73
66
  const hostElement = document.activeElement.closest('xpl-dropdown-option');
74
- const component = {
75
- component: { hostElement },
76
- };
77
- dropdown.handleSelect(ev, component);
67
+ dropdown.handleSelect(ev, { component: { hostElement } });
78
68
  if (mode === 'single' && closeOnSelect)
79
69
  this.dropdown.isOpen = false;
80
70
  return;
@@ -95,16 +85,14 @@ const XplDropdownOption = class {
95
85
  this.hostElement.removeEventListener('keyup', this.handleKeyup);
96
86
  }
97
87
  render() {
98
- const { label, isSelected, isDisabled, value } = this;
88
+ const { label, isSelected, isDisabled } = this;
99
89
  return (h(Host, { class: {
100
90
  'xpl-dropdown-option': true,
101
91
  'xpl-dropdown-option--disabled': isDisabled,
102
92
  'xpl-dropdown-option--selected': isSelected,
103
- }, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected, value: value }, h("li", { class: "xpl-dropdown-list-item" }, label || h("slot", { name: "option" }))));
93
+ }, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected }, h("li", { class: "xpl-dropdown-list-item" }, label || h("slot", { name: "option" }))));
104
94
  }
105
95
  get hostElement() { return getElement(this); }
106
96
  };
107
97
 
108
98
  export { XplDropdownGroup as xpl_dropdown_group, XplDropdownHeading as xpl_dropdown_heading, XplDropdownOption as xpl_dropdown_option };
109
-
110
- //# sourceMappingURL=xpl-dropdown-group_3.entry.js.map
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-e3c4bb97.js';
2
2
 
3
3
  var __rest = (undefined && undefined.__rest) || function (s, e) {
4
4
  var t = {};
@@ -15,6 +15,15 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
15
15
  const XplDropdown = class {
16
16
  constructor(hostRef) {
17
17
  registerInstance(this, hostRef);
18
+ /** text to display as heading */
19
+ // eslint-disable-next-line @stencil/strict-mutable
20
+ this.isOpen = false;
21
+ /** options that are listed */
22
+ this.closeOnSelect = true;
23
+ /** constant representing number of options that can be selected */
24
+ this.mode = 'single';
25
+ /** whether selection should be made when focusing on interactable element */
26
+ this.selectOnFocus = false;
18
27
  this.handleClickOutside = ({ target }) => {
19
28
  const { triggerId } = this;
20
29
  const isTrigger = triggerId && target.id === triggerId;
@@ -22,16 +31,9 @@ const XplDropdown = class {
22
31
  if (!isInside && !isTrigger)
23
32
  this.isOpen = false;
24
33
  };
25
- this.isOpen = false;
26
- this.closeOnSelect = true;
27
- this.mode = 'single';
28
- this.options = undefined;
29
- this.selectOnFocus = false;
30
- this.triggerId = undefined;
31
- this.update = undefined;
32
34
  }
33
35
  /**
34
- * called on dropdown option click and keydown events to update isSelected states
36
+ * called on dropdown option click and keydown events to update isSelected states
35
37
  */
36
38
  async handleSelect(e, { component }) {
37
39
  const { hostElement, mode, options, update } = this;
@@ -44,9 +46,7 @@ const XplDropdown = class {
44
46
  ...(curr.groupName ? curr.options : [curr]),
45
47
  ], [])
46
48
  .forEach((option) => {
47
- const isMatch = (option.value || option.label) ===
48
- (component.hostElement.value ||
49
- component.hostElement.label);
49
+ const isMatch = option.label === component.hostElement.label;
50
50
  if (isSingle) {
51
51
  option.isSelected = isMatch;
52
52
  component.hostElement.isSelected = option.isSelected;
@@ -116,5 +116,3 @@ const XplTag = class {
116
116
  };
117
117
 
118
118
  export { XplDropdown as xpl_dropdown, XplTag as xpl_tag };
119
-
120
- //# sourceMappingURL=xpl-dropdown_2.entry.js.map
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplGridItem = class {
4
4
  constructor(hostRef) {
@@ -19,5 +19,3 @@ const XplGridItem = class {
19
19
  };
20
20
 
21
21
  export { XplGridItem as xpl_grid_item };
22
-
23
- //# sourceMappingURL=xpl-grid-item.entry.js.map
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getElement, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, g as getElement, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplGrid = class {
4
4
  constructor(hostRef) {
@@ -29,5 +29,3 @@ const XplGrid = class {
29
29
  };
30
30
 
31
31
  export { XplGrid as xpl_grid };
32
-
33
- //# sourceMappingURL=xpl-grid.entry.js.map
@@ -1,4 +1,5 @@
1
- import { r as registerInstance, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
+ import './regular-86225e9d.js';
2
3
  import { v as v4 } from './v4-929670b7.js';
3
4
 
4
5
  const HOOKS = [
@@ -2446,27 +2447,23 @@ const arrowSvg = (rotate = false) => `<svg width="8" height="12" viewBox="0 0 8
2446
2447
  const XplInput = class {
2447
2448
  constructor(hostRef) {
2448
2449
  registerInstance(this, hostRef);
2449
- this._id = undefined;
2450
- this.autocomplete = undefined;
2450
+ /**
2451
+ * See https://flatpickr.js.org/formatting/
2452
+ */
2451
2453
  this.dateFormat = 'Y-m-d';
2452
- this.description = undefined;
2453
- this.disabled = undefined;
2454
- this.error = undefined;
2455
- this.label = undefined;
2456
- this.max = undefined;
2457
- this.maxCharacterCount = undefined;
2458
- this.min = undefined;
2454
+ /**
2455
+ * For datepicker inputs, whether to allow only a single
2456
+ * date or a range of dates. (Multiple non-consecutive
2457
+ * dates planned to be supported in the future.)
2458
+ */
2459
2459
  this.mode = 'single';
2460
+ /**
2461
+ * Whether to render as a singleline text input or
2462
+ * as a multiline textarea. (If `true`, `pre` and `post`
2463
+ * values will be ignored, if present.)
2464
+ */
2460
2465
  this.multiline = false;
2461
- this.name = undefined;
2462
- this.placeholder = undefined;
2463
- this.post = undefined;
2464
- this.pre = undefined;
2465
- this.readonly = undefined;
2466
- this.required = undefined;
2467
- this.step = undefined;
2468
2466
  this.type = 'text';
2469
- this.value = undefined;
2470
2467
  this.characterCount = 0;
2471
2468
  this.passwordVisible = false;
2472
2469
  }
@@ -2516,12 +2513,18 @@ const XplInput = class {
2516
2513
  this.input = el;
2517
2514
  }, required: this.required, step: this.step, type: type, value: this.value })) : (h("textarea", { disabled: this.disabled, id: this._id, name: this.name, onInput: () => this.updateCharacterCount(), placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
2518
2515
  this.input = el;
2519
- }, required: this.required }, this.value)), this.type === 'date' && (h("xpl-icon", { class: "xpl-input-calendar", icon: "calendar-month", size: 24 })), this.type === 'password' && (h("button", { "aria-label": "Toggle password visibility", class: "xpl-input-password", onClick: () => {
2516
+ }, required: this.required }, this.value)), this.type === 'date' && (h("span", { class: "xpl-input-calendar" }, h("i", { class: "far fa-calendar-alt" }))), this.type === 'password' && (h("button", { class: "xpl-input-password", onClick: () => {
2520
2517
  this.passwordVisible = !this.passwordVisible;
2521
- }, role: "presentation" }, h("xpl-icon", { icon: this.passwordVisible ? 'eye-closed' : 'eye', size: 24 }))), this.post && !this.multiline && (h("label", { class: "xpl-input-post", htmlFor: this._id }, this.post)), this.multiline && this.maxCharacterCount !== undefined && (h("span", { class: "xpl-input-characters" }, this.characterCount, "/", this.maxCharacterCount))), 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))));
2518
+ }, role: "presentation" }, h("span", { class: "sr-only" }, "Toggle password visibility"), h("i", { class: "far fa-eye", style: {
2519
+ display: this.passwordVisible
2520
+ ? 'none'
2521
+ : 'block',
2522
+ } }), h("i", { class: "far fa-eye-slash", style: {
2523
+ display: this.passwordVisible
2524
+ ? 'block'
2525
+ : 'none',
2526
+ } }))), this.post && !this.multiline && (h("label", { class: "xpl-input-post", htmlFor: this._id }, this.post)), this.multiline && this.maxCharacterCount !== undefined && (h("span", { class: "xpl-input-characters" }, this.characterCount, "/", this.maxCharacterCount))), 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))));
2522
2527
  }
2523
2528
  };
2524
2529
 
2525
2530
  export { XplInput as xpl_input };
2526
-
2527
- //# sourceMappingURL=xpl-input.entry.js.map