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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (571) hide show
  1. package/dist/apollo-core/apollo-core.css +5841 -9
  2. package/dist/apollo-core/apollo-core.esm.js +163 -1
  3. package/dist/apollo-core/apollo-core.esm.js.map +1 -0
  4. package/dist/apollo-core/app-globals-0f993ce5.js +5 -0
  5. package/dist/apollo-core/app-globals-0f993ce5.js.map +1 -0
  6. package/dist/apollo-core/css-shim-6210ce77.js +6 -0
  7. package/dist/apollo-core/css-shim-6210ce77.js.map +1 -0
  8. package/dist/apollo-core/dom-423bdd70.js +75 -0
  9. package/dist/apollo-core/dom-423bdd70.js.map +1 -0
  10. package/dist/apollo-core/index-307c7018.js +3397 -0
  11. package/dist/apollo-core/index-307c7018.js.map +1 -0
  12. package/dist/apollo-core/index-912d1a21.js +586 -0
  13. package/dist/apollo-core/index-912d1a21.js.map +1 -0
  14. package/dist/apollo-core/index.esm.js +3 -0
  15. package/dist/apollo-core/index.esm.js.map +1 -0
  16. package/dist/apollo-core/p-08abab41.entry.js +2 -0
  17. package/dist/apollo-core/p-08abab41.entry.js.map +1 -0
  18. package/dist/apollo-core/p-16654189.entry.js +2 -0
  19. package/dist/apollo-core/p-16654189.entry.js.map +1 -0
  20. package/dist/apollo-core/p-2f90296c.js +3 -3
  21. package/dist/apollo-core/p-2f90296c.js.map +1 -0
  22. package/dist/apollo-core/p-315920cd.entry.js +2 -0
  23. package/dist/apollo-core/p-315920cd.entry.js.map +1 -0
  24. package/dist/apollo-core/p-3c934536.entry.js +2 -0
  25. package/dist/apollo-core/p-3c934536.entry.js.map +1 -0
  26. package/dist/apollo-core/p-47a55fa9.entry.js +2 -0
  27. package/dist/apollo-core/p-47a55fa9.entry.js.map +1 -0
  28. package/dist/apollo-core/p-485d0c40.entry.js +2 -0
  29. package/dist/apollo-core/p-485d0c40.entry.js.map +1 -0
  30. package/dist/apollo-core/p-5a038a8e.entry.js +2 -0
  31. package/dist/apollo-core/p-5a038a8e.entry.js.map +1 -0
  32. package/dist/apollo-core/p-88135928.entry.js +2 -0
  33. package/dist/apollo-core/p-88135928.entry.js.map +1 -0
  34. package/dist/apollo-core/p-91d6572c.entry.js +2 -0
  35. package/dist/apollo-core/p-91d6572c.entry.js.map +1 -0
  36. package/dist/apollo-core/p-ad90fe4d.js +2 -1
  37. package/dist/apollo-core/p-ad90fe4d.js.map +1 -0
  38. package/dist/apollo-core/p-ae99c266.entry.js +2 -0
  39. package/dist/apollo-core/p-ae99c266.entry.js.map +1 -0
  40. package/dist/apollo-core/p-aeef61dd.entry.js +2 -0
  41. package/dist/apollo-core/p-aeef61dd.entry.js.map +1 -0
  42. package/dist/apollo-core/p-c1b28f32.entry.js +2 -0
  43. package/dist/apollo-core/p-c1b28f32.entry.js.map +1 -0
  44. package/dist/apollo-core/p-ce6cb219.entry.js +2 -0
  45. package/dist/apollo-core/p-ce6cb219.entry.js.map +1 -0
  46. package/dist/apollo-core/p-cf2e6132.js +3 -0
  47. package/dist/apollo-core/p-cf2e6132.js.map +1 -0
  48. package/dist/apollo-core/p-e9cd309e.entry.js +2 -0
  49. package/dist/apollo-core/p-e9cd309e.entry.js.map +1 -0
  50. package/dist/apollo-core/p-f5561238.entry.js +2 -0
  51. package/dist/apollo-core/p-f5561238.entry.js.map +1 -0
  52. package/dist/apollo-core/p-ff46d20f.entry.js +2 -0
  53. package/dist/apollo-core/p-ff46d20f.entry.js.map +1 -0
  54. package/dist/{custom-elements/index.js → apollo-core/regular-133c23b5.js} +13 -4197
  55. package/dist/apollo-core/regular-133c23b5.js.map +1 -0
  56. package/dist/apollo-core/shadow-css-f0279020.js +389 -0
  57. package/dist/apollo-core/shadow-css-f0279020.js.map +1 -0
  58. package/dist/apollo-core/xpl-application-shell.entry.js +51 -0
  59. package/dist/apollo-core/xpl-application-shell.entry.js.map +1 -0
  60. package/dist/apollo-core/xpl-avatar.entry.js +28 -0
  61. package/dist/apollo-core/xpl-avatar.entry.js.map +1 -0
  62. package/dist/apollo-core/xpl-backdrop.entry.js +19 -0
  63. package/dist/apollo-core/xpl-backdrop.entry.js.map +1 -0
  64. package/dist/apollo-core/xpl-badge.entry.js +21 -0
  65. package/dist/apollo-core/xpl-badge.entry.js.map +1 -0
  66. package/dist/apollo-core/xpl-breadcrumb-item.entry.js +19 -0
  67. package/dist/apollo-core/xpl-breadcrumb-item.entry.js.map +1 -0
  68. package/dist/apollo-core/xpl-breadcrumbs.entry.js +14 -0
  69. package/dist/apollo-core/xpl-breadcrumbs.entry.js.map +1 -0
  70. package/dist/apollo-core/xpl-button-row.entry.js +23 -0
  71. package/dist/apollo-core/xpl-button-row.entry.js.map +1 -0
  72. package/dist/apollo-core/xpl-button.entry.js +60 -0
  73. package/dist/apollo-core/xpl-button.entry.js.map +1 -0
  74. package/dist/apollo-core/xpl-checkbox.entry.js +35 -0
  75. package/dist/apollo-core/xpl-checkbox.entry.js.map +1 -0
  76. package/dist/apollo-core/xpl-choicelist.entry.js +48 -0
  77. package/dist/apollo-core/xpl-choicelist.entry.js.map +1 -0
  78. package/dist/apollo-core/xpl-content-area.entry.js +15 -0
  79. package/dist/apollo-core/xpl-content-area.entry.js.map +1 -0
  80. package/dist/apollo-core/xpl-divider.entry.js +17 -0
  81. package/dist/apollo-core/xpl-divider.entry.js.map +1 -0
  82. package/dist/apollo-core/xpl-dropdown-group.entry.js +35 -0
  83. package/dist/apollo-core/xpl-dropdown-group.entry.js.map +1 -0
  84. package/dist/apollo-core/xpl-dropdown-heading.entry.js +15 -0
  85. package/dist/apollo-core/xpl-dropdown-heading.entry.js.map +1 -0
  86. package/dist/apollo-core/xpl-dropdown-option.entry.js +70 -0
  87. package/dist/apollo-core/xpl-dropdown-option.entry.js.map +1 -0
  88. package/dist/apollo-core/xpl-dropdown.entry.js +106 -0
  89. package/dist/apollo-core/xpl-dropdown.entry.js.map +1 -0
  90. package/dist/apollo-core/xpl-grid-item.entry.js +23 -0
  91. package/dist/apollo-core/xpl-grid-item.entry.js.map +1 -0
  92. package/dist/apollo-core/xpl-grid.entry.js +33 -0
  93. package/dist/apollo-core/xpl-grid.entry.js.map +1 -0
  94. package/dist/apollo-core/xpl-input.entry.js +2553 -0
  95. package/dist/apollo-core/xpl-input.entry.js.map +1 -0
  96. package/dist/apollo-core/xpl-list.entry.js +37 -0
  97. package/dist/apollo-core/xpl-list.entry.js.map +1 -0
  98. package/dist/apollo-core/xpl-main-nav.entry.js +25 -0
  99. package/dist/apollo-core/xpl-main-nav.entry.js.map +1 -0
  100. package/dist/apollo-core/xpl-nav-item.entry.js +25 -0
  101. package/dist/apollo-core/xpl-nav-item.entry.js.map +1 -0
  102. package/dist/apollo-core/xpl-pagination.entry.js +77 -0
  103. package/dist/apollo-core/xpl-pagination.entry.js.map +1 -0
  104. package/dist/apollo-core/xpl-radio.entry.js +34 -0
  105. package/dist/apollo-core/xpl-radio.entry.js.map +1 -0
  106. package/dist/apollo-core/xpl-secondary-nav.entry.js +14 -0
  107. package/dist/apollo-core/xpl-secondary-nav.entry.js.map +1 -0
  108. package/dist/apollo-core/xpl-select.entry.js +680 -0
  109. package/dist/apollo-core/xpl-select.entry.js.map +1 -0
  110. package/dist/apollo-core/xpl-table.entry.js +109 -0
  111. package/dist/apollo-core/xpl-table.entry.js.map +1 -0
  112. package/dist/apollo-core/xpl-tag.entry.js +19 -0
  113. package/dist/apollo-core/xpl-tag.entry.js.map +1 -0
  114. package/dist/apollo-core/xpl-toggle.entry.js +35 -0
  115. package/dist/apollo-core/xpl-toggle.entry.js.map +1 -0
  116. package/dist/apollo-core/xpl-utility-bar.entry.js +31 -0
  117. package/dist/apollo-core/xpl-utility-bar.entry.js.map +1 -0
  118. package/dist/cjs/apollo-core.cjs.js +154 -5
  119. package/dist/cjs/apollo-core.cjs.js.map +1 -0
  120. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  121. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  122. package/dist/cjs/css-shim-0a6fd78d.js +8 -0
  123. package/dist/cjs/css-shim-0a6fd78d.js.map +1 -0
  124. package/dist/cjs/dom-2c6adc90.js +77 -0
  125. package/dist/cjs/dom-2c6adc90.js.map +1 -0
  126. package/dist/cjs/index-0fdb260e.js +3564 -0
  127. package/dist/cjs/index-0fdb260e.js.map +1 -0
  128. package/dist/cjs/index-318d5fc7.js +588 -0
  129. package/dist/cjs/index-318d5fc7.js.map +1 -0
  130. package/dist/cjs/{index-acf3dd7a.js → index-e53b018b.js} +675 -215
  131. package/dist/cjs/index-e53b018b.js.map +1 -0
  132. package/dist/cjs/index.cjs.js +3 -0
  133. package/dist/cjs/index.cjs.js.map +1 -0
  134. package/dist/cjs/loader.cjs.js +24 -3
  135. package/dist/cjs/loader.cjs.js.map +1 -0
  136. package/dist/cjs/regular-503465f4.js +16056 -0
  137. package/dist/cjs/regular-503465f4.js.map +1 -0
  138. package/dist/cjs/regular-872f5226.js +2 -0
  139. package/dist/cjs/regular-872f5226.js.map +1 -0
  140. package/dist/cjs/shadow-css-39dfcfae.js +391 -0
  141. package/dist/cjs/shadow-css-39dfcfae.js.map +1 -0
  142. package/dist/cjs/v4-14140ff3.js +2 -0
  143. package/dist/cjs/v4-14140ff3.js.map +1 -0
  144. package/dist/cjs/xpl-application-shell.cjs.entry.js +4 -13
  145. package/dist/cjs/xpl-application-shell.cjs.entry.js.map +1 -0
  146. package/dist/cjs/xpl-avatar.cjs.entry.js +32 -0
  147. package/dist/cjs/xpl-avatar.cjs.entry.js.map +1 -0
  148. package/dist/cjs/xpl-avatar_12.cjs.entry.js +74 -38
  149. package/dist/cjs/xpl-avatar_12.cjs.entry.js.map +1 -0
  150. package/dist/cjs/xpl-backdrop.cjs.entry.js +3 -5
  151. package/dist/cjs/xpl-backdrop.cjs.entry.js.map +1 -0
  152. package/dist/cjs/xpl-badge.cjs.entry.js +25 -0
  153. package/dist/cjs/xpl-badge.cjs.entry.js.map +1 -0
  154. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +23 -0
  155. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js.map +1 -0
  156. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +18 -0
  157. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js.map +1 -0
  158. package/dist/cjs/xpl-button-row.cjs.entry.js +6 -1
  159. package/dist/cjs/xpl-button-row.cjs.entry.js.map +1 -0
  160. package/dist/cjs/xpl-button.cjs.entry.js +64 -0
  161. package/dist/cjs/xpl-button.cjs.entry.js.map +1 -0
  162. package/dist/cjs/xpl-checkbox.cjs.entry.js +39 -0
  163. package/dist/cjs/xpl-checkbox.cjs.entry.js.map +1 -0
  164. package/dist/cjs/xpl-choicelist.cjs.entry.js +10 -1
  165. package/dist/cjs/xpl-choicelist.cjs.entry.js.map +1 -0
  166. package/dist/cjs/xpl-content-area.cjs.entry.js +19 -0
  167. package/dist/cjs/xpl-content-area.cjs.entry.js.map +1 -0
  168. package/dist/cjs/xpl-divider.cjs.entry.js +4 -1
  169. package/dist/cjs/xpl-divider.cjs.entry.js.map +1 -0
  170. package/dist/cjs/xpl-dropdown-group.cjs.entry.js +39 -0
  171. package/dist/cjs/xpl-dropdown-group.cjs.entry.js.map +1 -0
  172. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +12 -3
  173. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +1 -0
  174. package/dist/cjs/xpl-dropdown-heading.cjs.entry.js +19 -0
  175. package/dist/cjs/xpl-dropdown-heading.cjs.entry.js.map +1 -0
  176. package/dist/cjs/xpl-dropdown-option.cjs.entry.js +74 -0
  177. package/dist/cjs/xpl-dropdown-option.cjs.entry.js.map +1 -0
  178. package/dist/cjs/xpl-dropdown.cjs.entry.js +110 -0
  179. package/dist/cjs/xpl-dropdown.cjs.entry.js.map +1 -0
  180. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +13 -10
  181. package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +1 -0
  182. package/dist/cjs/xpl-grid-item.cjs.entry.js +3 -1
  183. package/dist/cjs/xpl-grid-item.cjs.entry.js.map +1 -0
  184. package/dist/cjs/xpl-grid.cjs.entry.js +3 -1
  185. package/dist/cjs/xpl-grid.cjs.entry.js.map +1 -0
  186. package/dist/cjs/xpl-input.cjs.entry.js +40 -17
  187. package/dist/cjs/xpl-input.cjs.entry.js.map +1 -0
  188. package/dist/cjs/xpl-list.cjs.entry.js +4 -24
  189. package/dist/cjs/xpl-list.cjs.entry.js.map +1 -0
  190. package/dist/cjs/xpl-main-nav.cjs.entry.js +3 -4
  191. package/dist/cjs/xpl-main-nav.cjs.entry.js.map +1 -0
  192. package/dist/cjs/xpl-nav-item.cjs.entry.js +29 -0
  193. package/dist/cjs/xpl-nav-item.cjs.entry.js.map +1 -0
  194. package/dist/cjs/xpl-pagination.cjs.entry.js +7 -2
  195. package/dist/cjs/xpl-pagination.cjs.entry.js.map +1 -0
  196. package/dist/cjs/xpl-radio.cjs.entry.js +38 -0
  197. package/dist/cjs/xpl-radio.cjs.entry.js.map +1 -0
  198. package/dist/cjs/xpl-secondary-nav.cjs.entry.js +18 -0
  199. package/dist/cjs/xpl-secondary-nav.cjs.entry.js.map +1 -0
  200. package/dist/cjs/xpl-select.cjs.entry.js +86 -27
  201. package/dist/cjs/xpl-select.cjs.entry.js.map +1 -0
  202. package/dist/cjs/xpl-table.cjs.entry.js +113 -0
  203. package/dist/cjs/xpl-table.cjs.entry.js.map +1 -0
  204. package/dist/cjs/xpl-tag.cjs.entry.js +23 -0
  205. package/dist/cjs/xpl-tag.cjs.entry.js.map +1 -0
  206. package/dist/cjs/xpl-toggle.cjs.entry.js +11 -6
  207. package/dist/cjs/xpl-toggle.cjs.entry.js.map +1 -0
  208. package/dist/cjs/xpl-utility-bar.cjs.entry.js +35 -0
  209. package/dist/cjs/xpl-utility-bar.cjs.entry.js.map +1 -0
  210. package/dist/collection/collection-manifest.json +2 -2
  211. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +119 -132
  212. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +1 -0
  213. package/dist/collection/components/xpl-avatar/xpl-avatar.js +151 -144
  214. package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +1 -0
  215. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +27 -28
  216. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +1 -0
  217. package/dist/collection/components/xpl-badge/xpl-badge.js +44 -39
  218. package/dist/collection/components/xpl-badge/xpl-badge.js.map +1 -0
  219. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +3 -5
  220. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +1 -0
  221. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +3 -5
  222. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +1 -0
  223. package/dist/collection/components/xpl-button/xpl-button.js +205 -205
  224. package/dist/collection/components/xpl-button/xpl-button.js.map +1 -0
  225. package/dist/collection/components/xpl-button-row/xpl-button-row.js +106 -104
  226. package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +1 -0
  227. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +182 -171
  228. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +1 -0
  229. package/dist/collection/components/xpl-choicelist/choice.js +1 -0
  230. package/dist/collection/components/xpl-choicelist/choice.js.map +1 -0
  231. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +134 -126
  232. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +1 -0
  233. package/dist/collection/components/xpl-content-area/xpl-content-area.js +28 -31
  234. package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +1 -0
  235. package/dist/collection/components/xpl-divider/xpl-divider.js +27 -23
  236. package/dist/collection/components/xpl-divider/xpl-divider.js.map +1 -0
  237. package/dist/collection/components/xpl-dropdown/dropdownoption.js +1 -0
  238. package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +1 -0
  239. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +47 -42
  240. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +1 -0
  241. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +27 -22
  242. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +1 -0
  243. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +79 -54
  244. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +1 -0
  245. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +168 -168
  246. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +1 -0
  247. package/dist/collection/components/xpl-grid/xpl-grid.js +2 -1
  248. package/dist/collection/components/xpl-grid/xpl-grid.js.map +1 -0
  249. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +76 -74
  250. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +1 -0
  251. package/dist/collection/components/xpl-input/xpl-input.js +405 -417
  252. package/dist/collection/components/xpl-input/xpl-input.js.map +1 -0
  253. package/dist/collection/components/xpl-list/listitem.js +1 -0
  254. package/dist/collection/components/xpl-list/listitem.js.map +1 -0
  255. package/dist/collection/components/xpl-list/xpl-list.js +43 -75
  256. package/dist/collection/components/xpl-list/xpl-list.js.map +1 -0
  257. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +48 -54
  258. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +1 -0
  259. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +48 -49
  260. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +1 -0
  261. package/dist/collection/components/xpl-pagination/xpl-pagination.js +117 -128
  262. package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +1 -0
  263. package/dist/collection/components/xpl-radio/xpl-radio.js +158 -148
  264. package/dist/collection/components/xpl-radio/xpl-radio.js.map +1 -0
  265. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +3 -4
  266. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +1 -0
  267. package/dist/collection/components/xpl-select/xpl-select.js +296 -236
  268. package/dist/collection/components/xpl-select/xpl-select.js.map +1 -0
  269. package/dist/collection/components/xpl-table/xpl-table.js +169 -151
  270. package/dist/collection/components/xpl-table/xpl-table.js.map +1 -0
  271. package/dist/collection/components/xpl-tag/xpl-tag.js +25 -25
  272. package/dist/collection/components/xpl-tag/xpl-tag.js.map +1 -0
  273. package/dist/collection/components/xpl-toggle/xpl-toggle.js +138 -135
  274. package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +1 -0
  275. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +74 -70
  276. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +1 -0
  277. package/dist/components/index.d.ts +39 -0
  278. package/dist/components/index.js +81 -0
  279. package/dist/components/index.js.map +1 -0
  280. package/dist/components/index2.js +586 -0
  281. package/dist/components/index2.js.map +1 -0
  282. package/dist/components/regular.js +16054 -0
  283. package/dist/components/regular.js.map +1 -0
  284. package/dist/components/v4.js +77 -0
  285. package/dist/components/v4.js.map +1 -0
  286. package/dist/components/xpl-application-shell.d.ts +11 -0
  287. package/dist/components/xpl-application-shell.js +80 -0
  288. package/dist/components/xpl-application-shell.js.map +1 -0
  289. package/dist/components/xpl-avatar.d.ts +11 -0
  290. package/dist/components/xpl-avatar.js +8 -0
  291. package/dist/components/xpl-avatar.js.map +1 -0
  292. package/dist/components/xpl-avatar2.js +51 -0
  293. package/dist/components/xpl-avatar2.js.map +1 -0
  294. package/dist/components/xpl-backdrop.d.ts +11 -0
  295. package/dist/components/xpl-backdrop.js +8 -0
  296. package/dist/components/xpl-backdrop.js.map +1 -0
  297. package/dist/components/xpl-backdrop2.js +35 -0
  298. package/dist/components/xpl-backdrop2.js.map +1 -0
  299. package/dist/components/xpl-badge.d.ts +11 -0
  300. package/dist/components/xpl-badge.js +8 -0
  301. package/dist/components/xpl-badge.js.map +1 -0
  302. package/dist/components/xpl-badge2.js +38 -0
  303. package/dist/components/xpl-badge2.js.map +1 -0
  304. package/dist/components/xpl-breadcrumb-item.d.ts +11 -0
  305. package/dist/components/xpl-breadcrumb-item.js +36 -0
  306. package/dist/components/xpl-breadcrumb-item.js.map +1 -0
  307. package/dist/components/xpl-breadcrumbs.d.ts +11 -0
  308. package/dist/components/xpl-breadcrumbs.js +31 -0
  309. package/dist/components/xpl-breadcrumbs.js.map +1 -0
  310. package/dist/components/xpl-button-row.d.ts +11 -0
  311. package/dist/components/xpl-button-row.js +50 -0
  312. package/dist/components/xpl-button-row.js.map +1 -0
  313. package/dist/components/xpl-button.d.ts +11 -0
  314. package/dist/components/xpl-button.js +8 -0
  315. package/dist/components/xpl-button.js.map +1 -0
  316. package/dist/components/xpl-button2.js +85 -0
  317. package/dist/components/xpl-button2.js.map +1 -0
  318. package/dist/components/xpl-checkbox.d.ts +11 -0
  319. package/dist/components/xpl-checkbox.js +8 -0
  320. package/dist/components/xpl-checkbox.js.map +1 -0
  321. package/dist/components/xpl-checkbox2.js +59 -0
  322. package/dist/components/xpl-checkbox2.js.map +1 -0
  323. package/dist/components/xpl-choicelist.d.ts +11 -0
  324. package/dist/components/xpl-choicelist.js +85 -0
  325. package/dist/components/xpl-choicelist.js.map +1 -0
  326. package/dist/components/xpl-content-area.d.ts +11 -0
  327. package/dist/components/xpl-content-area.js +34 -0
  328. package/dist/components/xpl-content-area.js.map +1 -0
  329. package/dist/components/xpl-divider.d.ts +11 -0
  330. package/dist/components/xpl-divider.js +36 -0
  331. package/dist/components/xpl-divider.js.map +1 -0
  332. package/dist/components/xpl-dropdown-group.d.ts +11 -0
  333. package/dist/components/xpl-dropdown-group.js +8 -0
  334. package/dist/components/xpl-dropdown-group.js.map +1 -0
  335. package/dist/components/xpl-dropdown-group2.js +69 -0
  336. package/dist/components/xpl-dropdown-group2.js.map +1 -0
  337. package/dist/components/xpl-dropdown-heading.d.ts +11 -0
  338. package/dist/components/xpl-dropdown-heading.js +8 -0
  339. package/dist/components/xpl-dropdown-heading.js.map +1 -0
  340. package/dist/components/xpl-dropdown-heading2.js +31 -0
  341. package/dist/components/xpl-dropdown-heading2.js.map +1 -0
  342. package/dist/components/xpl-dropdown-option.d.ts +11 -0
  343. package/dist/components/xpl-dropdown-option.js +8 -0
  344. package/dist/components/xpl-dropdown-option.js.map +1 -0
  345. package/dist/components/xpl-dropdown-option2.js +89 -0
  346. package/dist/components/xpl-dropdown-option2.js.map +1 -0
  347. package/dist/components/xpl-dropdown.d.ts +11 -0
  348. package/dist/components/xpl-dropdown.js +8 -0
  349. package/dist/components/xpl-dropdown.js.map +1 -0
  350. package/dist/components/xpl-dropdown2.js +147 -0
  351. package/dist/components/xpl-dropdown2.js.map +1 -0
  352. package/dist/components/xpl-grid-item.d.ts +11 -0
  353. package/dist/components/xpl-grid-item.js +45 -0
  354. package/dist/components/xpl-grid-item.js.map +1 -0
  355. package/dist/components/xpl-grid.d.ts +11 -0
  356. package/dist/components/xpl-grid.js +50 -0
  357. package/dist/components/xpl-grid.js.map +1 -0
  358. package/dist/components/xpl-input.d.ts +11 -0
  359. package/dist/components/xpl-input.js +2594 -0
  360. package/dist/components/xpl-input.js.map +1 -0
  361. package/dist/components/xpl-list.d.ts +11 -0
  362. package/dist/components/xpl-list.js +68 -0
  363. package/dist/components/xpl-list.js.map +1 -0
  364. package/dist/components/xpl-main-nav.d.ts +11 -0
  365. package/dist/components/xpl-main-nav.js +44 -0
  366. package/dist/components/xpl-main-nav.js.map +1 -0
  367. package/dist/components/xpl-nav-item.d.ts +11 -0
  368. package/dist/components/xpl-nav-item.js +44 -0
  369. package/dist/components/xpl-nav-item.js.map +1 -0
  370. package/dist/components/xpl-pagination.d.ts +11 -0
  371. package/dist/components/xpl-pagination.js +100 -0
  372. package/dist/components/xpl-pagination.js.map +1 -0
  373. package/dist/components/xpl-radio.d.ts +11 -0
  374. package/dist/components/xpl-radio.js +8 -0
  375. package/dist/components/xpl-radio.js.map +1 -0
  376. package/dist/components/xpl-radio2.js +57 -0
  377. package/dist/components/xpl-radio2.js.map +1 -0
  378. package/dist/components/xpl-secondary-nav.d.ts +11 -0
  379. package/dist/components/xpl-secondary-nav.js +31 -0
  380. package/dist/components/xpl-secondary-nav.js.map +1 -0
  381. package/dist/components/xpl-select.d.ts +11 -0
  382. package/dist/components/xpl-select.js +745 -0
  383. package/dist/components/xpl-select.js.map +1 -0
  384. package/dist/components/xpl-table.d.ts +11 -0
  385. package/dist/components/xpl-table.js +136 -0
  386. package/dist/components/xpl-table.js.map +1 -0
  387. package/dist/components/xpl-tag.d.ts +11 -0
  388. package/dist/components/xpl-tag.js +8 -0
  389. package/dist/components/xpl-tag.js.map +1 -0
  390. package/dist/components/xpl-tag2.js +33 -0
  391. package/dist/components/xpl-tag2.js.map +1 -0
  392. package/dist/components/xpl-toggle.d.ts +11 -0
  393. package/dist/components/xpl-toggle.js +61 -0
  394. package/dist/components/xpl-toggle.js.map +1 -0
  395. package/dist/components/xpl-utility-bar.d.ts +11 -0
  396. package/dist/components/xpl-utility-bar.js +52 -0
  397. package/dist/components/xpl-utility-bar.js.map +1 -0
  398. package/dist/esm/apollo-core.js +151 -5
  399. package/dist/esm/apollo-core.js.map +1 -0
  400. package/dist/esm/app-globals-0f993ce5.js +5 -0
  401. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  402. package/dist/esm/css-shim-6210ce77.js +6 -0
  403. package/dist/esm/css-shim-6210ce77.js.map +1 -0
  404. package/dist/esm/dom-423bdd70.js +75 -0
  405. package/dist/esm/dom-423bdd70.js.map +1 -0
  406. package/dist/esm/index-307c7018.js +3526 -0
  407. package/dist/esm/index-307c7018.js.map +1 -0
  408. package/dist/esm/index-912d1a21.js +586 -0
  409. package/dist/esm/index-912d1a21.js.map +1 -0
  410. package/dist/esm/{index-e3c4bb97.js → index-df9b48b4.js} +675 -216
  411. package/dist/esm/index-df9b48b4.js.map +1 -0
  412. package/dist/esm/index.js +2 -0
  413. package/dist/esm/index.js.map +1 -0
  414. package/dist/esm/loader.js +24 -3
  415. package/dist/esm/loader.js.map +1 -0
  416. package/dist/esm/polyfills/css-shim.js +1 -1
  417. package/dist/esm/regular-133c23b5.js +16054 -0
  418. package/dist/esm/regular-133c23b5.js.map +1 -0
  419. package/dist/esm/regular-86225e9d.js +2 -0
  420. package/dist/esm/regular-86225e9d.js.map +1 -0
  421. package/dist/esm/shadow-css-f0279020.js +389 -0
  422. package/dist/esm/shadow-css-f0279020.js.map +1 -0
  423. package/dist/esm/v4-929670b7.js +2 -0
  424. package/dist/esm/v4-929670b7.js.map +1 -0
  425. package/dist/esm/xpl-application-shell.entry.js +4 -13
  426. package/dist/esm/xpl-application-shell.entry.js.map +1 -0
  427. package/dist/esm/xpl-avatar.entry.js +28 -0
  428. package/dist/esm/xpl-avatar.entry.js.map +1 -0
  429. package/dist/esm/xpl-avatar_12.entry.js +74 -38
  430. package/dist/esm/xpl-avatar_12.entry.js.map +1 -0
  431. package/dist/esm/xpl-backdrop.entry.js +3 -5
  432. package/dist/esm/xpl-backdrop.entry.js.map +1 -0
  433. package/dist/esm/xpl-badge.entry.js +21 -0
  434. package/dist/esm/xpl-badge.entry.js.map +1 -0
  435. package/dist/esm/xpl-breadcrumb-item.entry.js +19 -0
  436. package/dist/esm/xpl-breadcrumb-item.entry.js.map +1 -0
  437. package/dist/esm/xpl-breadcrumbs.entry.js +14 -0
  438. package/dist/esm/xpl-breadcrumbs.entry.js.map +1 -0
  439. package/dist/esm/xpl-button-row.entry.js +6 -1
  440. package/dist/esm/xpl-button-row.entry.js.map +1 -0
  441. package/dist/esm/xpl-button.entry.js +60 -0
  442. package/dist/esm/xpl-button.entry.js.map +1 -0
  443. package/dist/esm/xpl-checkbox.entry.js +35 -0
  444. package/dist/esm/xpl-checkbox.entry.js.map +1 -0
  445. package/dist/esm/xpl-choicelist.entry.js +10 -1
  446. package/dist/esm/xpl-choicelist.entry.js.map +1 -0
  447. package/dist/esm/xpl-content-area.entry.js +15 -0
  448. package/dist/esm/xpl-content-area.entry.js.map +1 -0
  449. package/dist/esm/xpl-divider.entry.js +4 -1
  450. package/dist/esm/xpl-divider.entry.js.map +1 -0
  451. package/dist/esm/xpl-dropdown-group.entry.js +35 -0
  452. package/dist/esm/xpl-dropdown-group.entry.js.map +1 -0
  453. package/dist/esm/xpl-dropdown-group_3.entry.js +12 -3
  454. package/dist/esm/xpl-dropdown-group_3.entry.js.map +1 -0
  455. package/dist/esm/xpl-dropdown-heading.entry.js +15 -0
  456. package/dist/esm/xpl-dropdown-heading.entry.js.map +1 -0
  457. package/dist/esm/xpl-dropdown-option.entry.js +70 -0
  458. package/dist/esm/xpl-dropdown-option.entry.js.map +1 -0
  459. package/dist/esm/xpl-dropdown.entry.js +106 -0
  460. package/dist/esm/xpl-dropdown.entry.js.map +1 -0
  461. package/dist/esm/xpl-dropdown_2.entry.js +13 -10
  462. package/dist/esm/xpl-dropdown_2.entry.js.map +1 -0
  463. package/dist/esm/xpl-grid-item.entry.js +3 -1
  464. package/dist/esm/xpl-grid-item.entry.js.map +1 -0
  465. package/dist/esm/xpl-grid.entry.js +3 -1
  466. package/dist/esm/xpl-grid.entry.js.map +1 -0
  467. package/dist/esm/xpl-input.entry.js +39 -16
  468. package/dist/esm/xpl-input.entry.js.map +1 -0
  469. package/dist/esm/xpl-list.entry.js +4 -24
  470. package/dist/esm/xpl-list.entry.js.map +1 -0
  471. package/dist/esm/xpl-main-nav.entry.js +3 -4
  472. package/dist/esm/xpl-main-nav.entry.js.map +1 -0
  473. package/dist/esm/xpl-nav-item.entry.js +25 -0
  474. package/dist/esm/xpl-nav-item.entry.js.map +1 -0
  475. package/dist/esm/xpl-pagination.entry.js +7 -2
  476. package/dist/esm/xpl-pagination.entry.js.map +1 -0
  477. package/dist/esm/xpl-radio.entry.js +34 -0
  478. package/dist/esm/xpl-radio.entry.js.map +1 -0
  479. package/dist/esm/xpl-secondary-nav.entry.js +14 -0
  480. package/dist/esm/xpl-secondary-nav.entry.js.map +1 -0
  481. package/dist/esm/xpl-select.entry.js +85 -26
  482. package/dist/esm/xpl-select.entry.js.map +1 -0
  483. package/dist/esm/xpl-table.entry.js +109 -0
  484. package/dist/esm/xpl-table.entry.js.map +1 -0
  485. package/dist/esm/xpl-tag.entry.js +19 -0
  486. package/dist/esm/xpl-tag.entry.js.map +1 -0
  487. package/dist/esm/xpl-toggle.entry.js +10 -5
  488. package/dist/esm/xpl-toggle.entry.js.map +1 -0
  489. package/dist/esm/xpl-utility-bar.entry.js +31 -0
  490. package/dist/esm/xpl-utility-bar.entry.js.map +1 -0
  491. package/dist/stories/application-shell.stories.js +1 -0
  492. package/dist/stories/application-shell.stories.js.map +1 -0
  493. package/dist/stories/avatar.stories.js +1 -0
  494. package/dist/stories/avatar.stories.js.map +1 -0
  495. package/dist/stories/backdrop.stories.js +1 -0
  496. package/dist/stories/backdrop.stories.js.map +1 -0
  497. package/dist/stories/badge.stories.js +1 -0
  498. package/dist/stories/badge.stories.js.map +1 -0
  499. package/dist/stories/breadcrumbs.stories.js +1 -0
  500. package/dist/stories/breadcrumbs.stories.js.map +1 -0
  501. package/dist/stories/button-row.stories.js +1 -0
  502. package/dist/stories/button-row.stories.js.map +1 -0
  503. package/dist/stories/button.stories.js +1 -0
  504. package/dist/stories/button.stories.js.map +1 -0
  505. package/dist/stories/checkbox.stories.js +1 -0
  506. package/dist/stories/checkbox.stories.js.map +1 -0
  507. package/dist/stories/choicelist.stories.js +1 -0
  508. package/dist/stories/choicelist.stories.js.map +1 -0
  509. package/dist/stories/content-area.stories.js +1 -0
  510. package/dist/stories/content-area.stories.js.map +1 -0
  511. package/dist/stories/divider.stories.js +1 -0
  512. package/dist/stories/divider.stories.js.map +1 -0
  513. package/dist/stories/dropdown.stories.js +74 -65
  514. package/dist/stories/dropdown.stories.js.map +1 -0
  515. package/dist/stories/grid.stories.js +1 -0
  516. package/dist/stories/grid.stories.js.map +1 -0
  517. package/dist/stories/input.stories.js +1 -0
  518. package/dist/stories/input.stories.js.map +1 -0
  519. package/dist/stories/list.stories.js +1 -0
  520. package/dist/stories/list.stories.js.map +1 -0
  521. package/dist/stories/main-nav.stories.js +1 -0
  522. package/dist/stories/main-nav.stories.js.map +1 -0
  523. package/dist/stories/pagination.stories.js +1 -0
  524. package/dist/stories/pagination.stories.js.map +1 -0
  525. package/dist/stories/radio.stories.js +1 -0
  526. package/dist/stories/radio.stories.js.map +1 -0
  527. package/dist/stories/secondary-nav.stories.js +1 -0
  528. package/dist/stories/secondary-nav.stories.js.map +1 -0
  529. package/dist/stories/select.stories.js +109 -32
  530. package/dist/stories/select.stories.js.map +1 -0
  531. package/dist/stories/table.stories.js +1 -0
  532. package/dist/stories/table.stories.js.map +1 -0
  533. package/dist/stories/tabs.stories.js +1 -0
  534. package/dist/stories/tabs.stories.js.map +1 -0
  535. package/dist/stories/toggle.stories.js +1 -0
  536. package/dist/stories/toggle.stories.js.map +1 -0
  537. package/dist/stories/utility-bar.stories.js +1 -0
  538. package/dist/stories/utility-bar.stories.js.map +1 -0
  539. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dropdown.stories.d.ts +17 -1
  540. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +60 -0
  541. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +2 -1
  542. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +7 -1
  543. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +2 -2
  544. package/dist/types/components/xpl-select/xpl-select.d.ts +16 -2
  545. package/dist/types/components/xpl-table/xpl-table.d.ts +2 -0
  546. package/dist/types/components.d.ts +88 -23
  547. package/dist/types/stencil-public-runtime.d.ts +97 -23
  548. package/loader/index.d.ts +9 -1
  549. package/loader/package.json +1 -0
  550. package/package.json +7 -6
  551. package/CHANGELOG.md +0 -106
  552. package/dist/apollo-core/p-25f84d39.entry.js +0 -1
  553. package/dist/apollo-core/p-2ce2fe5c.entry.js +0 -1
  554. package/dist/apollo-core/p-3ff1ff38.entry.js +0 -1
  555. package/dist/apollo-core/p-63dd9a65.entry.js +0 -1
  556. package/dist/apollo-core/p-6c3c1e3d.entry.js +0 -1
  557. package/dist/apollo-core/p-81a6ce4c.entry.js +0 -1
  558. package/dist/apollo-core/p-918b0731.entry.js +0 -1
  559. package/dist/apollo-core/p-a43e2d1f.entry.js +0 -1
  560. package/dist/apollo-core/p-a7cc4114.entry.js +0 -1
  561. package/dist/apollo-core/p-b6d1b135.entry.js +0 -1
  562. package/dist/apollo-core/p-bc0ebed2.entry.js +0 -1
  563. package/dist/apollo-core/p-c8af4ed6.entry.js +0 -1
  564. package/dist/apollo-core/p-d4aa2fa9.js +0 -1
  565. package/dist/apollo-core/p-d4e5d3aa.entry.js +0 -1
  566. package/dist/apollo-core/p-dad11011.entry.js +0 -1
  567. package/dist/apollo-core/p-db74c99c.entry.js +0 -1
  568. package/dist/apollo-core/p-ee16942f.entry.js +0 -1
  569. package/dist/collection/components/xpl-select/selectchoice.js +0 -1
  570. package/dist/custom-elements/index.d.ts +0 -219
  571. package/dist/types/components/xpl-select/selectchoice.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Prop, State } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  import { v4 as uuid } from 'uuid';
