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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/build/style.css +2758 -1516
  3. package/dist/apollo-core/apollo-core.css +14 -4597
  4. package/dist/apollo-core/apollo-core.esm.js +1 -2
  5. package/dist/apollo-core/index.esm.js +0 -2
  6. package/dist/apollo-core/p-09b2f746.entry.js +1 -0
  7. package/dist/apollo-core/p-1b1e7207.entry.js +1 -0
  8. package/dist/apollo-core/p-20389bb6.entry.js +1 -0
  9. package/dist/apollo-core/p-25983fde.entry.js +1 -0
  10. package/dist/apollo-core/p-2f90296c.js +10 -0
  11. package/dist/apollo-core/p-4a348764.entry.js +1 -0
  12. package/dist/apollo-core/p-4e2b69e8.entry.js +1 -0
  13. package/dist/apollo-core/p-84bf6b2d.entry.js +1 -0
  14. package/dist/apollo-core/p-880c0359.entry.js +1 -0
  15. package/dist/apollo-core/p-8e47a5be.entry.js +1 -0
  16. package/dist/apollo-core/p-93958292.entry.js +1 -0
  17. package/dist/apollo-core/p-93c27db5.entry.js +1 -0
  18. package/dist/apollo-core/p-ad90fe4d.js +1 -2
  19. package/dist/apollo-core/p-b2327e2c.entry.js +1 -0
  20. package/dist/apollo-core/p-c3a12469.entry.js +1 -0
  21. package/dist/apollo-core/p-c55b5d9c.entry.js +1 -0
  22. package/dist/apollo-core/p-e369d7af.entry.js +1 -0
  23. package/dist/apollo-core/p-e60ecaef.entry.js +1 -0
  24. package/dist/apollo-core/p-f929c958.js +1 -0
  25. package/dist/cjs/apollo-core.cjs.js +3 -12
  26. package/dist/cjs/{index-000e170c.js → index-54ba5804.js} +216 -768
  27. package/dist/cjs/index.cjs.js +0 -2
  28. package/dist/cjs/loader.cjs.js +3 -6
  29. package/dist/cjs/regular-872f5226.js +16043 -0
  30. package/dist/cjs/v4-14140ff3.js +0 -2
  31. package/dist/cjs/xpl-application-shell.cjs.entry.js +13 -10
  32. package/dist/cjs/xpl-avatar_12.cjs.entry.js +299 -0
  33. package/dist/cjs/xpl-backdrop.cjs.entry.js +5 -3
  34. package/dist/cjs/xpl-button-row.cjs.entry.js +1 -6
  35. package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -10
  36. package/dist/cjs/xpl-divider.cjs.entry.js +1 -4
  37. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -16
  38. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +12 -14
  39. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -3
  40. package/dist/cjs/xpl-grid.cjs.entry.js +1 -3
  41. package/dist/cjs/xpl-input.cjs.entry.js +25 -22
  42. package/dist/cjs/xpl-list.cjs.entry.js +25 -4
  43. package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -3
  44. package/dist/cjs/xpl-pagination.cjs.entry.js +2 -7
  45. package/dist/cjs/xpl-select.cjs.entry.js +25 -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 +188 -228
  55. package/dist/collection/components/xpl-button-row/xpl-button-row.js +104 -106
  56. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +171 -182
  57. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +126 -134
  58. package/dist/collection/components/xpl-content-area/xpl-content-area.js +31 -28
  59. package/dist/collection/components/xpl-divider/xpl-divider.js +23 -27
  60. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +41 -47
  61. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +22 -27
  62. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +55 -83
  63. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +161 -169
  64. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -2
  65. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +74 -76
  66. package/dist/collection/components/xpl-input/xpl-input.js +419 -397
  67. package/dist/collection/components/xpl-list/xpl-list.js +77 -43
  68. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +54 -48
  69. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +49 -48
  70. package/dist/collection/components/xpl-pagination/xpl-pagination.js +128 -117
  71. package/dist/collection/components/xpl-radio/xpl-radio.js +148 -158
  72. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +4 -3
  73. package/dist/collection/components/xpl-select/xpl-select.js +235 -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 +20201 -0
  80. package/dist/esm/apollo-core.js +3 -9
  81. package/dist/esm/{index-56581b5c.js → index-3df6db84.js} +217 -768
  82. package/dist/esm/index.js +0 -2
  83. package/dist/esm/loader.js +3 -6
  84. package/dist/esm/polyfills/css-shim.js +1 -1
  85. package/dist/esm/regular-86225e9d.js +16041 -0
  86. package/dist/esm/v4-929670b7.js +0 -2
  87. package/dist/esm/xpl-application-shell.entry.js +13 -10
  88. package/dist/esm/xpl-avatar_12.entry.js +284 -0
  89. package/dist/esm/xpl-backdrop.entry.js +5 -3
  90. package/dist/esm/xpl-button-row.entry.js +1 -6
  91. package/dist/esm/xpl-choicelist.entry.js +1 -10
  92. package/dist/esm/xpl-divider.entry.js +1 -4
  93. package/dist/esm/xpl-dropdown-group_3.entry.js +4 -16
  94. package/dist/esm/xpl-dropdown_2.entry.js +12 -14
  95. package/dist/esm/xpl-grid-item.entry.js +1 -3
  96. package/dist/esm/xpl-grid.entry.js +1 -3
  97. package/dist/esm/xpl-input.entry.js +25 -22
  98. package/dist/esm/xpl-list.entry.js +25 -4
  99. package/dist/esm/xpl-main-nav.entry.js +4 -3
  100. package/dist/esm/xpl-pagination.entry.js +2 -7
  101. package/dist/esm/xpl-select.entry.js +25 -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 +5 -18
  110. package/dist/stories/checkbox.stories.js +0 -1
  111. package/dist/stories/choicelist.stories.js +0 -1
  112. package/dist/stories/content-area.stories.js +0 -1
  113. package/dist/stories/divider.stories.js +0 -1
  114. package/dist/stories/dropdown.stories.js +65 -74
  115. package/dist/stories/grid.stories.js +0 -1
  116. package/dist/stories/input.stories.js +0 -1
  117. package/dist/stories/list.stories.js +2 -3
  118. package/dist/stories/main-nav.stories.js +0 -1
  119. package/dist/stories/pagination.stories.js +0 -1
  120. package/dist/stories/radio.stories.js +0 -1
  121. package/dist/stories/secondary-nav.stories.js +0 -1
  122. package/dist/stories/select.stories.js +32 -109
  123. package/dist/stories/table.stories.js +7 -24
  124. package/dist/stories/tabs.stories.js +0 -1
  125. package/dist/stories/toggle.stories.js +0 -1
  126. package/dist/stories/utility-bar.stories.js +6 -2
  127. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/application-shell.stories.d.ts +5 -14
  128. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button.stories.d.ts +2 -10
  129. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/dropdown.stories.d.ts +1 -17
  130. package/dist/types/Users/fernandogelin/Projects/apollo-admin/packages/apollo/.stencil/stories/select.stories.d.ts +74 -0
  131. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/table.stories.d.ts +1 -22
  132. package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -6
  133. package/dist/types/components/xpl-button/xpl-button.d.ts +0 -6
  134. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -2
  135. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +0 -1
  136. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -7
  137. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -7
  138. package/dist/types/components/xpl-input/xpl-input.d.ts +2 -0
  139. package/dist/types/components/xpl-list/xpl-list.d.ts +3 -2
  140. package/dist/types/components/xpl-select/xpl-select.d.ts +1 -21
  141. package/dist/types/components/xpl-table/xpl-table.d.ts +7 -29
  142. package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -5
  143. package/dist/types/components.d.ts +21 -276
  144. package/dist/types/stencil-public-runtime.d.ts +23 -97
  145. package/loader/index.d.ts +1 -9
  146. package/loader/package.json +0 -1
  147. package/package.json +28 -21
  148. package/LICENSE +0 -21
  149. package/dist/apollo-core/apollo-core.esm.js.map +0 -1
  150. package/dist/apollo-core/index.esm.js.map +0 -1
  151. package/dist/apollo-core/p-1fa46bc3.entry.js +0 -2
  152. package/dist/apollo-core/p-1fa46bc3.entry.js.map +0 -1
  153. package/dist/apollo-core/p-29f4679d.entry.js +0 -2
  154. package/dist/apollo-core/p-29f4679d.entry.js.map +0 -1
  155. package/dist/apollo-core/p-3f3cc34e.entry.js +0 -2
  156. package/dist/apollo-core/p-3f3cc34e.entry.js.map +0 -1
  157. package/dist/apollo-core/p-5372bf3e.entry.js +0 -2
  158. package/dist/apollo-core/p-5372bf3e.entry.js.map +0 -1
  159. package/dist/apollo-core/p-5ceaec87.entry.js +0 -2
  160. package/dist/apollo-core/p-5ceaec87.entry.js.map +0 -1
  161. package/dist/apollo-core/p-60d4d252.entry.js +0 -2
  162. package/dist/apollo-core/p-60d4d252.entry.js.map +0 -1
  163. package/dist/apollo-core/p-6797b2b7.entry.js +0 -7
  164. package/dist/apollo-core/p-6797b2b7.entry.js.map +0 -1
  165. package/dist/apollo-core/p-6acc4122.entry.js +0 -2
  166. package/dist/apollo-core/p-6acc4122.entry.js.map +0 -1
  167. package/dist/apollo-core/p-787bac91.entry.js +0 -2
  168. package/dist/apollo-core/p-787bac91.entry.js.map +0 -1
  169. package/dist/apollo-core/p-7a8e818a.entry.js +0 -2
  170. package/dist/apollo-core/p-7a8e818a.entry.js.map +0 -1
  171. package/dist/apollo-core/p-807d8de9.entry.js +0 -2
  172. package/dist/apollo-core/p-807d8de9.entry.js.map +0 -1
  173. package/dist/apollo-core/p-ad90fe4d.js.map +0 -1
  174. package/dist/apollo-core/p-bcb81e30.entry.js +0 -2
  175. package/dist/apollo-core/p-bcb81e30.entry.js.map +0 -1
  176. package/dist/apollo-core/p-da5a8e74.entry.js +0 -2
  177. package/dist/apollo-core/p-da5a8e74.entry.js.map +0 -1
  178. package/dist/apollo-core/p-e0541e23.entry.js +0 -2
  179. package/dist/apollo-core/p-e0541e23.entry.js.map +0 -1
  180. package/dist/apollo-core/p-e215fc5f.entry.js +0 -2
  181. package/dist/apollo-core/p-e215fc5f.entry.js.map +0 -1
  182. package/dist/apollo-core/p-e8953b60.js +0 -3
  183. package/dist/apollo-core/p-e8953b60.js.map +0 -1
  184. package/dist/apollo-core/p-efa8a79d.entry.js +0 -2
  185. package/dist/apollo-core/p-efa8a79d.entry.js.map +0 -1
  186. package/dist/cjs/apollo-core.cjs.js.map +0 -1
  187. package/dist/cjs/index-000e170c.js.map +0 -1
  188. package/dist/cjs/index.cjs.js.map +0 -1
  189. package/dist/cjs/loader.cjs.js.map +0 -1
  190. package/dist/cjs/v4-14140ff3.js.map +0 -1
  191. package/dist/cjs/xpl-application-shell.cjs.entry.js.map +0 -1
  192. package/dist/cjs/xpl-avatar_15.cjs.entry.js +0 -2278
  193. package/dist/cjs/xpl-avatar_15.cjs.entry.js.map +0 -1
  194. package/dist/cjs/xpl-backdrop.cjs.entry.js.map +0 -1
  195. package/dist/cjs/xpl-button-row.cjs.entry.js.map +0 -1
  196. package/dist/cjs/xpl-choicelist.cjs.entry.js.map +0 -1
  197. package/dist/cjs/xpl-divider.cjs.entry.js.map +0 -1
  198. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +0 -1
  199. package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +0 -1
  200. package/dist/cjs/xpl-grid-item.cjs.entry.js.map +0 -1
  201. package/dist/cjs/xpl-grid.cjs.entry.js.map +0 -1
  202. package/dist/cjs/xpl-input.cjs.entry.js.map +0 -1
  203. package/dist/cjs/xpl-list.cjs.entry.js.map +0 -1
  204. package/dist/cjs/xpl-main-nav.cjs.entry.js.map +0 -1
  205. package/dist/cjs/xpl-pagination.cjs.entry.js.map +0 -1
  206. package/dist/cjs/xpl-select.cjs.entry.js.map +0 -1
  207. package/dist/cjs/xpl-toggle.cjs.entry.js.map +0 -1
  208. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +0 -1
  209. package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +0 -1
  210. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +0 -1
  211. package/dist/collection/components/xpl-badge/xpl-badge.js.map +0 -1
  212. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +0 -1
  213. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +0 -1
  214. package/dist/collection/components/xpl-button/xpl-button.js.map +0 -1
  215. package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +0 -1
  216. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +0 -1
  217. package/dist/collection/components/xpl-choicelist/choice.js +0 -2
  218. package/dist/collection/components/xpl-choicelist/choice.js.map +0 -1
  219. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +0 -1
  220. package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +0 -1
  221. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +0 -8
  222. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js.map +0 -1
  223. package/dist/collection/components/xpl-data-card/xpl-data-card.js +0 -162
  224. package/dist/collection/components/xpl-data-card/xpl-data-card.js.map +0 -1
  225. package/dist/collection/components/xpl-divider/xpl-divider.js.map +0 -1
  226. package/dist/collection/components/xpl-dropdown/dropdownoption.js +0 -2
  227. package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +0 -1
  228. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +0 -1
  229. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +0 -1
  230. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +0 -1
  231. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +0 -1
  232. package/dist/collection/components/xpl-grid/xpl-grid.js.map +0 -1
  233. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +0 -1
  234. package/dist/collection/components/xpl-icon/xpl-icon.css +0 -5
  235. package/dist/collection/components/xpl-icon/xpl-icon.js +0 -93
  236. package/dist/collection/components/xpl-icon/xpl-icon.js.map +0 -1
  237. package/dist/collection/components/xpl-input/xpl-input.js.map +0 -1
  238. package/dist/collection/components/xpl-list/listitem.js +0 -2
  239. package/dist/collection/components/xpl-list/listitem.js.map +0 -1
  240. package/dist/collection/components/xpl-list/xpl-list.js.map +0 -1
  241. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +0 -1
  242. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +0 -1
  243. package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +0 -1
  244. package/dist/collection/components/xpl-radio/xpl-radio.js.map +0 -1
  245. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +0 -1
  246. package/dist/collection/components/xpl-select/xpl-select.js.map +0 -1
  247. package/dist/collection/components/xpl-table/xpl-table.js.map +0 -1
  248. package/dist/collection/components/xpl-tag/xpl-tag.js.map +0 -1
  249. package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +0 -1
  250. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +0 -1
  251. package/dist/components/index.d.ts +0 -39
  252. package/dist/components/index.js +0 -82
  253. package/dist/components/index.js.map +0 -1
  254. package/dist/components/v4.js +0 -77
  255. package/dist/components/v4.js.map +0 -1
  256. package/dist/components/xpl-application-shell.d.ts +0 -11
  257. package/dist/components/xpl-application-shell.js +0 -80
  258. package/dist/components/xpl-application-shell.js.map +0 -1
  259. package/dist/components/xpl-avatar.d.ts +0 -11
  260. package/dist/components/xpl-avatar.js +0 -8
  261. package/dist/components/xpl-avatar.js.map +0 -1
  262. package/dist/components/xpl-avatar2.js +0 -51
  263. package/dist/components/xpl-avatar2.js.map +0 -1
  264. package/dist/components/xpl-backdrop.d.ts +0 -11
  265. package/dist/components/xpl-backdrop.js +0 -8
  266. package/dist/components/xpl-backdrop.js.map +0 -1
  267. package/dist/components/xpl-backdrop2.js +0 -35
  268. package/dist/components/xpl-backdrop2.js.map +0 -1
  269. package/dist/components/xpl-badge.d.ts +0 -11
  270. package/dist/components/xpl-badge.js +0 -8
  271. package/dist/components/xpl-badge.js.map +0 -1
  272. package/dist/components/xpl-badge2.js +0 -38
  273. package/dist/components/xpl-badge2.js.map +0 -1
  274. package/dist/components/xpl-breadcrumb-item.d.ts +0 -11
  275. package/dist/components/xpl-breadcrumb-item.js +0 -36
  276. package/dist/components/xpl-breadcrumb-item.js.map +0 -1
  277. package/dist/components/xpl-breadcrumbs.d.ts +0 -11
  278. package/dist/components/xpl-breadcrumbs.js +0 -31
  279. package/dist/components/xpl-breadcrumbs.js.map +0 -1
  280. package/dist/components/xpl-button-row.d.ts +0 -11
  281. package/dist/components/xpl-button-row.js +0 -50
  282. package/dist/components/xpl-button-row.js.map +0 -1
  283. package/dist/components/xpl-button.d.ts +0 -11
  284. package/dist/components/xpl-button.js +0 -8
  285. package/dist/components/xpl-button.js.map +0 -1
  286. package/dist/components/xpl-button2.js +0 -85
  287. package/dist/components/xpl-button2.js.map +0 -1
  288. package/dist/components/xpl-checkbox.d.ts +0 -11
  289. package/dist/components/xpl-checkbox.js +0 -8
  290. package/dist/components/xpl-checkbox.js.map +0 -1
  291. package/dist/components/xpl-checkbox2.js +0 -59
  292. package/dist/components/xpl-checkbox2.js.map +0 -1
  293. package/dist/components/xpl-choicelist.d.ts +0 -11
  294. package/dist/components/xpl-choicelist.js +0 -85
  295. package/dist/components/xpl-choicelist.js.map +0 -1
  296. package/dist/components/xpl-content-area.d.ts +0 -11
  297. package/dist/components/xpl-content-area.js +0 -34
  298. package/dist/components/xpl-content-area.js.map +0 -1
  299. package/dist/components/xpl-dashboard.d.ts +0 -11
  300. package/dist/components/xpl-dashboard.js +0 -31
  301. package/dist/components/xpl-dashboard.js.map +0 -1
  302. package/dist/components/xpl-data-card.d.ts +0 -11
  303. package/dist/components/xpl-data-card.js +0 -80
  304. package/dist/components/xpl-data-card.js.map +0 -1
  305. package/dist/components/xpl-divider.d.ts +0 -11
  306. package/dist/components/xpl-divider.js +0 -36
  307. package/dist/components/xpl-divider.js.map +0 -1
  308. package/dist/components/xpl-dropdown-group.d.ts +0 -11
  309. package/dist/components/xpl-dropdown-group.js +0 -8
  310. package/dist/components/xpl-dropdown-group.js.map +0 -1
  311. package/dist/components/xpl-dropdown-group2.js +0 -69
  312. package/dist/components/xpl-dropdown-group2.js.map +0 -1
  313. package/dist/components/xpl-dropdown-heading.d.ts +0 -11
  314. package/dist/components/xpl-dropdown-heading.js +0 -8
  315. package/dist/components/xpl-dropdown-heading.js.map +0 -1
  316. package/dist/components/xpl-dropdown-heading2.js +0 -31
  317. package/dist/components/xpl-dropdown-heading2.js.map +0 -1
  318. package/dist/components/xpl-dropdown-option.d.ts +0 -11
  319. package/dist/components/xpl-dropdown-option.js +0 -8
  320. package/dist/components/xpl-dropdown-option.js.map +0 -1
  321. package/dist/components/xpl-dropdown-option2.js +0 -89
  322. package/dist/components/xpl-dropdown-option2.js.map +0 -1
  323. package/dist/components/xpl-dropdown.d.ts +0 -11
  324. package/dist/components/xpl-dropdown.js +0 -8
  325. package/dist/components/xpl-dropdown.js.map +0 -1
  326. package/dist/components/xpl-dropdown2.js +0 -147
  327. package/dist/components/xpl-dropdown2.js.map +0 -1
  328. package/dist/components/xpl-grid-item.d.ts +0 -11
  329. package/dist/components/xpl-grid-item.js +0 -45
  330. package/dist/components/xpl-grid-item.js.map +0 -1
  331. package/dist/components/xpl-grid.d.ts +0 -11
  332. package/dist/components/xpl-grid.js +0 -50
  333. package/dist/components/xpl-grid.js.map +0 -1
  334. package/dist/components/xpl-icon.d.ts +0 -11
  335. package/dist/components/xpl-icon.js +0 -8
  336. package/dist/components/xpl-icon.js.map +0 -1
  337. package/dist/components/xpl-icon2.js +0 -1850
  338. package/dist/components/xpl-icon2.js.map +0 -1
  339. package/dist/components/xpl-input.d.ts +0 -11
  340. package/dist/components/xpl-input.js +0 -2574
  341. package/dist/components/xpl-input.js.map +0 -1
  342. package/dist/components/xpl-list.d.ts +0 -11
  343. package/dist/components/xpl-list.js +0 -73
  344. package/dist/components/xpl-list.js.map +0 -1
  345. package/dist/components/xpl-main-nav.d.ts +0 -11
  346. package/dist/components/xpl-main-nav.js +0 -44
  347. package/dist/components/xpl-main-nav.js.map +0 -1
  348. package/dist/components/xpl-nav-item.d.ts +0 -11
  349. package/dist/components/xpl-nav-item.js +0 -44
  350. package/dist/components/xpl-nav-item.js.map +0 -1
  351. package/dist/components/xpl-pagination.d.ts +0 -11
  352. package/dist/components/xpl-pagination.js +0 -100
  353. package/dist/components/xpl-pagination.js.map +0 -1
  354. package/dist/components/xpl-radio.d.ts +0 -11
  355. package/dist/components/xpl-radio.js +0 -8
  356. package/dist/components/xpl-radio.js.map +0 -1
  357. package/dist/components/xpl-radio2.js +0 -57
  358. package/dist/components/xpl-radio2.js.map +0 -1
  359. package/dist/components/xpl-secondary-nav.d.ts +0 -11
  360. package/dist/components/xpl-secondary-nav.js +0 -31
  361. package/dist/components/xpl-secondary-nav.js.map +0 -1
  362. package/dist/components/xpl-select.d.ts +0 -11
  363. package/dist/components/xpl-select.js +0 -712
  364. package/dist/components/xpl-select.js.map +0 -1
  365. package/dist/components/xpl-table.d.ts +0 -11
  366. package/dist/components/xpl-table.js +0 -170
  367. package/dist/components/xpl-table.js.map +0 -1
  368. package/dist/components/xpl-tag.d.ts +0 -11
  369. package/dist/components/xpl-tag.js +0 -8
  370. package/dist/components/xpl-tag.js.map +0 -1
  371. package/dist/components/xpl-tag2.js +0 -33
  372. package/dist/components/xpl-tag2.js.map +0 -1
  373. package/dist/components/xpl-toggle.d.ts +0 -11
  374. package/dist/components/xpl-toggle.js +0 -61
  375. package/dist/components/xpl-toggle.js.map +0 -1
  376. package/dist/components/xpl-utility-bar.d.ts +0 -11
  377. package/dist/components/xpl-utility-bar.js +0 -55
  378. package/dist/components/xpl-utility-bar.js.map +0 -1
  379. package/dist/esm/apollo-core.js.map +0 -1
  380. package/dist/esm/index-56581b5c.js.map +0 -1
  381. package/dist/esm/index.js.map +0 -1
  382. package/dist/esm/loader.js.map +0 -1
  383. package/dist/esm/v4-929670b7.js.map +0 -1
  384. package/dist/esm/xpl-application-shell.entry.js.map +0 -1
  385. package/dist/esm/xpl-avatar_15.entry.js +0 -2260
  386. package/dist/esm/xpl-avatar_15.entry.js.map +0 -1
  387. package/dist/esm/xpl-backdrop.entry.js.map +0 -1
  388. package/dist/esm/xpl-button-row.entry.js.map +0 -1
  389. package/dist/esm/xpl-choicelist.entry.js.map +0 -1
  390. package/dist/esm/xpl-divider.entry.js.map +0 -1
  391. package/dist/esm/xpl-dropdown-group_3.entry.js.map +0 -1
  392. package/dist/esm/xpl-dropdown_2.entry.js.map +0 -1
  393. package/dist/esm/xpl-grid-item.entry.js.map +0 -1
  394. package/dist/esm/xpl-grid.entry.js.map +0 -1
  395. package/dist/esm/xpl-input.entry.js.map +0 -1
  396. package/dist/esm/xpl-list.entry.js.map +0 -1
  397. package/dist/esm/xpl-main-nav.entry.js.map +0 -1
  398. package/dist/esm/xpl-pagination.entry.js.map +0 -1
  399. package/dist/esm/xpl-select.entry.js.map +0 -1
  400. package/dist/esm/xpl-toggle.entry.js.map +0 -1
  401. package/dist/stories/application-shell.stories.js.map +0 -1
  402. package/dist/stories/avatar.stories.js.map +0 -1
  403. package/dist/stories/backdrop.stories.js.map +0 -1
  404. package/dist/stories/badge.stories.js.map +0 -1
  405. package/dist/stories/breadcrumbs.stories.js.map +0 -1
  406. package/dist/stories/button-row.stories.js.map +0 -1
  407. package/dist/stories/button.stories.js.map +0 -1
  408. package/dist/stories/checkbox.stories.js.map +0 -1
  409. package/dist/stories/choicelist.stories.js.map +0 -1
  410. package/dist/stories/content-area.stories.js.map +0 -1
  411. package/dist/stories/dashboard.stories.js +0 -51
  412. package/dist/stories/dashboard.stories.js.map +0 -1
  413. package/dist/stories/data-card.stories.js +0 -70
  414. package/dist/stories/data-card.stories.js.map +0 -1
  415. package/dist/stories/divider.stories.js.map +0 -1
  416. package/dist/stories/dropdown.stories.js.map +0 -1
  417. package/dist/stories/grid.stories.js.map +0 -1
  418. package/dist/stories/icons.stories.js +0 -69
  419. package/dist/stories/icons.stories.js.map +0 -1
  420. package/dist/stories/input.stories.js.map +0 -1
  421. package/dist/stories/list.stories.js.map +0 -1
  422. package/dist/stories/main-nav.stories.js.map +0 -1
  423. package/dist/stories/pagination.stories.js.map +0 -1
  424. package/dist/stories/radio.stories.js.map +0 -1
  425. package/dist/stories/secondary-nav.stories.js.map +0 -1
  426. package/dist/stories/select.stories.js.map +0 -1
  427. package/dist/stories/table.stories.js.map +0 -1
  428. package/dist/stories/tabs.stories.js.map +0 -1
  429. package/dist/stories/toggle.stories.js.map +0 -1
  430. package/dist/stories/utility-bar.stories.js.map +0 -1
  431. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dashboard.stories.d.ts +0 -31
  432. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/data-card.stories.d.ts +0 -71
  433. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/icons.stories.d.ts +0 -77
  434. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +0 -134
  435. package/dist/types/components/xpl-choicelist/choice.d.ts +0 -6
  436. package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +0 -3
  437. package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +0 -38
  438. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +0 -11
  439. package/dist/types/components/xpl-icon/xpl-icon.d.ts +0 -17
  440. package/dist/types/components/xpl-list/listitem.d.ts +0 -16
  441. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
  442. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
  443. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
  444. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
  445. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
  446. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
  447. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
  448. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
  449. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
  450. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
  451. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/input.stories.d.ts +0 -0
  452. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/list.stories.d.ts +0 -0
  453. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
  454. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  455. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
  456. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
  457. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  458. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
  459. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
