@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,712 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$6 } from './xpl-dropdown2.js';
3
- import { d as defineCustomElement$5 } from './xpl-dropdown-group2.js';
4
- import { d as defineCustomElement$4 } from './xpl-dropdown-heading2.js';
5
- import { d as defineCustomElement$3 } from './xpl-dropdown-option2.js';
6
- import { d as defineCustomElement$2 } from './xpl-tag2.js';
7
- import { v as v4 } from './v4.js';
8
-
9
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
-
11
- /**
12
- * lodash (Custom Build) <https://lodash.com/>
13
- * Build: `lodash modularize exports="npm" -o ./`
14
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
15
- * Released under MIT license <https://lodash.com/license>
16
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
17
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
18
- */
19
-
20
- /** Used as the `TypeError` message for "Functions" methods. */
21
- var FUNC_ERROR_TEXT = 'Expected a function';
22
-
23
- /** Used as references for various `Number` constants. */
24
- var NAN = 0 / 0;
25
-
26
- /** `Object#toString` result references. */
27
- var symbolTag = '[object Symbol]';
28
-
29
- /** Used to match leading and trailing whitespace. */
30
- var reTrim = /^\s+|\s+$/g;
31
-
32
- /** Used to detect bad signed hexadecimal string values. */
33
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
34
-
35
- /** Used to detect binary string values. */
36
- var reIsBinary = /^0b[01]+$/i;
37
-
38
- /** Used to detect octal string values. */
39
- var reIsOctal = /^0o[0-7]+$/i;
40
-
41
- /** Built-in method references without a dependency on `root`. */
42
- var freeParseInt = parseInt;
43
-
44
- /** Detect free variable `global` from Node.js. */
45
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
46
-
47
- /** Detect free variable `self`. */
48
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
49
-
50
- /** Used as a reference to the global object. */
51
- var root = freeGlobal || freeSelf || Function('return this')();
52
-
53
- /** Used for built-in method references. */
54
- var objectProto = Object.prototype;
55
-
56
- /**
57
- * Used to resolve the
58
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
59
- * of values.
60
- */
61
- var objectToString = objectProto.toString;
62
-
63
- /* Built-in method references for those with the same name as other `lodash` methods. */
64
- var nativeMax = Math.max,
65
- nativeMin = Math.min;
66
-
67
- /**
68
- * Gets the timestamp of the number of milliseconds that have elapsed since
69
- * the Unix epoch (1 January 1970 00:00:00 UTC).
70
- *
71
- * @static
72
- * @memberOf _
73
- * @since 2.4.0
74
- * @category Date
75
- * @returns {number} Returns the timestamp.
76
- * @example
77
- *
78
- * _.defer(function(stamp) {
79
- * console.log(_.now() - stamp);
80
- * }, _.now());
81
- * // => Logs the number of milliseconds it took for the deferred invocation.
82
- */
83
- var now = function() {
84
- return root.Date.now();
85
- };
86
-
87
- /**
88
- * Creates a debounced function that delays invoking `func` until after `wait`
89
- * milliseconds have elapsed since the last time the debounced function was
90
- * invoked. The debounced function comes with a `cancel` method to cancel
91
- * delayed `func` invocations and a `flush` method to immediately invoke them.
92
- * Provide `options` to indicate whether `func` should be invoked on the
93
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
94
- * with the last arguments provided to the debounced function. Subsequent
95
- * calls to the debounced function return the result of the last `func`
96
- * invocation.
97
- *
98
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
99
- * invoked on the trailing edge of the timeout only if the debounced function
100
- * is invoked more than once during the `wait` timeout.
101
- *
102
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
103
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
104
- *
105
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
106
- * for details over the differences between `_.debounce` and `_.throttle`.
107
- *
108
- * @static
109
- * @memberOf _
110
- * @since 0.1.0
111
- * @category Function
112
- * @param {Function} func The function to debounce.
113
- * @param {number} [wait=0] The number of milliseconds to delay.
114
- * @param {Object} [options={}] The options object.
115
- * @param {boolean} [options.leading=false]
116
- * Specify invoking on the leading edge of the timeout.
117
- * @param {number} [options.maxWait]
118
- * The maximum time `func` is allowed to be delayed before it's invoked.
119
- * @param {boolean} [options.trailing=true]
120
- * Specify invoking on the trailing edge of the timeout.
121
- * @returns {Function} Returns the new debounced function.
122
- * @example
123
- *
124
- * // Avoid costly calculations while the window size is in flux.
125
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
126
- *
127
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
128
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
129
- * 'leading': true,
130
- * 'trailing': false
131
- * }));
132
- *
133
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
134
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
135
- * var source = new EventSource('/stream');
136
- * jQuery(source).on('message', debounced);
137
- *
138
- * // Cancel the trailing debounced invocation.
139
- * jQuery(window).on('popstate', debounced.cancel);
140
- */
141
- function debounce(func, wait, options) {
142
- var lastArgs,
143
- lastThis,
144
- maxWait,
145
- result,
146
- timerId,
147
- lastCallTime,
148
- lastInvokeTime = 0,
149
- leading = false,
150
- maxing = false,
151
- trailing = true;
152
-
153
- if (typeof func != 'function') {
154
- throw new TypeError(FUNC_ERROR_TEXT);
155
- }
156
- wait = toNumber(wait) || 0;
157
- if (isObject(options)) {
158
- leading = !!options.leading;
159
- maxing = 'maxWait' in options;
160
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
161
- trailing = 'trailing' in options ? !!options.trailing : trailing;
162
- }
163
-
164
- function invokeFunc(time) {
165
- var args = lastArgs,
166
- thisArg = lastThis;
167
-
168
- lastArgs = lastThis = undefined;
169
- lastInvokeTime = time;
170
- result = func.apply(thisArg, args);
171
- return result;
172
- }
173
-
174
- function leadingEdge(time) {
175
- // Reset any `maxWait` timer.
176
- lastInvokeTime = time;
177
- // Start the timer for the trailing edge.
178
- timerId = setTimeout(timerExpired, wait);
179
- // Invoke the leading edge.
180
- return leading ? invokeFunc(time) : result;
181
- }
182
-
183
- function remainingWait(time) {
184
- var timeSinceLastCall = time - lastCallTime,
185
- timeSinceLastInvoke = time - lastInvokeTime,
186
- result = wait - timeSinceLastCall;
187
-
188
- return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
189
- }
190
-
191
- function shouldInvoke(time) {
192
- var timeSinceLastCall = time - lastCallTime,
193
- timeSinceLastInvoke = time - lastInvokeTime;
194
-
195
- // Either this is the first call, activity has stopped and we're at the
196
- // trailing edge, the system time has gone backwards and we're treating
197
- // it as the trailing edge, or we've hit the `maxWait` limit.
198
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
199
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
200
- }
201
-
202
- function timerExpired() {
203
- var time = now();
204
- if (shouldInvoke(time)) {
205
- return trailingEdge(time);
206
- }
207
- // Restart the timer.
208
- timerId = setTimeout(timerExpired, remainingWait(time));
209
- }
210
-
211
- function trailingEdge(time) {
212
- timerId = undefined;
213
-
214
- // Only invoke if we have `lastArgs` which means `func` has been
215
- // debounced at least once.
216
- if (trailing && lastArgs) {
217
- return invokeFunc(time);
218
- }
219
- lastArgs = lastThis = undefined;
220
- return result;
221
- }
222
-
223
- function cancel() {
224
- if (timerId !== undefined) {
225
- clearTimeout(timerId);
226
- }
227
- lastInvokeTime = 0;
228
- lastArgs = lastCallTime = lastThis = timerId = undefined;
229
- }
230
-
231
- function flush() {
232
- return timerId === undefined ? result : trailingEdge(now());
233
- }
234
-
235
- function debounced() {
236
- var time = now(),
237
- isInvoking = shouldInvoke(time);
238
-
239
- lastArgs = arguments;
240
- lastThis = this;
241
- lastCallTime = time;
242
-
243
- if (isInvoking) {
244
- if (timerId === undefined) {
245
- return leadingEdge(lastCallTime);
246
- }
247
- if (maxing) {
248
- // Handle invocations in a tight loop.
249
- timerId = setTimeout(timerExpired, wait);
250
- return invokeFunc(lastCallTime);
251
- }
252
- }
253
- if (timerId === undefined) {
254
- timerId = setTimeout(timerExpired, wait);
255
- }
256
- return result;
257
- }
258
- debounced.cancel = cancel;
259
- debounced.flush = flush;
260
- return debounced;
261
- }
262
-
263
- /**
264
- * Creates a throttled function that only invokes `func` at most once per
265
- * every `wait` milliseconds. The throttled function comes with a `cancel`
266
- * method to cancel delayed `func` invocations and a `flush` method to
267
- * immediately invoke them. Provide `options` to indicate whether `func`
268
- * should be invoked on the leading and/or trailing edge of the `wait`
269
- * timeout. The `func` is invoked with the last arguments provided to the
270
- * throttled function. Subsequent calls to the throttled function return the
271
- * result of the last `func` invocation.
272
- *
273
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
274
- * invoked on the trailing edge of the timeout only if the throttled function
275
- * is invoked more than once during the `wait` timeout.
276
- *
277
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
278
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
279
- *
280
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
281
- * for details over the differences between `_.throttle` and `_.debounce`.
282
- *
283
- * @static
284
- * @memberOf _
285
- * @since 0.1.0
286
- * @category Function
287
- * @param {Function} func The function to throttle.
288
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
289
- * @param {Object} [options={}] The options object.
290
- * @param {boolean} [options.leading=true]
291
- * Specify invoking on the leading edge of the timeout.
292
- * @param {boolean} [options.trailing=true]
293
- * Specify invoking on the trailing edge of the timeout.
294
- * @returns {Function} Returns the new throttled function.
295
- * @example
296
- *
297
- * // Avoid excessively updating the position while scrolling.
298
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
299
- *
300
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
301
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
302
- * jQuery(element).on('click', throttled);
303
- *
304
- * // Cancel the trailing throttled invocation.
305
- * jQuery(window).on('popstate', throttled.cancel);
306
- */
307
- function throttle(func, wait, options) {
308
- var leading = true,
309
- trailing = true;
310
-
311
- if (typeof func != 'function') {
312
- throw new TypeError(FUNC_ERROR_TEXT);
313
- }
314
- if (isObject(options)) {
315
- leading = 'leading' in options ? !!options.leading : leading;
316
- trailing = 'trailing' in options ? !!options.trailing : trailing;
317
- }
318
- return debounce(func, wait, {
319
- 'leading': leading,
320
- 'maxWait': wait,
321
- 'trailing': trailing
322
- });
323
- }
324
-
325
- /**
326
- * Checks if `value` is the
327
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
328
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
329
- *
330
- * @static
331
- * @memberOf _
332
- * @since 0.1.0
333
- * @category Lang
334
- * @param {*} value The value to check.
335
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
336
- * @example
337
- *
338
- * _.isObject({});
339
- * // => true
340
- *
341
- * _.isObject([1, 2, 3]);
342
- * // => true
343
- *
344
- * _.isObject(_.noop);
345
- * // => true
346
- *
347
- * _.isObject(null);
348
- * // => false
349
- */
350
- function isObject(value) {
351
- var type = typeof value;
352
- return !!value && (type == 'object' || type == 'function');
353
- }
354
-
355
- /**
356
- * Checks if `value` is object-like. A value is object-like if it's not `null`
357
- * and has a `typeof` result of "object".
358
- *
359
- * @static
360
- * @memberOf _
361
- * @since 4.0.0
362
- * @category Lang
363
- * @param {*} value The value to check.
364
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
365
- * @example
366
- *
367
- * _.isObjectLike({});
368
- * // => true
369
- *
370
- * _.isObjectLike([1, 2, 3]);
371
- * // => true
372
- *
373
- * _.isObjectLike(_.noop);
374
- * // => false
375
- *
376
- * _.isObjectLike(null);
377
- * // => false
378
- */
379
- function isObjectLike(value) {
380
- return !!value && typeof value == 'object';
381
- }
382
-
383
- /**
384
- * Checks if `value` is classified as a `Symbol` primitive or object.
385
- *
386
- * @static
387
- * @memberOf _
388
- * @since 4.0.0
389
- * @category Lang
390
- * @param {*} value The value to check.
391
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
392
- * @example
393
- *
394
- * _.isSymbol(Symbol.iterator);
395
- * // => true
396
- *
397
- * _.isSymbol('abc');
398
- * // => false
399
- */
400
- function isSymbol(value) {
401
- return typeof value == 'symbol' ||
402
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
403
- }
404
-
405
- /**
406
- * Converts `value` to a number.
407
- *
408
- * @static
409
- * @memberOf _
410
- * @since 4.0.0
411
- * @category Lang
412
- * @param {*} value The value to process.
413
- * @returns {number} Returns the number.
414
- * @example
415
- *
416
- * _.toNumber(3.2);
417
- * // => 3.2
418
- *
419
- * _.toNumber(Number.MIN_VALUE);
420
- * // => 5e-324
421
- *
422
- * _.toNumber(Infinity);
423
- * // => Infinity
424
- *
425
- * _.toNumber('3.2');
426
- * // => 3.2
427
- */
428
- function toNumber(value) {
429
- if (typeof value == 'number') {
430
- return value;
431
- }
432
- if (isSymbol(value)) {
433
- return NAN;
434
- }
435
- if (isObject(value)) {
436
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
437
- value = isObject(other) ? (other + '') : other;
438
- }
439
- if (typeof value != 'string') {
440
- return value === 0 ? value : +value;
441
- }
442
- value = value.replace(reTrim, '');
443
- var isBinary = reIsBinary.test(value);
444
- return (isBinary || reIsOctal.test(value))
445
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
446
- : (reIsBadHex.test(value) ? NAN : +value);
447
- }
448
-
449
- var lodash_throttle = throttle;
450
-
451
- function tagWidth(text) {
452
- const context = document.createElement('canvas').getContext('2d');
453
- context.font =
454
- "14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif";
455
- return context.measureText(text).width + 44; // = text + l/r padding + margin-right
456
- }
457
- const XplSelect$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
458
- constructor() {
459
- super();
460
- this.__registerHost();
461
- this.selectChange = createEvent(this, "selectChange", 7);
462
- this.choices = [];
463
- this.description = undefined;
464
- this.disabled = undefined;
465
- this.error = undefined;
466
- this.label = undefined;
467
- this.mode = 'single';
468
- this.name = undefined;
469
- this.placeholder = undefined;
470
- this.truncate = true;
471
- this.selectedValues = undefined;
472
- this.active = false;
473
- this.id = v4();
474
- this.keepFocus = false;
475
- this.selected = undefined;
476
- this.value = '';
477
- this.displayValue = '';
478
- this.visibleChoices = Infinity;
479
- }
480
- /**
481
- *
482
- * @param _choices
483
- */
484
- onChoicesChanged(_choices) {
485
- this.update();
486
- }
487
- componentWillLoad() {
488
- this.selected =
489
- this.choices && this.choices.length > 0
490
- ? this.choices.map(() => false)
491
- : [];
492
- if (this.selectedValues) {
493
- const isSingleMode = this.mode === 'single';
494
- if (isSingleMode) {
495
- const selectedValue = this.selectedValues;
496
- const shouldBeSelected = this.choices.find((choice) => (choice.value !== undefined
497
- ? choice.value
498
- : choice.label) === selectedValue);
499
- if (shouldBeSelected !== undefined)
500
- shouldBeSelected.isSelected = true;
501
- }
502
- else {
503
- this.choices.forEach(({ options }) => {
504
- options.forEach((option) => {
505
- const shouldBeSelected = this.selectedValues.includes(option.value || option.label);
506
- if (shouldBeSelected)
507
- option.isSelected = true;
508
- });
509
- });
510
- }
511
- this.update();
512
- }
513
- window.addEventListener('click', (e) => {
514
- const el = e.target;
515
- const select = el.closest('.xpl-select');
516
- if (select === null || select !== this.container) {
517
- this.active = false;
518
- }
519
- });
520
- window.addEventListener('resize', lodash_throttle(() => {
521
- this.maybeTruncateChoices();
522
- }, 250));
523
- }
524
- componentDidLoad() {
525
- this.dropdown = this.container.querySelector('xpl-dropdown');
526
- }
527
- maybeTruncateChoices() {
528
- if (this.mode === 'single' || !this.truncate)
529
- return;
530
- const containerWidth = this.container.getBoundingClientRect().width;
531
- let visibleChoices = 0;
532
- let visibleChoicesWidth = 0;
533
- const actualNumSelected = this.selected.filter((a) => a).length;
534
- for (let i = 0; i < actualNumSelected; i++) {
535
- visibleChoicesWidth += tagWidth(this.getDisplayValue(i));
536
- if (visibleChoicesWidth > containerWidth - 140)
537
- break;
538
- visibleChoices++;
539
- }
540
- if (visibleChoices >= actualNumSelected)
541
- visibleChoices = Infinity;
542
- if (visibleChoices < 1)
543
- visibleChoices = 1;
544
- this.visibleChoices = visibleChoices;
545
- }
546
- flattenChoices() {
547
- return this.choices.reduce((acc, curr) => [
548
- ...acc,
549
- ...(curr.groupName ? curr.options : [curr]),
550
- ], []);
551
- }
552
- getDisplayValue(i) {
553
- return this.flattenChoices()[i].label || this.flattenChoices()[i].value;
554
- }
555
- getActualValue(i) {
556
- return this.flattenChoices()[i].value || this.flattenChoices()[i].label;
557
- }
558
- update() {
559
- this.selected = this.flattenChoices().map(({ isSelected }) => isSelected);
560
- if (this.mode === 'single') {
561
- const selected = this.selected.findIndex((v) => v);
562
- this.value = selected >= 0 ? this.getActualValue(selected) : '';
563
- this.displayValue =
564
- selected >= 0 ? this.getDisplayValue(selected) : '';
565
- }
566
- else if (this.mode === 'multi') {
567
- this.value = this.selected
568
- .map((v, i) => {
569
- return v ? this.getActualValue(i) : '';
570
- })
571
- .filter((v) => v.length > 0)
572
- .join('|');
573
- }
574
- }
575
- handleValueStateChange(newValue) {
576
- this.selectChange.emit(newValue);
577
- }
578
- render() {
579
- let visibleChoices = 0;
580
- return (h(Host, { class: {
581
- 'xpl-select': true,
582
- 'xpl-select--disabled': this.disabled,
583
- 'xpl-select--no-truncate': !this.truncate,
584
- }, onKeyDown: (e) => {
585
- if (e.key === 'Escape')
586
- this.active = false;
587
- }, ref: (el) => (this.container = el) }, this.label || this.description ? (h("label", { class: {
588
- 'xpl-label': true,
589
- 'xpl-label--disabled': this.disabled,
590
- }, htmlFor: this.id }, this.label, this.description && (h("small", { class: {
591
- 'xpl-description': true,
592
- 'xpl-description--disabled': this.disabled,
593
- } }, this.description)))) : null, h("div", { class: {
594
- 'xpl-input': true,
595
- 'xpl-input--disabled': this.disabled,
596
- 'xpl-input--error': this.error !== undefined,
597
- } }, h("div", { class: "xpl-input-wrapper" }, h("div", { class: {
598
- 'xpl-select-value': true,
599
- 'xpl-select-value--active': this.mode === 'multi' &&
600
- this.value.length > 0,
601
- 'has-value': this.value.length > 0,
602
- } }, this.mode === 'single'
603
- ? this.displayValue || this.placeholder
604
- : this.value.length > 0
605
- ? this.selected.map((v, i) => {
606
- if (!v)
607
- return null;
608
- if (visibleChoices >= this.visibleChoices) {
609
- return null;
610
- }
611
- visibleChoices++;
612
- return (h("xpl-tag", { onClose: () => {
613
- this.flattenChoices().forEach((v, j) => {
614
- if (i === j)
615
- v.isSelected =
616
- false;
617
- });
618
- const mapOptions = (option) => {
619
- option.options =
620
- option.groupName
621
- ? option.options.map(mapOptions)
622
- : undefined;
623
- return option;
624
- };
625
- this.choices =
626
- this.choices.map(mapOptions);
627
- this.update();
628
- this.maybeTruncateChoices();
629
- } }, this.getDisplayValue(i)));
630
- })
631
- : this.placeholder, this.visibleChoices < Infinity &&
632
- `+ ${this.selected.filter((a) => a).length -
633
- this.visibleChoices} more`), h("button", { disabled: this.disabled, id: this.id, onKeyDown: (e) => {
634
- if (e.key === 'Tab')
635
- this.keepFocus = true;
636
- }, onClick: () => {
637
- const { dropdown } = this;
638
- if (!this.disabled)
639
- dropdown.isOpen = !dropdown.isOpen;
640
- }, type: "button" })), !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
641
- this.update();
642
- this.maybeTruncateChoices();
643
- } })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })), this.error))), h("input", { type: "hidden", name: this.name, value: this.value })));
644
- }
645
- static get watchers() { return {
646
- "choices": ["onChoicesChanged"],
647
- "value": ["handleValueStateChange"]
648
- }; }
649
- }, [0, "xpl-select", {
650
- "choices": [16],
651
- "description": [1],
652
- "disabled": [4],
653
- "error": [1],
654
- "label": [1],
655
- "mode": [1],
656
- "name": [1],
657
- "placeholder": [1],
658
- "truncate": [4],
659
- "selectedValues": [1, "selected-values"],
660
- "active": [32],
661
- "id": [32],
662
- "keepFocus": [32],
663
- "selected": [32],
664
- "value": [32],
665
- "displayValue": [32],
666
- "visibleChoices": [32]
667
- }]);
668
- function defineCustomElement$1() {
669
- if (typeof customElements === "undefined") {
670
- return;
671
- }
672
- const components = ["xpl-select", "xpl-dropdown", "xpl-dropdown-group", "xpl-dropdown-heading", "xpl-dropdown-option", "xpl-tag"];
673
- components.forEach(tagName => { switch (tagName) {
674
- case "xpl-select":
675
- if (!customElements.get(tagName)) {
676
- customElements.define(tagName, XplSelect$1);
677
- }
678
- break;
679
- case "xpl-dropdown":
680
- if (!customElements.get(tagName)) {
681
- defineCustomElement$6();
682
- }
683
- break;
684
- case "xpl-dropdown-group":
685
- if (!customElements.get(tagName)) {
686
- defineCustomElement$5();
687
- }
688
- break;
689
- case "xpl-dropdown-heading":
690
- if (!customElements.get(tagName)) {
691
- defineCustomElement$4();
692
- }
693
- break;
694
- case "xpl-dropdown-option":
695
- if (!customElements.get(tagName)) {
696
- defineCustomElement$3();
697
- }
698
- break;
699
- case "xpl-tag":
700
- if (!customElements.get(tagName)) {
701
- defineCustomElement$2();
702
- }
703
- break;
704
- } });
705
- }
706
-
707
- const XplSelect = XplSelect$1;
708
- const defineCustomElement = defineCustomElement$1;
709
-
710
- export { XplSelect, defineCustomElement };
711
-
712
- //# sourceMappingURL=xpl-select.js.map