3
3
  import flatpickr from 'flatpickr';
4
4
  import '../../../font-awesome/fontawesome';
@@ -8,23 +8,27 @@ const arrowSvg = (rotate = false) => `<svg width="8" height="12" viewBox="0 0 8
8
8
  : 'M7.44187 6.3187L1.93773 11.8678C1.76151 12.0441 1.47655 12.0441 1.30033 11.8678L0.557948 11.1254C0.381726 10.9492 0.381726 10.6643 0.557948 10.488L5.001 6L0.557948 1.51195C0.381726 1.33573 0.381726 1.05077 0.557948 0.874551L1.30033 0.132167C1.47655 -0.0440556 1.76151 -0.0440556 1.93773 0.132167L7.44187 5.6813C7.6181 5.85752 7.6181 6.14248 7.44187 6.3187Z'}" /></svg>`;
9
9
  export class XplInput {
10
10
  constructor() {
11
- /**
12
- * See https://flatpickr.js.org/formatting/
13
- */
11
+ this._id = undefined;
12
+ this.autocomplete = undefined;
14
13
  this.dateFormat = 'Y-m-d';
15
- /**
16
- * For datepicker inputs, whether to allow only a single
17
- * date or a range of dates. (Multiple non-consecutive
18
- * dates planned to be supported in the future.)
19
- */
14
+ this.description = undefined;
15
+ this.disabled = undefined;
16
+ this.error = undefined;
17
+ this.label = undefined;
18
+ this.max = undefined;
19
+ this.maxCharacterCount = undefined;
20
+ this.min = undefined;
20
21
  this.mode = 'single';
21
- /**
22
- * Whether to render as a singleline text input or
23
- * as a multiline textarea. (If `true`, `pre` and `post`
24
- * values will be ignored, if present.)
25
- */
26
22
  this.multiline = false;
23
+ this.name = undefined;
24
+ this.placeholder = undefined;
25
+ this.post = undefined;
26
+ this.pre = undefined;
27
+ this.readonly = undefined;
28
+ this.required = undefined;
29
+ this.step = undefined;
27
30
  this.type = 'text';
31
+ this.value = undefined;
28
32
  this.characterCount = 0;
29
33
  this.passwordVisible = false;
30
34
  }
@@ -70,409 +74,393 @@ export class XplInput {
70
74
  if (type === 'password' && this.passwordVisible) {
71
75
  type = 'text';
72
76
  }
73
- return (h(Host, { class: className },
74
- h("label", { class: "xpl-input-label", htmlFor: this._id },
75
- this.label,
76
- this.description && h("small", null, this.description)),
77
- h("div", { class: "xpl-input-wrapper" },
78
- this.pre && !this.multiline && (h("label", { class: "xpl-input-pre", htmlFor: this._id }, this.pre)),
79
- !this.multiline ? (h("input", { autocomplete: this.type === 'date' ? 'off' : this.autocomplete, disabled: this.disabled, id: this._id, max: this.max, min: this.min, name: this.name, placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
80
- this.input = el;
81
- }, required: this.required, step: this.step, type: type, value: this.value })) : (h("textarea", { disabled: this.disabled, id: this._id, name: this.name, onInput: () => this.updateCharacterCount(), placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
82
- this.input = el;
83
- }, required: this.required }, this.value)),
84
- this.type === 'date' && (h("span", { class: "xpl-input-calendar" },
85
- h("i", { class: "far fa-calendar-alt" }))),
86
- this.type === 'password' && (h("button", { class: "xpl-input-password", onClick: () => {
87
- this.passwordVisible = !this.passwordVisible;
88
- }, role: "presentation" },
89
- h("span", { class: "sr-only" }, "Toggle password visibility"),
90
- h("i", { class: "far fa-eye", style: {
91
- display: this.passwordVisible
92
- ? 'none'
93
- : 'block',
94
- } }),
95
- h("i", { class: "far fa-eye-slash", style: {
96
- display: this.passwordVisible
97
- ? 'block'
98
- : 'none',
99
- } }))),
100
- this.post && !this.multiline && (h("label", { class: "xpl-input-post", htmlFor: this._id }, this.post)),
101
- this.multiline && this.maxCharacterCount !== undefined && (h("span", { class: "xpl-input-characters" },
102
- this.characterCount,
103
- "/",
104
- this.maxCharacterCount))),
105
- this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this._id },
106
- h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
107
- 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" })),
108
- this.error))));
77
+ return (h(Host, { class: className }, h("label", { class: "xpl-input-label", htmlFor: this._id }, this.label, this.description && h("small", null, this.description)), h("div", { class: "xpl-input-wrapper" }, this.pre && !this.multiline && (h("label", { class: "xpl-input-pre", htmlFor: this._id }, this.pre)), !this.multiline ? (h("input", { autocomplete: this.type === 'date' ? 'off' : this.autocomplete, disabled: this.disabled, id: this._id, max: this.max, min: this.min, name: this.name, placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
78
+ this.input = el;
79
+ }, required: this.required, step: this.step, type: type, value: this.value })) : (h("textarea", { disabled: this.disabled, id: this._id, name: this.name, onInput: () => this.updateCharacterCount(), placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
80
+ this.input = el;
81
+ }, required: this.required }, this.value)), this.type === 'date' && (h("span", { class: "xpl-input-calendar" }, h("i", { class: "far fa-calendar-alt" }))), this.type === 'password' && (h("button", { class: "xpl-input-password", onClick: () => {
82
+ this.passwordVisible = !this.passwordVisible;
83
+ }, role: "presentation" }, h("span", { class: "sr-only" }, "Toggle password visibility"), h("i", { class: "far fa-eye", style: {
84
+ display: this.passwordVisible
85
+ ? 'none'
86
+ : 'block',
87
+ } }), h("i", { class: "far fa-eye-slash", style: {
88
+ display: this.passwordVisible
89
+ ? 'block'
90
+ : 'none',
91
+ } }))), this.post && !this.multiline && (h("label", { class: "xpl-input-post", htmlFor: this._id }, this.post)), this.multiline && this.maxCharacterCount !== undefined && (h("span", { class: "xpl-input-characters" }, this.characterCount, "/", this.maxCharacterCount))), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this._id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })), this.error))));
109
92
  }