@@ -1,57 +1,91 @@
1
- import { Host, h, Fragment, } from '@stencil/core';
1
+ /// <reference path="./listitem.d.ts"></reference>
2
+ import { Component, Host, h, Prop, Fragment, } from '@stencil/core';
3
+ import '../../../font-awesome/fontawesome';
4
+ import '../../../font-awesome/regular';
2
5
  const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata, }) => {
3
6
  const hasRight = avatars || badges || subtext;
4
- const inner = (h(Fragment, null, avatar &&
5
- (avatar.slice(0, 1) === '/' || avatar.slice(0, 4) === 'http' ? (h("xpl-avatar", { src: avatar, name: title })) : (h("xpl-avatar", { name: title }, avatar))), h("div", { class: "xpl-list-item-content" }, h("div", { class: "xpl-list-left" }, h("div", null, h("h4", null, title), metadata && (h("ul", { class: "xpl-list-item-metadata" }, metadata.map((d) => {
6
- if (typeof d === 'string') {
7
- return h("li", null, d);
8
- }
9
- else {
10
- return (h("li", null, h("xpl-icon", { icon: d.icon }), ' ', d.text));
11
- }
12
- }))))), hasRight && (h("div", { class: "xpl-list-right" }, subtext && (h("div", { class: "xpl-list-item-subtext" }, subtext)), avatars && (h("div", { class: "xpl-avatar-group xpl-avatar-group--s" }, avatars.map((a) => (h("img", { src: a, alt: "" }))))), badges &&
13
- badges.map((b) => {
14
- if (typeof b === 'string') {
15
- return h("xpl-badge", null, b);
16
- }
17
- else {
18
- return (h("xpl-badge", { dot: b.dot, variant: b.variant }, b.text));
19
- }
20
- }))))));
7
+ const inner = (h(Fragment, null,
8
+ avatar &&
9
+ (avatar.slice(0, 1) === '/' || avatar.slice(0, 4) === 'http' ? (h("xpl-avatar", { src: avatar, name: title })) : (h("xpl-avatar", { name: title }, avatar))),
10
+ h("div", { class: "xpl-list-item-content" },
11
+ h("div", { class: "xpl-list-left" },
12
+ h("div", null,
13
+ h("h4", null, title),
14
+ metadata && (h("ul", { class: "xpl-list-item-metadata" }, metadata.map((d) => {
15
+ if (typeof d === 'string') {
16
+ return h("li", null, d);
17
+ }
18
+ else {
19
+ return (h("li", null,
20
+ h("span", { class: `far fa-${d.icon}` }),
21
+ ' ',
22
+ d.text));
23
+ }
24
+ }))))),
25
+ hasRight && (h("div", { class: "xpl-list-right" },
26
+ subtext && (h("div", { class: "xpl-list-item-subtext" }, subtext)),
27
+ avatars && (h("div", { class: "xpl-avatar-group xpl-avatar-group--s" }, avatars.map((a) => (h("img", { src: a, alt: "" }))))),
28
+ badges &&
29
+ badges.map((b) => {
30
+ if (typeof b === 'string') {
31
+ return h("xpl-badge", null, b);
32
+ }
33
+ else {
34
+ return (h("xpl-badge", { dot: b.dot, variant: b.variant }, b.text));
35
+ }
36
+ }))))));
21
37
  return href ? (h("a", { class: "xpl-list-item", href: href }, inner)) : (h("div", { class: "xpl-list-item" }, inner));
22
38
  };
23
39
  export class XplList {
24
40
  constructor() {
41
+ /**
42
+ * `items` should be an array of objects with the following signature:
43
+ * {
44
+ * avatar?: string; // The URL of the avatar, or the placeholder initials (ex. "SPD").
45
+ * avatars?: string[]; // The URLs of multiple avatars to be displayed in a group on the right.
46
+ * badges?: string[] | { // An array of strings or badge-like objects to be displayed as badges
47
+ * dot?: boolean; // in a group on the right. See <xpl-badge> for more details.
48
+ * text: string;
49
+ * variant?: string;
50
+ * }[];
51
+ * href?: string; // A URL, if this list item is meant to link somewhere.
52
+ * title: string; // The text to be displayed for the list item.
53
+ * metadata?: string[] | { // An array of strings or strings with icons (reference the allowed
54
+ * icon: string; // Font Awesome icons) to be displayed as metadata below the title.
55
+ * text: string;
56
+ * }[];
57
+ * subtext?: string; // Subtext to be displayed on the right.
58
+ * }
59
+ *
60
+ * - Note that you should *only use one of* `avatars`, `badges`, or `subtext`, to avoid cluttering
61
+ * the right-hand side of the list item.
62
+ */
25
63
  this.items = [];
26
64
  }
27
65
  render() {
28
66
  return (h(Host, null, this.items.map((item) => (h(ListItemCpt, Object.assign({}, item))))));
29
67
  }
30
68
  static get is() { return "xpl-list"; }
31
- static get properties() {
32
- return {
33
- "items": {
34
- "type": "unknown",
35
- "mutable": false,
36
- "complexType": {
37
- "original": "ListItem[]",
38
- "resolved": "ListItem[]",
39
- "references": {
40
- "ListItem": {
41
- "location": "import",
42
- "path": "./listitem"
43
- }
69
+ static get properties() { return {
70
+ "items": {
71
+ "type": "unknown",
72
+ "mutable": false,
73
+ "complexType": {
74
+ "original": "ListItem[]",
75
+ "resolved": "ListItem[]",
76
+ "references": {
77
+ "ListItem": {
78
+ "location": "global"
44
79
  }
45
- },
46
- "required": false,
47
- "optional": true,
48
- "docs": {
49
- "tags": [],
50
- "text": "`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; // Apollo 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."
51
- },
52
- "defaultValue": "[]"
53
- }
54
- };
55
- }
80
+ }
81
+ },
82
+ "required": false,
83
+ "optional": true,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": "`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."
87
+ },
88
+ "defaultValue": "[]"
89
+ }
90
+ }; }
56
91
  }
57
- //# sourceMappingURL=xpl-list.js.map
@@ -1,6 +1,9 @@
1
- import { Host, h } from '@stencil/core';
1
+ import { Component, Host, h, Prop, Event } from '@stencil/core';
2
2
  export class XplMainNav {
3
3
  constructor() {
4
+ /**
5
+ * @property {string} width - The width of the Main Nav.
6
+ */
4
7
  this.width = 'default';
5
8
  }
6
9
  navWidthHandler() {
@@ -13,54 +16,57 @@ export class XplMainNav {
13
16
  this.navWidthHandler();
14
17
  }
15
18
  render() {
16
- return (h(Host, { class: `xpl-main-nav xpl-main-nav--${this.width}`, "aria-label": "Sidebar" }, h("nav", null, h("header", { "aria-label": "Sidebar Header" }, h("slot", { name: "logo" }), h("slot", { name: "brand-name" })), h("div", { class: "xpl-main-nav__main_section" }, h("slot", { name: "navigation" })), h("footer", { class: "xpl-main-nav__footer", "aria-label": "Sidebar Footer" }, h("slot", { name: "footer" })))));
19
+ return (h(Host, { class: `xpl-main-nav xpl-main-nav--${this.width}`, "aria-label": "Sidebar" },
20
+ h("nav", null,
21
+ h("header", { "aria-label": "Sidebar Header" },
22
+ h("slot", { name: "logo" }),
23
+ h("slot", { name: "brand-name" })),
24
+ h("div", { class: "xpl-main-nav__main_section" },
25
+ h("slot", { name: "navigation" })),
26
+ h("footer", { class: "xpl-main-nav__footer", "aria-label": "Sidebar Footer" },
27
+ h("slot", { name: "footer" })))));
17
28
  }
18
29
  static get is() { return "xpl-main-nav"; }
19
- static get properties() {
20
- return {
21
- "width": {
22
- "type": "string",
23
- "mutable": false,
24
- "complexType": {
25
- "original": "'default' | 'md' | 'sm'",
26
- "resolved": "\"default\" | \"md\" | \"sm\"",
27
- "references": {}
28
- },
29
- "required": false,
30
- "optional": false,
31
- "docs": {
32
- "tags": [{
33
- "name": "property",
34
- "text": "{string} width - The width of the Main Nav."
35
- }],
36
- "text": ""
37
- },
38
- "attribute": "width",
39
- "reflect": false,
40
- "defaultValue": "'default'"
30
+ static get properties() { return {
31
+ "width": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "'default' | 'md' | 'sm'",
36
+ "resolved": "\"default\" | \"md\" | \"sm\"",
37
+ "references": {}
38
+ },
39
+ "required": false,
40
+ "optional": false,
41
+ "docs": {
42
+ "tags": [{
43
+ "text": "{string} width - The width of the Main Nav.",
44
+ "name": "property"
45
+ }],
46
+ "text": ""
47
+ },
48
+ "attribute": "width",
49
+ "reflect": false,
50
+ "defaultValue": "'default'"
51
+ }
52
+ }; }
53
+ static get events() { return [{
54
+ "method": "navWidth",
55
+ "name": "navWidth",
56
+ "bubbles": true,
57
+ "cancelable": true,
58
+ "composed": true,
59
+ "docs": {
60
+ "tags": [{
61
+ "text": "{string} navWidth - Emits the `nav-width` prop set by the user\nwhen the component is attached to the DOM and when the component is updated.",
62
+ "name": "event"
63
+ }],
64
+ "text": ""
65
+ },
66
+ "complexType": {
67
+ "original": "string",
68
+ "resolved": "string",
69
+ "references": {}
41
70
  }
42
- };
43
- }
44
- static get events() {
45
- return [{
46
- "method": "navWidth",
47
- "name": "navWidth",
48
- "bubbles": true,
49
- "cancelable": true,
50
- "composed": true,
51
- "docs": {
52
- "tags": [{
53
- "name": "event",
54
- "text": "{string} navWidth - Emits the `nav-width` prop set by the user\nwhen the component is attached to the DOM and when the component is updated."
55
- }],
56
- "text": ""
57
- },
58
- "complexType": {
59
- "original": "string",
60
- "resolved": "string",
61
- "references": {}
62
- }
63
- }];
64
- }
71
+ }]; }
65
72
  }
66
- //# sourceMappingURL=xpl-main-nav.js.map
@@ -1,6 +1,9 @@
1
- import { Host, h } from '@stencil/core';
1
+ import { Component, Event, Host, h, Prop } from '@stencil/core';
2
2
  export class XplNavItem {
3
3
  constructor() {
4
+ /**
5
+ * @property {boolean} - Whether or not the item should control the main nav state on click
6
+ */
4
7
  this.navControl = false;
5
8
  }
6
9
  onNavToggle() {
@@ -13,54 +16,52 @@ export class XplNavItem {
13
16
  if (this.navControl) {
14
17
  this.onNavToggle();
15
18
  }
16
- } }, h("slot", { name: "link" }, h("slot", { name: "icon" }), h("slot", null))));
19
+ } },
20
+ h("slot", { name: "link" },
21
+ h("slot", { name: "icon" }),
22
+ h("slot", null))));
17
23
  }
18
24
  static get is() { return "xpl-nav-item"; }
19
- static get properties() {
20
- return {
21
- "navControl": {
22
- "type": "boolean",
23
- "mutable": false,
24
- "complexType": {
25
- "original": "boolean",
26
- "resolved": "boolean",
27
- "references": {}
28
- },
29
- "required": false,
30
- "optional": true,
31
- "docs": {
32
- "tags": [{
33
- "name": "property",
34
- "text": "{boolean} - Whether or not the item should control the main nav state on click"
35
- }],
36
- "text": ""
37
- },
38
- "attribute": "nav-control",
39
- "reflect": false,
40
- "defaultValue": "false"
25
+ static get properties() { return {
26
+ "navControl": {
27
+ "type": "boolean",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "boolean",
31
+ "resolved": "boolean",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": true,
36
+ "docs": {
37
+ "tags": [{
38
+ "text": "{boolean} - Whether or not the item should control the main nav state on click",
39
+ "name": "property"
40
+ }],
41
+ "text": ""
42
+ },
43
+ "attribute": "nav-control",
44
+ "reflect": false,
45
+ "defaultValue": "false"
46
+ }
47
+ }; }
48
+ static get events() { return [{
49
+ "method": "navOpen",
50
+ "name": "navOpen",
51
+ "bubbles": true,
52
+ "cancelable": true,
53
+ "composed": true,
54
+ "docs": {
55
+ "tags": [{
56
+ "text": "{boolean} - Emits the desired state of the navigation bar (open: true/false)",
57
+ "name": "event"
58
+ }],
59
+ "text": ""
60
+ },
61
+ "complexType": {
62
+ "original": "boolean",
63
+ "resolved": "boolean",
64
+ "references": {}
41
65
  }
42
- };
43
- }
44
- static get events() {
45
- return [{
46
- "method": "navOpen",
47
- "name": "navOpen",
48
- "bubbles": true,
49
- "cancelable": true,
50
- "composed": true,
51
- "docs": {
52
- "tags": [{
53
- "name": "event",
54
- "text": "{boolean} - Emits the desired state of the navigation bar (open: true/false)"
55
- }],
56
- "text": ""
57
- },
58
- "complexType": {
59
- "original": "boolean",
60
- "resolved": "boolean",
61
- "references": {}
62
- }
63
- }];
64
- }
66
+ }]; }
65
67
  }
66
- //# sourceMappingURL=xpl-nav-item.js.map
@@ -1,6 +1,7 @@
1
- import { Host, h, } from '@stencil/core';
1
+ import { Component, Host, h, Event, Prop, State, Method, } from '@stencil/core';
2
2
  export class XplPagination {
3
3
  constructor() {
4
+ this.current = 1;
4
5
  /**
5
6
  * Private `_goto` method respects the `waitForCallback` prop --
6
7
  * it will always emit the `page` event, but won't actually update
@@ -22,10 +23,6 @@ export class XplPagination {
22
23
  if (this.current < numPages)
23
24
  this._goto(this.current + 1);
24
25
  };
25
- this.total = undefined;
26
- this.perPage = undefined;
27
- this.waitForCallback = undefined;
28
- this.current = 1;
29
26
  }
30
27
  /**
31
28
  * Calling `goto` with a page number (which should probably be
@@ -57,123 +54,137 @@ export class XplPagination {
57
54
  }
58
55
  const showingFirst = (this.current - 1) * this.perPage + 1;
59
56
  const showingLast = Math.min(showingFirst + this.perPage - 1, this.total);
60
- return (h(Host, null, h("div", { class: "xpl-pagination" }, h("div", null, h("p", null, "Showing ", h("span", null, showingFirst), " to", ' ', h("span", null, showingLast), " of", ' ', h("span", null, this.total), " results")), h("div", null, h("nav", { "aria-label": "Pagination" }, h("button", { onClick: this.goPrev, class: "xpl-pagination-prev" }, h("span", null, "Previous"), h("svg", { viewBox: "0 0 20 20", "aria-hidden": "true" }, h("path", { "fill-rule": "evenodd", 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", "clip-rule": "evenodd" }))), showing.map((n) => {
61
- if (n === '...') {
62
- return (h("span", { class: "xpl-pagination-ellipsis" }, "..."));
63
- }
64
- if (n === this.current) {
65
- return (h("button", { "aria-current": "page", class: "xpl-pagination-current" }, n));
66
- }
67
- return (h("button", { onClick: () => this._goto(n) }, n));
68
- }), h("button", { onClick: this.goNext, class: "xpl-pagination-next" }, h("span", null, "Next"), h("svg", { viewBox: "0 0 20 20", "aria-hidden": "true" }, h("path", { "fill-rule": "evenodd", 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", "clip-rule": "evenodd" }))))))));
57
+ return (h(Host, null,
58
+ h("div", { class: "xpl-pagination" },
59
+ h("div", null,
60
+ h("p", null,
61
+ "Showing ",
62
+ h("span", null, showingFirst),
63
+ " to",
64
+ ' ',
65
+ h("span", null, showingLast),
66
+ " of",
67
+ ' ',
68
+ h("span", null, this.total),
69
+ " results")),
70
+ h("div", null,
71
+ h("nav", { "aria-label": "Pagination" },
72
+ h("button", { onClick: this.goPrev, class: "xpl-pagination-prev" },
73
+ h("span", null, "Previous"),
74
+ h("svg", { viewBox: "0 0 20 20", "aria-hidden": "true" },
75
+ h("path", { "fill-rule": "evenodd", 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", "clip-rule": "evenodd" }))),
76
+ showing.map((n) => {
77
+ if (n === '...') {
78
+ return (h("span", { class: "xpl-pagination-ellipsis" }, "..."));
79
+ }
80
+ if (n === this.current) {
81
+ return (h("button", { "aria-current": "page", class: "xpl-pagination-current" }, n));
82
+ }
83
+ return (h("button", { onClick: () => this._goto(n) }, n));
84
+ }),
85
+ h("button", { onClick: this.goNext, class: "xpl-pagination-next" },
86
+ h("span", null, "Next"),
87
+ h("svg", { viewBox: "0 0 20 20", "aria-hidden": "true" },
88
+ h("path", { "fill-rule": "evenodd", 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", "clip-rule": "evenodd" }))))))));
69
89
  }
70
90
  static get is() { return "xpl-pagination"; }
71
- static get properties() {
72
- return {
73
- "total": {
74
- "type": "number",
75
- "mutable": false,
76
- "complexType": {
77
- "original": "number",
78
- "resolved": "number",
79
- "references": {}
80
- },
81
- "required": false,
82
- "optional": false,
83
- "docs": {
84
- "tags": [],
85
- "text": ""
86
- },
87
- "attribute": "total",
88
- "reflect": false
91
+ static get properties() { return {
92
+ "total": {
93
+ "type": "number",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "number",
97
+ "resolved": "number",
98
+ "references": {}
89
99
  },
90
- "perPage": {
91
- "type": "number",
92
- "mutable": false,
93
- "complexType": {
94
- "original": "number",
95
- "resolved": "number",
96
- "references": {}
97
- },
98
- "required": false,
99
- "optional": false,
100
- "docs": {
101
- "tags": [],
102
- "text": ""
103
- },
104
- "attribute": "per-page",
105
- "reflect": false
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": ""
106
105
  },
107
- "waitForCallback": {
108
- "type": "boolean",
109
- "mutable": false,
110
- "complexType": {
111
- "original": "boolean",
112
- "resolved": "boolean",
113
- "references": {}
114
- },
115
- "required": false,
116
- "optional": false,
117
- "docs": {
118
- "tags": [],
119
- "text": ""
120
- },
121
- "attribute": "wait-for-callback",
122
- "reflect": false
106
+ "attribute": "total",
107
+ "reflect": false
108
+ },
109
+ "perPage": {
110
+ "type": "number",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "number",
114
+ "resolved": "number",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": ""
122
+ },
123
+ "attribute": "per-page",
124
+ "reflect": false
125
+ },
126
+ "waitForCallback": {
127
+ "type": "boolean",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "boolean",
131
+ "resolved": "boolean",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": ""
139
+ },
140
+ "attribute": "wait-for-callback",
141
+ "reflect": false
142
+ }
143
+ }; }
144
+ static get states() { return {
145
+ "current": {}
146
+ }; }
147
+ static get events() { return [{
148
+ "method": "page",
149
+ "name": "page",
150
+ "bubbles": true,
151
+ "cancelable": true,
152
+ "composed": true,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": ""
156
+ },
157
+ "complexType": {
158
+ "original": "any",
159
+ "resolved": "any",
160
+ "references": {}
123
161
  }
124
- };
125
- }
126
- static get states() {
127
- return {
128
- "current": {}
129
- };
130
- }
131
- static get events() {
132
- return [{
133
- "method": "page",
134
- "name": "page",
135
- "bubbles": true,
136
- "cancelable": true,
137
- "composed": true,
138
- "docs": {
139
- "tags": [],
140
- "text": ""
162
+ }]; }
163
+ static get methods() { return {
164
+ "goto": {
165
+ "complexType": {
166
+ "signature": "(n: number) => Promise<void>",
167
+ "parameters": [{
168
+ "tags": [{
169
+ "text": "n",
170
+ "name": "param"
171
+ }],
172
+ "text": ""
173
+ }],
174
+ "references": {
175
+ "Promise": {
176
+ "location": "global"
177
+ }
141
178
  },
142
- "complexType": {
143
- "original": "any",
144
- "resolved": "any",
145
- "references": {}
146
- }
147
- }];
148
- }
149
- static get methods() {
150
- return {
151
- "goto": {
152
- "complexType": {
153
- "signature": "(n: number) => Promise<void>",
154
- "parameters": [{
155
- "tags": [{
156
- "name": "param",
157
- "text": "n"
158
- }],
159
- "text": ""
160
- }],
161
- "references": {
162
- "Promise": {
163
- "location": "global"
164
- }
165
- },
166
- "return": "Promise<void>"
167
- },
168
- "docs": {
169
- "text": "Calling `goto` with a page number (which should probably be\ntaken from the `page` event) updates the pagination's state\nand re-renders it, showing the appropriate buttons given the current page.",
170
- "tags": [{
171
- "name": "param",
172
- "text": "n"
173
- }]
174
- }
179
+ "return": "Promise<void>"
180
+ },
181
+ "docs": {
182
+ "text": "Calling `goto` with a page number (which should probably be\ntaken from the `page` event) updates the pagination's state\nand re-renders it, showing the appropriate buttons given the current page.",
183
+ "tags": [{
184
+ "name": "param",
185
+ "text": "n"
186
+ }]
175
187
  }
176
- };
177
- }
188
+ }
189
+ }; }
178
190
  }
179
- //# sourceMappingURL=xpl-pagination.js.map