110
93
  static get is() { return "xpl-input"; }
111
- static get properties() { return {
112
- "_id": {
113
- "type": "string",
114
- "mutable": false,
115
- "complexType": {
116
- "original": "string",
117
- "resolved": "string",
118
- "references": {}
119
- },
120
- "required": false,
121
- "optional": true,
122
- "docs": {
123
- "tags": [],
124
- "text": "Because `id` is a reserved HTMLElement attribute,\nwe prefix it with an underscore here so that it\ndoesn't get automatically applied to the outer container."
125
- },
126
- "attribute": "_id",
127
- "reflect": false
128
- },
129
- "autocomplete": {
130
- "type": "string",
131
- "mutable": false,
132
- "complexType": {
133
- "original": "string",
134
- "resolved": "string",
135
- "references": {}
136
- },
137
- "required": false,
138
- "optional": true,
139
- "docs": {
140
- "tags": [],
141
- "text": ""
142
- },
143
- "attribute": "autocomplete",
144
- "reflect": false
145
- },
146
- "dateFormat": {
147
- "type": "string",
148
- "mutable": false,
149
- "complexType": {
150
- "original": "string",
151
- "resolved": "string",
152
- "references": {}
153
- },
154
- "required": false,
155
- "optional": true,
156
- "docs": {
157
- "tags": [],
158
- "text": "See https://flatpickr.js.org/formatting/"
159
- },
160
- "attribute": "date-format",
161
- "reflect": false,
162
- "defaultValue": "'Y-m-d'"
163
- },
164
- "description": {
165
- "type": "string",
166
- "mutable": false,
167
- "complexType": {
168
- "original": "string",
169
- "resolved": "string",
170
- "references": {}
171
- },
172
- "required": false,
173
- "optional": true,
174
- "docs": {
175
- "tags": [],
176
- "text": "Optional text that appears below the input label."
177
- },
178
- "attribute": "description",
179
- "reflect": false
180
- },
181
- "disabled": {
182
- "type": "boolean",
183
- "mutable": false,
184
- "complexType": {
185
- "original": "boolean",
186
- "resolved": "boolean",
187
- "references": {}
188
- },
189
- "required": false,
190
- "optional": true,
191
- "docs": {
192
- "tags": [],
193
- "text": ""
194
- },
195
- "attribute": "disabled",
196
- "reflect": false
197
- },
198
- "error": {
199
- "type": "string",
200
- "mutable": false,
201
- "complexType": {
202
- "original": "string",
203
- "resolved": "string",
204
- "references": {}
205
- },
206
- "required": false,
207
- "optional": true,
208
- "docs": {
209
- "tags": [],
210
- "text": "If an empty string (attribute present with no value),\nwill display visually as an error. If a string is\nincluded, will display visually as an error and include\nthe value as an error message."
211
- },
212
- "attribute": "error",
213
- "reflect": false
214
- },
215
- "label": {
216
- "type": "string",
217
- "mutable": false,
218
- "complexType": {
219
- "original": "string",
220
- "resolved": "string",
221
- "references": {}
222
- },
223
- "required": false,
224
- "optional": false,
225
- "docs": {
226
- "tags": [],
227
- "text": ""
228
- },
229
- "attribute": "label",
230
- "reflect": false
231
- },
232
- "max": {
233
- "type": "any",
234
- "mutable": false,
235
- "complexType": {
236
- "original": "number | string",
237
- "resolved": "number | string",
238
- "references": {}
239
- },
240
- "required": false,
241
- "optional": true,
242
- "docs": {
243
- "tags": [],
244
- "text": "Only used when `type` = 'number' or 'date'"
245
- },
246
- "attribute": "max",
247
- "reflect": false
248
- },
249
- "maxCharacterCount": {
250
- "type": "number",
251
- "mutable": false,
252
- "complexType": {
253
- "original": "number",
254
- "resolved": "number",
255
- "references": {}
256
- },
257
- "required": false,
258
- "optional": true,
259
- "docs": {
260
- "tags": [],
261
- "text": "For multiline inputs, a max. character count will\ndisplay along with the current character count,\nand will automatically render as an error if the\ncharacter count exceeds the max."
262
- },
263
- "attribute": "max-character-count",
264
- "reflect": false
265
- },
266
- "min": {
267
- "type": "any",
268
- "mutable": false,
269
- "complexType": {
270
- "original": "number | string",
271
- "resolved": "number | string",
272
- "references": {}
273
- },
274
- "required": false,
275
- "optional": true,
276
- "docs": {
277
- "tags": [],
278
- "text": "Only used when `type` = 'number' or 'date'"
279
- },
280
- "attribute": "min",
281
- "reflect": false
282
- },
283
- "mode": {
284
- "type": "string",
285
- "mutable": false,
286
- "complexType": {
287
- "original": "'single' | /* \"multiple\" | */ 'range'",
288
- "resolved": "\"range\" | \"single\"",
289
- "references": {}
290
- },
291
- "required": false,
292
- "optional": true,
293
- "docs": {
294
- "tags": [],
295
- "text": "For datepicker inputs, whether to allow only a single\ndate or a range of dates. (Multiple non-consecutive\ndates planned to be supported in the future.)"
296
- },
297
- "attribute": "mode",
298
- "reflect": false,
299
- "defaultValue": "'single'"
300
- },
301
- "multiline": {
302
- "type": "boolean",
303
- "mutable": false,
304
- "complexType": {
305
- "original": "boolean",
306
- "resolved": "boolean",
307
- "references": {}
308
- },
309
- "required": false,
310
- "optional": true,
311
- "docs": {
312
- "tags": [],
313
- "text": "Whether to render as a singleline text input or\nas a multiline textarea. (If `true`, `pre` and `post`\nvalues will be ignored, if present.)"
314
- },
315
- "attribute": "multiline",
316
- "reflect": false,
317
- "defaultValue": "false"
318
- },
319
- "name": {
320
- "type": "string",
321
- "mutable": false,
322
- "complexType": {
323
- "original": "string",
324
- "resolved": "string",
325
- "references": {}
326
- },
327
- "required": false,
328
- "optional": true,
329
- "docs": {
330
- "tags": [],
331
- "text": "Most inputs are used in forms, and should have a\n`name` associated with the input for handling form data."
332
- },
333
- "attribute": "name",
334
- "reflect": false
335
- },
336
- "placeholder": {
337
- "type": "string",
338
- "mutable": false,
339
- "complexType": {
340
- "original": "string",
341
- "resolved": "string",
342
- "references": {}
343
- },
344
- "required": false,
345
- "optional": true,
346
- "docs": {
347
- "tags": [],
348
- "text": ""
349
- },
350
- "attribute": "placeholder",
351
- "reflect": false
352
- },
353
- "post": {
354
- "type": "string",
355
- "mutable": false,
356
- "complexType": {
357
- "original": "string",
358
- "resolved": "string",
359
- "references": {}
360
- },
361
- "required": false,
362
- "optional": true,
363
- "docs": {
364
- "tags": [],
365
- "text": "A string (recommended max 3 characters) that gets shown\nvisually to the left of (before) the input."
366
- },
367
- "attribute": "post",
368
- "reflect": false
369
- },
370
- "pre": {
371
- "type": "string",
372
- "mutable": false,
373
- "complexType": {
374
- "original": "string",
375
- "resolved": "string",
376
- "references": {}
377
- },
378
- "required": false,
379
- "optional": true,
380
- "docs": {
381
- "tags": [],
382
- "text": "A string (recommended max 8 characters) that gets shown\nvisually to the right of (after) the input."
383
- },
384
- "attribute": "pre",
385
- "reflect": false
386
- },
387
- "readonly": {
388
- "type": "boolean",
389
- "mutable": false,
390
- "complexType": {
391
- "original": "boolean",
392
- "resolved": "boolean",
393
- "references": {}
394
- },
395
- "required": false,
396
- "optional": true,
397
- "docs": {
398
- "tags": [],
399
- "text": ""
400
- },
401
- "attribute": "readonly",
402
- "reflect": false
403
- },
404
- "required": {
405
- "type": "boolean",
406
- "mutable": false,
407
- "complexType": {
408
- "original": "boolean",
409
- "resolved": "boolean",
410
- "references": {}
411
- },
412
- "required": false,
413
- "optional": true,
414
- "docs": {
415
- "tags": [],
416
- "text": ""
417
- },
418
- "attribute": "required",
419
- "reflect": false
420
- },
421
- "step": {
422
- "type": "number",
423
- "mutable": false,
424
- "complexType": {
425
- "original": "number",
426
- "resolved": "number",
427
- "references": {}
428
- },
429
- "required": false,
430
- "optional": true,
431
- "docs": {
432
- "tags": [],
433
- "text": ""
434
- },
435
- "attribute": "step",
436
- "reflect": false
437
- },
438
- "type": {
439
- "type": "string",
440
- "mutable": false,
441
- "complexType": {
442
- "original": "'date' | 'text' | 'number' | 'password'",
443
- "resolved": "\"date\" | \"number\" | \"password\" | \"text\"",
444
- "references": {}
445
- },
446
- "required": false,
447
- "optional": true,
448
- "docs": {
449
- "tags": [],
450
- "text": ""
451
- },
452
- "attribute": "type",
453
- "reflect": false,
454
- "defaultValue": "'text'"
455
- },
456
- "value": {
457
- "type": "string",
458
- "mutable": false,
459
- "complexType": {
460
- "original": "string",
461
- "resolved": "string",
462
- "references": {}
463
- },
464
- "required": false,
465
- "optional": true,
466
- "docs": {
467
- "tags": [],
468
- "text": "Including a `value` will prepopulate the input\nwith the given string."
469
- },
470
- "attribute": "value",
471
- "reflect": false
472
- }
473
- }; }
474
- static get states() { return {
475
- "characterCount": {},
476
- "passwordVisible": {}
477
- }; }
94
+ static get properties() {
95
+ return {
96
+ "_id": {
97
+ "type": "string",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "string",
101
+ "resolved": "string",
102
+ "references": {}
103
+ },
104
+ "required": false,
105
+ "optional": true,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": "Because `id` is a reserved HTMLElement attribute,\nwe prefix it with an underscore here so that it\ndoesn't get automatically applied to the outer container."
109
+ },
110
+ "attribute": "_id",
111
+ "reflect": false
112
+ },
113
+ "autocomplete": {
114
+ "type": "string",
115
+ "mutable": false,
116
+ "complexType": {
117
+ "original": "string",
118
+ "resolved": "string",
119
+ "references": {}
120
+ },
121
+ "required": false,
122
+ "optional": true,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": ""
126
+ },
127
+ "attribute": "autocomplete",
128
+ "reflect": false
129
+ },
130
+ "dateFormat": {
131
+ "type": "string",
132
+ "mutable": false,
133
+ "complexType": {
134
+ "original": "string",
135
+ "resolved": "string",
136
+ "references": {}
137
+ },
138
+ "required": false,
139
+ "optional": true,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": "See https://flatpickr.js.org/formatting/"
143
+ },
144
+ "attribute": "date-format",
145
+ "reflect": false,
146
+ "defaultValue": "'Y-m-d'"
147
+ },
148
+ "description": {
149
+ "type": "string",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "string",
153
+ "resolved": "string",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": true,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": "Optional text that appears below the input label."
161
+ },
162
+ "attribute": "description",
163
+ "reflect": false
164
+ },
165
+ "disabled": {
166
+ "type": "boolean",
167
+ "mutable": false,
168
+ "complexType": {
169
+ "original": "boolean",
170
+ "resolved": "boolean",
171
+ "references": {}
172
+ },
173
+ "required": false,
174
+ "optional": true,
175
+ "docs": {
176
+ "tags": [],
177
+ "text": ""
178
+ },
179
+ "attribute": "disabled",
180
+ "reflect": false
181
+ },
182
+ "error": {
183
+ "type": "string",
184
+ "mutable": false,
185
+ "complexType": {
186
+ "original": "string",
187
+ "resolved": "string",
188
+ "references": {}
189
+ },
190
+ "required": false,
191
+ "optional": true,
192
+ "docs": {
193
+ "tags": [],
194
+ "text": "If an empty string (attribute present with no value),\nwill display visually as an error. If a string is\nincluded, will display visually as an error and include\nthe value as an error message."
195
+ },
196
+ "attribute": "error",
197
+ "reflect": false
198
+ },
199
+ "label": {
200
+ "type": "string",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "string",
204
+ "resolved": "string",
205
+ "references": {}
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": ""
212
+ },
213
+ "attribute": "label",
214
+ "reflect": false
215
+ },
216
+ "max": {
217
+ "type": "any",
218
+ "mutable": false,
219
+ "complexType": {
220
+ "original": "number | string",
221
+ "resolved": "number | string",
222
+ "references": {}
223
+ },
224
+ "required": false,
225
+ "optional": true,
226
+ "docs": {
227
+ "tags": [],
228
+ "text": "Only used when `type` = 'number' or 'date'"
229
+ },
230
+ "attribute": "max",
231
+ "reflect": false
232
+ },
233
+ "maxCharacterCount": {
234
+ "type": "number",
235
+ "mutable": false,
236
+ "complexType": {
237
+ "original": "number",
238
+ "resolved": "number",
239
+ "references": {}
240
+ },
241
+ "required": false,
242
+ "optional": true,
243
+ "docs": {
244
+ "tags": [],
245
+ "text": "For multiline inputs, a max. character count will\ndisplay along with the current character count,\nand will automatically render as an error if the\ncharacter count exceeds the max."
246
+ },
247
+ "attribute": "max-character-count",
248
+ "reflect": false
249
+ },
250
+ "min": {
251
+ "type": "any",
252
+ "mutable": false,
253
+ "complexType": {
254
+ "original": "number | string",
255
+ "resolved": "number | string",
256
+ "references": {}
257
+ },
258
+ "required": false,
259
+ "optional": true,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": "Only used when `type` = 'number' or 'date'"
263
+ },
264
+ "attribute": "min",
265
+ "reflect": false
266
+ },
267
+ "mode": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "'single' | /* \"multiple\" | */ 'range'",
272
+ "resolved": "\"range\" | \"single\"",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": true,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": "For datepicker inputs, whether to allow only a single\ndate or a range of dates. (Multiple non-consecutive\ndates planned to be supported in the future.)"
280
+ },
281
+ "attribute": "mode",
282
+ "reflect": false,
283
+ "defaultValue": "'single'"
284
+ },
285
+ "multiline": {
286
+ "type": "boolean",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "boolean",
290
+ "resolved": "boolean",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": true,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": "Whether to render as a singleline text input or\nas a multiline textarea. (If `true`, `pre` and `post`\nvalues will be ignored, if present.)"
298
+ },
299
+ "attribute": "multiline",
300
+ "reflect": false,
301
+ "defaultValue": "false"
302
+ },
303
+ "name": {
304
+ "type": "string",
305
+ "mutable": false,
306
+ "complexType": {
307
+ "original": "string",
308
+ "resolved": "string",
309
+ "references": {}
310
+ },
311
+ "required": false,
312
+ "optional": true,
313
+ "docs": {
314
+ "tags": [],
315
+ "text": "Most inputs are used in forms, and should have a\n`name` associated with the input for handling form data."
316
+ },
317
+ "attribute": "name",
318
+ "reflect": false
319
+ },
320
+ "placeholder": {
321
+ "type": "string",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "string",
325
+ "resolved": "string",
326
+ "references": {}
327
+ },
328
+ "required": false,
329
+ "optional": true,
330
+ "docs": {
331
+ "tags": [],
332
+ "text": ""
333
+ },
334
+ "attribute": "placeholder",
335
+ "reflect": false
336
+ },
337
+ "post": {
338
+ "type": "string",
339
+ "mutable": false,
340
+ "complexType": {
341
+ "original": "string",
342
+ "resolved": "string",
343
+ "references": {}
344
+ },
345
+ "required": false,
346
+ "optional": true,
347
+ "docs": {
348
+ "tags": [],
349
+ "text": "A string (recommended max 3 characters) that gets shown\nvisually to the left of (before) the input."
350
+ },
351
+ "attribute": "post",
352
+ "reflect": false
353
+ },
354
+ "pre": {
355
+ "type": "string",
356
+ "mutable": false,
357
+ "complexType": {
358
+ "original": "string",
359
+ "resolved": "string",
360
+ "references": {}
361
+ },
362
+ "required": false,
363
+ "optional": true,
364
+ "docs": {
365
+ "tags": [],
366
+ "text": "A string (recommended max 8 characters) that gets shown\nvisually to the right of (after) the input."
367
+ },
368
+ "attribute": "pre",
369
+ "reflect": false
370
+ },
371
+ "readonly": {
372
+ "type": "boolean",
373
+ "mutable": false,
374
+ "complexType": {
375
+ "original": "boolean",
376
+ "resolved": "boolean",
377
+ "references": {}
378
+ },
379
+ "required": false,
380
+ "optional": true,
381
+ "docs": {
382
+ "tags": [],
383
+ "text": ""
384
+ },
385
+ "attribute": "readonly",
386
+ "reflect": false
387
+ },
388
+ "required": {
389
+ "type": "boolean",
390
+ "mutable": false,
391
+ "complexType": {
392
+ "original": "boolean",
393
+ "resolved": "boolean",
394
+ "references": {}
395
+ },
396
+ "required": false,
397
+ "optional": true,
398
+ "docs": {
399
+ "tags": [],
400
+ "text": ""
401
+ },
402
+ "attribute": "required",
403
+ "reflect": false
404
+ },
405
+ "step": {
406
+ "type": "number",
407
+ "mutable": false,
408
+ "complexType": {
409
+ "original": "number",
410
+ "resolved": "number",
411
+ "references": {}
412
+ },
413
+ "required": false,
414
+ "optional": true,
415
+ "docs": {
416
+ "tags": [],
417
+ "text": ""
418
+ },
419
+ "attribute": "step",
420
+ "reflect": false
421
+ },
422
+ "type": {
423
+ "type": "string",
424
+ "mutable": false,
425
+ "complexType": {
426
+ "original": "'date' | 'text' | 'number' | 'password'",
427
+ "resolved": "\"date\" | \"number\" | \"password\" | \"text\"",
428
+ "references": {}
429
+ },
430
+ "required": false,
431
+ "optional": true,
432
+ "docs": {
433
+ "tags": [],
434
+ "text": ""
435
+ },
436
+ "attribute": "type",
437
+ "reflect": false,
438
+ "defaultValue": "'text'"
439
+ },
440
+ "value": {
441
+ "type": "string",
442
+ "mutable": false,
443
+ "complexType": {
444
+ "original": "string",
445
+ "resolved": "string",
446
+ "references": {}
447
+ },
448
+ "required": false,
449
+ "optional": true,
450
+ "docs": {
451
+ "tags": [],
452
+ "text": "Including a `value` will prepopulate the input\nwith the given string."
453
+ },
454
+ "attribute": "value",
455
+ "reflect": false
456
+ }
457
+ };
458
+ }
459
+ static get states() {
460
+ return {
461
+ "characterCount": {},
462
+ "passwordVisible": {}
463
+ };
464
+ }
478
465
  }
466
+ //# sourceMappingURL=xpl-input.js.map