@api-client/ui 0.0.5 → 0.0.7

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 (323) hide show
  1. package/demo/elements/http/http-assertions.html +3 -0
  2. package/demo/elements/http/http-assertions.ts +1 -1
  3. package/demo/elements/http/http-flows.html +23 -0
  4. package/demo/elements/http/http-flows.ts +92 -0
  5. package/demo/elements/http/index.html +3 -0
  6. package/demo/pages/http-project/main.ts +5 -6
  7. package/dist/define/dialog/delete-cookie-action-dialog.d.ts +10 -0
  8. package/dist/define/dialog/delete-cookie-action-dialog.d.ts.map +1 -0
  9. package/dist/define/dialog/delete-cookie-action-dialog.js +14 -0
  10. package/dist/define/dialog/delete-cookie-action-dialog.js.map +1 -0
  11. package/dist/define/dialog/set-cookie-action-dialog.d.ts +10 -0
  12. package/dist/define/dialog/set-cookie-action-dialog.d.ts.map +1 -0
  13. package/dist/define/dialog/set-cookie-action-dialog.js +14 -0
  14. package/dist/define/dialog/set-cookie-action-dialog.js.map +1 -0
  15. package/dist/define/http/http-assertions.d.ts +1 -1
  16. package/dist/define/http/http-assertions.d.ts.map +1 -1
  17. package/dist/define/http/http-assertions.js +3 -3
  18. package/dist/define/http/http-assertions.js.map +1 -1
  19. package/dist/define/http/http-flows.d.ts +10 -0
  20. package/dist/define/http/http-flows.d.ts.map +1 -0
  21. package/dist/define/http/http-flows.js +13 -0
  22. package/dist/define/http/http-flows.js.map +1 -0
  23. package/dist/define/ui/ui-divider.d.ts +4 -1
  24. package/dist/define/ui/ui-divider.d.ts.map +1 -1
  25. package/dist/define/ui/ui-divider.js +11 -2
  26. package/dist/define/ui/ui-divider.js.map +1 -1
  27. package/dist/elements/ApiElement.d.ts +4 -0
  28. package/dist/elements/ApiElement.d.ts.map +1 -1
  29. package/dist/elements/ApiElement.js +6 -0
  30. package/dist/elements/ApiElement.js.map +1 -1
  31. package/dist/elements/amf/ApiAuthorizationEditor.element.js +1 -1
  32. package/dist/elements/amf/ApiAuthorizationEditor.element.js.map +1 -1
  33. package/dist/elements/amf/ApiOperationDocument.element.d.ts.map +1 -1
  34. package/dist/elements/amf/ApiOperationDocument.element.js +2 -1
  35. package/dist/elements/amf/ApiOperationDocument.element.js.map +1 -1
  36. package/dist/elements/amf/ApiRequest.element.js +1 -1
  37. package/dist/elements/amf/ApiRequest.element.js.map +1 -1
  38. package/dist/elements/amf/ApiRequestEditor.element.d.ts +0 -1
  39. package/dist/elements/amf/ApiRequestEditor.element.d.ts.map +1 -1
  40. package/dist/elements/amf/ApiRequestEditor.element.js +0 -3
  41. package/dist/elements/amf/ApiRequestEditor.element.js.map +1 -1
  42. package/dist/elements/authorization/ui/Authorization.d.ts +2 -1
  43. package/dist/elements/authorization/ui/Authorization.d.ts.map +1 -1
  44. package/dist/elements/authorization/ui/Authorization.js +0 -3
  45. package/dist/elements/authorization/ui/Authorization.js.map +1 -1
  46. package/dist/elements/dialog/DeleteCookieAction.element.d.ts +20 -0
  47. package/dist/elements/dialog/DeleteCookieAction.element.d.ts.map +1 -0
  48. package/dist/elements/dialog/DeleteCookieAction.element.js +93 -0
  49. package/dist/elements/dialog/DeleteCookieAction.element.js.map +1 -0
  50. package/dist/elements/dialog/DeleteCookieAction.styles.d.ts +3 -0
  51. package/dist/elements/dialog/DeleteCookieAction.styles.d.ts.map +1 -0
  52. package/dist/elements/dialog/DeleteCookieAction.styles.js +13 -0
  53. package/dist/elements/dialog/DeleteCookieAction.styles.js.map +1 -0
  54. package/dist/elements/dialog/Rename.d.ts +7 -6
  55. package/dist/elements/dialog/Rename.d.ts.map +1 -1
  56. package/dist/elements/dialog/Rename.js +7 -6
  57. package/dist/elements/dialog/Rename.js.map +1 -1
  58. package/dist/elements/dialog/SetCookieAction.element.d.ts +22 -0
  59. package/dist/elements/dialog/SetCookieAction.element.d.ts.map +1 -0
  60. package/dist/elements/dialog/SetCookieAction.element.js +173 -0
  61. package/dist/elements/dialog/SetCookieAction.element.js.map +1 -0
  62. package/dist/elements/environment/EnvironmentEditor.d.ts +24 -3
  63. package/dist/elements/environment/EnvironmentEditor.d.ts.map +1 -1
  64. package/dist/elements/environment/EnvironmentEditor.js +69 -23
  65. package/dist/elements/environment/EnvironmentEditor.js.map +1 -1
  66. package/dist/elements/environment/EnvironmentEditor.styles.d.ts.map +1 -1
  67. package/dist/elements/environment/EnvironmentEditor.styles.js +5 -0
  68. package/dist/elements/environment/EnvironmentEditor.styles.js.map +1 -1
  69. package/dist/elements/environment/ServerEditor.d.ts +3 -3
  70. package/dist/elements/environment/ServerEditor.d.ts.map +1 -1
  71. package/dist/elements/environment/ServerEditor.js +3 -6
  72. package/dist/elements/environment/ServerEditor.js.map +1 -1
  73. package/dist/elements/environment/VariablesEditor.d.ts +0 -1
  74. package/dist/elements/environment/VariablesEditor.d.ts.map +1 -1
  75. package/dist/elements/environment/VariablesEditor.js +3 -6
  76. package/dist/elements/environment/VariablesEditor.js.map +1 -1
  77. package/dist/elements/highlight/Prism.styles.d.ts.map +1 -1
  78. package/dist/elements/highlight/Prism.styles.js +12 -5
  79. package/dist/elements/highlight/Prism.styles.js.map +1 -1
  80. package/dist/elements/http/BodyEditor.d.ts +0 -4
  81. package/dist/elements/http/BodyEditor.d.ts.map +1 -1
  82. package/dist/elements/http/BodyEditor.js +10 -16
  83. package/dist/elements/http/BodyEditor.js.map +1 -1
  84. package/dist/elements/http/BodyMultipartEditor.d.ts +3 -16
  85. package/dist/elements/http/BodyMultipartEditor.d.ts.map +1 -1
  86. package/dist/elements/http/BodyMultipartEditor.js +3 -19
  87. package/dist/elements/http/BodyMultipartEditor.js.map +1 -1
  88. package/dist/elements/http/BodyTextEditor.d.ts +0 -1
  89. package/dist/elements/http/BodyTextEditor.d.ts.map +1 -1
  90. package/dist/elements/http/BodyTextEditor.js +0 -3
  91. package/dist/elements/http/BodyTextEditor.js.map +1 -1
  92. package/dist/elements/http/BodyUrlEncodedEditor.d.ts +3 -3
  93. package/dist/elements/http/BodyUrlEncodedEditor.d.ts.map +1 -1
  94. package/dist/elements/http/BodyUrlEncodedEditor.js +3 -5
  95. package/dist/elements/http/BodyUrlEncodedEditor.js.map +1 -1
  96. package/dist/elements/http/HeadersForm.d.ts +0 -4
  97. package/dist/elements/http/HeadersForm.d.ts.map +1 -1
  98. package/dist/elements/http/HeadersForm.js +0 -6
  99. package/dist/elements/http/HeadersForm.js.map +1 -1
  100. package/dist/elements/http/HttpAssertions.element.d.ts +55 -0
  101. package/dist/elements/http/HttpAssertions.element.d.ts.map +1 -0
  102. package/dist/elements/http/HttpAssertions.element.js +264 -0
  103. package/dist/elements/http/HttpAssertions.element.js.map +1 -0
  104. package/dist/elements/http/HttpAssertions.styles.d.ts.map +1 -1
  105. package/dist/elements/http/HttpAssertions.styles.js +7 -156
  106. package/dist/elements/http/HttpAssertions.styles.js.map +1 -1
  107. package/dist/elements/http/HttpFlows.common.d.ts +3 -0
  108. package/dist/elements/http/HttpFlows.common.d.ts.map +1 -0
  109. package/dist/elements/http/HttpFlows.common.js +181 -0
  110. package/dist/elements/http/HttpFlows.common.js.map +1 -0
  111. package/dist/elements/http/HttpFlows.element.d.ts +97 -0
  112. package/dist/elements/http/HttpFlows.element.d.ts.map +1 -0
  113. package/dist/elements/http/HttpFlows.element.js +684 -0
  114. package/dist/elements/http/HttpFlows.element.js.map +1 -0
  115. package/dist/elements/http/HttpFlows.styles.d.ts +3 -0
  116. package/dist/elements/http/HttpFlows.styles.d.ts.map +1 -0
  117. package/dist/elements/http/HttpFlows.styles.js +28 -0
  118. package/dist/elements/http/HttpFlows.styles.js.map +1 -0
  119. package/dist/elements/http/HttpFlowsUi.d.ts +172 -0
  120. package/dist/elements/http/HttpFlowsUi.d.ts.map +1 -0
  121. package/dist/elements/http/HttpFlowsUi.js +1256 -0
  122. package/dist/elements/http/HttpFlowsUi.js.map +1 -0
  123. package/dist/elements/http/RequestConfigElement.d.ts +0 -1
  124. package/dist/elements/http/RequestConfigElement.d.ts.map +1 -1
  125. package/dist/elements/http/RequestConfigElement.js +8 -11
  126. package/dist/elements/http/RequestConfigElement.js.map +1 -1
  127. package/dist/elements/http/RequestEditor.d.ts +10 -10
  128. package/dist/elements/http/RequestEditor.d.ts.map +1 -1
  129. package/dist/elements/http/RequestEditor.js +62 -23
  130. package/dist/elements/http/RequestEditor.js.map +1 -1
  131. package/dist/elements/http/UrlInput.d.ts +3 -3
  132. package/dist/elements/http/UrlInput.d.ts.map +1 -1
  133. package/dist/elements/http/UrlInput.js +2 -2
  134. package/dist/elements/http/UrlInput.js.map +1 -1
  135. package/dist/elements/http/UrlParamsForm.d.ts +0 -1
  136. package/dist/elements/http/UrlParamsForm.d.ts.map +1 -1
  137. package/dist/elements/http/UrlParamsForm.js +0 -3
  138. package/dist/elements/http/UrlParamsForm.js.map +1 -1
  139. package/dist/elements/layout/SplitView.styles.d.ts.map +1 -1
  140. package/dist/elements/layout/SplitView.styles.js +1 -0
  141. package/dist/elements/layout/SplitView.styles.js.map +1 -1
  142. package/dist/elements/navigation/AppNavigationItem.styles.d.ts.map +1 -1
  143. package/dist/elements/navigation/AppNavigationItem.styles.js +2 -0
  144. package/dist/elements/navigation/AppNavigationItem.styles.js.map +1 -1
  145. package/dist/elements/project/HttpProjectRequest.d.ts +2 -1
  146. package/dist/elements/project/HttpProjectRequest.d.ts.map +1 -1
  147. package/dist/elements/project/HttpProjectRequest.js +14 -5
  148. package/dist/elements/project/HttpProjectRequest.js.map +1 -1
  149. package/dist/elements/project/ProjectRunner.d.ts +0 -1
  150. package/dist/elements/project/ProjectRunner.d.ts.map +1 -1
  151. package/dist/elements/project/ProjectRunner.js +1 -4
  152. package/dist/elements/project/ProjectRunner.js.map +1 -1
  153. package/dist/elements/schema-design/AssociationFormElement.d.ts +0 -1
  154. package/dist/elements/schema-design/AssociationFormElement.d.ts.map +1 -1
  155. package/dist/elements/schema-design/AssociationFormElement.js +2 -5
  156. package/dist/elements/schema-design/AssociationFormElement.js.map +1 -1
  157. package/dist/elements/schema-design/DataEntityEditorElement.d.ts +2 -2
  158. package/dist/elements/schema-design/DataEntityEditorElement.d.ts.map +1 -1
  159. package/dist/elements/schema-design/DataEntityEditorElement.js +5 -5
  160. package/dist/elements/schema-design/DataEntityEditorElement.js.map +1 -1
  161. package/dist/elements/schema-design/DataSchemaDocument.d.ts +0 -1
  162. package/dist/elements/schema-design/DataSchemaDocument.d.ts.map +1 -1
  163. package/dist/elements/schema-design/DataSchemaDocument.js +4 -7
  164. package/dist/elements/schema-design/DataSchemaDocument.js.map +1 -1
  165. package/dist/elements/schema-design/EntityFormElement.d.ts +0 -1
  166. package/dist/elements/schema-design/EntityFormElement.d.ts.map +1 -1
  167. package/dist/elements/schema-design/EntityFormElement.js +4 -7
  168. package/dist/elements/schema-design/EntityFormElement.js.map +1 -1
  169. package/dist/elements/schema-design/PropertyFormElement.d.ts +1 -2
  170. package/dist/elements/schema-design/PropertyFormElement.d.ts.map +1 -1
  171. package/dist/elements/schema-design/PropertyFormElement.js +8 -11
  172. package/dist/elements/schema-design/PropertyFormElement.js.map +1 -1
  173. package/dist/pages/ApplicationScreen.d.ts +1 -1
  174. package/dist/pages/ApplicationScreen.d.ts.map +1 -1
  175. package/dist/pages/ApplicationScreen.js +1 -1
  176. package/dist/pages/ApplicationScreen.js.map +1 -1
  177. package/dist/pages/api-client/ApiClient.styles.d.ts.map +1 -1
  178. package/dist/pages/api-client/ApiClient.styles.js +22 -3
  179. package/dist/pages/api-client/ApiClient.styles.js.map +1 -1
  180. package/dist/pages/api-client/Authenticate.screen.d.ts +2 -0
  181. package/dist/pages/api-client/Authenticate.screen.d.ts.map +1 -1
  182. package/dist/pages/api-client/Authenticate.screen.js +19 -3
  183. package/dist/pages/api-client/Authenticate.screen.js.map +1 -1
  184. package/dist/pages/api-client/StoreConfig.screen.d.ts.map +1 -1
  185. package/dist/pages/api-client/StoreConfig.screen.js +4 -2
  186. package/dist/pages/api-client/StoreConfig.screen.js.map +1 -1
  187. package/dist/pages/api-client/StoreConfig.styles.d.ts.map +1 -1
  188. package/dist/pages/api-client/StoreConfig.styles.js +5 -0
  189. package/dist/pages/api-client/StoreConfig.styles.js.map +1 -1
  190. package/dist/pages/api-client/pages/Files.page.d.ts +1 -0
  191. package/dist/pages/api-client/pages/Files.page.d.ts.map +1 -1
  192. package/dist/pages/api-client/pages/Files.page.js +2 -1
  193. package/dist/pages/api-client/pages/Files.page.js.map +1 -1
  194. package/dist/pages/http-project/HttpProject.screen.d.ts +0 -8
  195. package/dist/pages/http-project/HttpProject.screen.d.ts.map +1 -1
  196. package/dist/pages/http-project/HttpProject.screen.js +14 -15
  197. package/dist/pages/http-project/HttpProject.screen.js.map +1 -1
  198. package/dist/pages/http-project/types.d.ts +8 -6
  199. package/dist/pages/http-project/types.d.ts.map +1 -1
  200. package/dist/pages/http-project/types.js.map +1 -1
  201. package/dist/styles/m3/surface.module.d.ts.map +1 -1
  202. package/dist/styles/m3/surface.module.js +11 -27
  203. package/dist/styles/m3/surface.module.js.map +1 -1
  204. package/dist/ui/UiElement.d.ts +4 -0
  205. package/dist/ui/UiElement.d.ts.map +1 -1
  206. package/dist/ui/UiElement.js +6 -0
  207. package/dist/ui/UiElement.js.map +1 -1
  208. package/dist/ui/button/SegmentedButton.styles.d.ts.map +1 -1
  209. package/dist/ui/button/SegmentedButton.styles.js +3 -1
  210. package/dist/ui/button/SegmentedButton.styles.js.map +1 -1
  211. package/dist/ui/dialog/UiDialog.d.ts +3 -0
  212. package/dist/ui/dialog/UiDialog.d.ts.map +1 -1
  213. package/dist/ui/dialog/UiDialog.js +3 -0
  214. package/dist/ui/dialog/UiDialog.js.map +1 -1
  215. package/dist/ui/effects/ripple.d.ts.map +1 -1
  216. package/dist/ui/effects/ripple.js +5 -1
  217. package/dist/ui/effects/ripple.js.map +1 -1
  218. package/dist/ui/icons/Icons.d.ts +3 -2
  219. package/dist/ui/icons/Icons.d.ts.map +1 -1
  220. package/dist/ui/icons/Icons.js +2 -1
  221. package/dist/ui/icons/Icons.js.map +1 -1
  222. package/dist/ui/input/CheckedElement.d.ts +1 -1
  223. package/dist/ui/input/CheckedElement.d.ts.map +1 -1
  224. package/dist/ui/input/CheckedElement.js +3 -3
  225. package/dist/ui/input/CheckedElement.js.map +1 -1
  226. package/dist/ui/input/Input.js +1 -1
  227. package/dist/ui/input/Input.js.map +1 -1
  228. package/dist/ui/list/{DividerElement.d.ts → UiDivider.element.d.ts} +6 -6
  229. package/dist/ui/list/UiDivider.element.d.ts.map +1 -0
  230. package/dist/ui/list/UiDivider.element.js +39 -0
  231. package/dist/ui/list/UiDivider.element.js.map +1 -0
  232. package/dist/ui/list/UiDivider.styles.d.ts +3 -0
  233. package/dist/ui/list/UiDivider.styles.d.ts.map +1 -0
  234. package/dist/ui/list/UiDivider.styles.js +49 -0
  235. package/dist/ui/list/UiDivider.styles.js.map +1 -0
  236. package/dist/ui/tabs/UiTabs.d.ts +13 -1
  237. package/dist/ui/tabs/UiTabs.d.ts.map +1 -1
  238. package/dist/ui/tabs/UiTabs.js +42 -13
  239. package/dist/ui/tabs/UiTabs.js.map +1 -1
  240. package/package.json +1 -1
  241. package/src/define/dialog/delete-cookie-action-dialog.ts +16 -0
  242. package/src/define/dialog/set-cookie-action-dialog.ts +16 -0
  243. package/src/define/http/http-assertions.ts +3 -3
  244. package/src/define/http/http-flows.ts +15 -0
  245. package/src/define/ui/ui-divider.ts +7 -2
  246. package/src/elements/ApiElement.ts +7 -0
  247. package/src/elements/amf/ApiAuthorizationEditor.element.ts +1 -1
  248. package/src/elements/amf/ApiOperationDocument.element.ts +2 -1
  249. package/src/elements/amf/ApiRequest.element.ts +1 -1
  250. package/src/elements/amf/ApiRequestEditor.element.ts +0 -4
  251. package/src/elements/authorization/ui/Authorization.ts +3 -5
  252. package/src/elements/dialog/DeleteCookieAction.element.ts +100 -0
  253. package/src/elements/dialog/DeleteCookieAction.styles.ts +14 -0
  254. package/src/elements/dialog/Rename.ts +8 -7
  255. package/src/elements/dialog/SetCookieAction.element.ts +183 -0
  256. package/src/elements/environment/EnvironmentEditor.styles.ts +5 -0
  257. package/src/elements/environment/EnvironmentEditor.ts +81 -22
  258. package/src/elements/environment/ServerEditor.ts +4 -8
  259. package/src/elements/environment/VariablesEditor.ts +3 -7
  260. package/src/elements/highlight/Prism.styles.ts +12 -5
  261. package/src/elements/http/BodyEditor.ts +10 -17
  262. package/src/elements/http/BodyMultipartEditor.ts +3 -20
  263. package/src/elements/http/BodyTextEditor.ts +0 -4
  264. package/src/elements/http/BodyUrlEncodedEditor.ts +5 -8
  265. package/src/elements/http/HeadersForm.ts +2 -9
  266. package/src/elements/http/HttpAssertions.element.ts +286 -0
  267. package/src/elements/http/HttpAssertions.styles.ts +7 -156
  268. package/src/elements/http/HttpFlows.common.ts +181 -0
  269. package/src/elements/http/HttpFlows.element.ts +722 -0
  270. package/src/elements/http/HttpFlows.styles.ts +29 -0
  271. package/src/elements/http/HttpFlowsUi.ts +1327 -0
  272. package/src/elements/http/RequestConfigElement.ts +10 -14
  273. package/src/elements/http/RequestEditor.ts +77 -35
  274. package/src/elements/http/UrlInput.ts +6 -6
  275. package/src/elements/http/UrlParamsForm.ts +2 -6
  276. package/src/elements/layout/SplitView.styles.ts +1 -0
  277. package/src/elements/navigation/AppNavigationItem.styles.ts +2 -0
  278. package/src/elements/project/HttpProjectRequest.ts +16 -5
  279. package/src/elements/project/ProjectRunner.ts +3 -7
  280. package/src/elements/schema-design/AssociationFormElement.ts +4 -8
  281. package/src/elements/schema-design/DataEntityEditorElement.ts +8 -8
  282. package/src/elements/schema-design/DataSchemaDocument.ts +5 -9
  283. package/src/elements/schema-design/EntityFormElement.ts +6 -10
  284. package/src/elements/schema-design/PropertyFormElement.ts +11 -15
  285. package/src/pages/ApplicationScreen.ts +1 -1
  286. package/src/pages/api-client/ApiClient.styles.ts +22 -3
  287. package/src/pages/api-client/Authenticate.screen.ts +19 -3
  288. package/src/pages/api-client/StoreConfig.screen.ts +4 -2
  289. package/src/pages/api-client/StoreConfig.styles.ts +5 -0
  290. package/src/pages/api-client/pages/Files.page.ts +2 -1
  291. package/src/pages/http-project/HttpProject.screen.ts +14 -26
  292. package/src/pages/http-project/types.ts +8 -6
  293. package/src/styles/m3/surface.module.ts +11 -27
  294. package/src/styles/m3/theme.css +36 -0
  295. package/src/styles/m3/tokens.css +11 -0
  296. package/src/ui/UiElement.ts +7 -0
  297. package/src/ui/button/SegmentedButton.styles.ts +3 -1
  298. package/src/ui/dialog/UiDialog.ts +3 -0
  299. package/src/ui/effects/ripple.ts +6 -1
  300. package/src/ui/icons/Icons.ts +3 -2
  301. package/src/ui/input/CheckedElement.ts +3 -3
  302. package/src/ui/input/Input.ts +1 -1
  303. package/src/ui/list/UiDivider.element.ts +41 -0
  304. package/src/ui/list/UiDivider.styles.ts +49 -0
  305. package/src/ui/tabs/UiTabs.ts +55 -13
  306. package/test/amf/authorization/OAuth2Method.test.ts +1 -1
  307. package/test/elements/http/HttpAssertions.test.ts +5 -6
  308. package/test/elements/http/HttpFlows.test.ts +485 -0
  309. package/dist/elements/http/HttpAssertions.d.ts +0 -114
  310. package/dist/elements/http/HttpAssertions.d.ts.map +0 -1
  311. package/dist/elements/http/HttpAssertions.js +0 -1146
  312. package/dist/elements/http/HttpAssertions.js.map +0 -1
  313. package/dist/elements/http/internals.d.ts +0 -150
  314. package/dist/elements/http/internals.d.ts.map +0 -1
  315. package/dist/elements/http/internals.js +0 -150
  316. package/dist/elements/http/internals.js.map +0 -1
  317. package/dist/ui/list/DividerElement.d.ts.map +0 -1
  318. package/dist/ui/list/DividerElement.js +0 -82
  319. package/dist/ui/list/DividerElement.js.map +0 -1
  320. package/src/elements/http/HttpAssertions.ts +0 -1187
  321. package/src/elements/http/internals.ts +0 -151
  322. package/src/http-client/docs/Files.md +0 -28
  323. package/src/ui/list/DividerElement.ts +0 -84
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/ui/input/Input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkC,MAAM,KAAK,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AAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;wCAC/C;AAQ5B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;6CACxD;AAGxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;uCACpC;AAOxB;IAAR,KAAK,EAAE;gDAAqC;AAiBlB;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;mCAAiB","sourcesContent":["import { html, nothing, PropertyValues, TemplateResult } from \"lit\";\nimport { property, query, queryAssignedElements, state } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { SupportedAutocapitalize, SupportedAutocomplete, SupportedInputTypes } from \"../../types/input.js\";\nimport { ARIAAutoComplete, ARIAExpanded, ARIARole } from \"../../types/role.js\";\nimport { isDisabled, setDisabled } from \"../lib/disabled.js\";\nimport { UiElement } from \"../UiElement.js\";\nimport '../../define/ui/ui-icon-button.js';\nimport '../../define/ui/ui-icon.js';\n\n// export type SupportedInputTypes = \"text\" | \"search\" | \"tel\" | \"url\" | \"email\" | \"password\" | \n// \"datetime\" | \"date\" | \"month\" | \"week\" | \"time\" | \"datetime-local\" | \"number\" | \"color\" | \"file\";\n\nconst floatTypes = [\n 'date',\n 'color',\n 'datetime-local',\n 'file',\n 'month',\n 'time',\n 'week',\n];\n\n/**\n * @slot prefix - A slot in which to render prefixes of the input\n * @slot suffix - A slot in which to render suffixes of the input\n */\nexport default abstract class Input extends UiElement {\n #_userInteracted: boolean;\n\n // static override shadowRootOptions: ShadowRootInit = {mode: 'open', delegatesFocus: true};\n\n static get formAssociated(): boolean {\n return true;\n }\n\n #_internals = this.attachInternals();\n\n get form(): HTMLFormElement | null {\n return this.#_internals && this.#_internals.form;\n }\n\n /**\n * @attribute\n */\n @property({type: String, reflect: true}) type: SupportedInputTypes;\n\n /**\n * Disables the input.\n * @attribute\n */\n get disabled(): boolean {\n return isDisabled(this);\n }\n\n @property({ reflect: true, type: Boolean })\n set disabled(value: boolean) {\n const old = isDisabled(this);\n setDisabled(this, value);\n this.requestUpdate('disabled', old);\n this._updateFormValue();\n if (value) {\n this.dataset.tabindex = this.getAttribute('tabindex') || '0';\n this.removeAttribute('tabindex');\n } else {\n const index = this.dataset.tabindex || '0';\n this.setAttribute('tabindex', index);\n this.blur();\n }\n }\n\n /**\n * The name of the form control, submitted as a pair with the control's value as part of the form data.\n * @attribute\n */\n @property({ type: String }) name?: string;\n\n /**\n * When a form is submitted, only checkboxes which are currently checked are submitted to the server, \n * and the reported value is the `value` of the value attribute. \n * If the `value` is not otherwise specified, it is the string `on` by default. \n * @attribute\n */\n @property({ type: String }) value = '';\n\n #_required?: boolean;\n\n /**\n * Set to true to mark the input element as required. \n * @attribute\n */\n @property({ reflect: true, type: Boolean })\n get required(): boolean | undefined {\n return this.#_required;\n }\n\n set required(value: boolean | undefined) {\n const old = this.#_required;\n if (old === value) {\n return;\n }\n this.#_required = value;\n this.requestUpdate('required', 'old');\n this._updateFormValue();\n }\n\n /**\n * While the element can be easily styled with the `:valid` and `:invalid` pseudo classes\n * it also exposes an attribute to style the element as invalid. This attribute changes \n * when the element validation is performed.\n * \n * Calling `reportValidity()` will automatically update `invalid`.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) invalid?: boolean;\n\n /**\n * The error message that replaces supporting text when `error` is true. If\n * `errorText` is an empty string, then the supporting text will continue to\n * show.\n *\n * Calling `reportValidity()` will automatically update `errorText` to the\n * native `validationMessage`.\n * @attribute\n */\n @property({ type: String }) invalidText = '';\n\n /**\n * The label to be rendered with the input.\n * @attribute\n */\n @property({ type: String }) label?: string;\n\n /**\n * Whether or not the text field has a leading icon. Used for SSR.\n * @attribute\n */\n @property({ type: Boolean }) hasPrefix = false;\n\n /**\n * Whether or not the text field has a trailing icon. Used for SSR.\n * @attribute\n */\n @property({ type: Boolean }) hasSuffix = false;\n\n /**\n * Conveys additional information below the text field, such as how it should\n * be used.\n * @attribute\n */\n @property({ type: String }) supportingText = '';\n\n /**\n * Override the input text CSS `direction`. Useful for RTL languages that use\n * LTR notation for fractions.\n * @attribute\n */\n @property({ type: String }) textDirection = '';\n\n /**\n * When set the label of the input disappears after input rather than float over the input.\n * @attribute\n */\n @property({ type: Boolean }) noFloating?: boolean;\n\n /**\n * Defines the greatest value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max\n * @attribute\n */\n @property({ type: String }) max = '';\n\n /**\n * The maximum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength\n * @attribute\n */\n @property({ type: Number }) maxLength = -1;\n\n /**\n * Defines the most negative value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min\n * @attribute\n */\n @property({ type: String }) min = '';\n\n /**\n * The minimum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength\n * @attribute\n */\n @property({ type: Number }) minLength = -1;\n\n /**\n * A regular expression that the text field's value must match to pass\n * constraint validation.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern\n * @attribute\n */\n @property({ type: String }) pattern = '';\n\n /**\n * @attribute\n */\n @property({ type: String }) placeholder = '';\n\n /**\n * Indicates whether or not a user should be able to edit the text field's\n * value.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly\n * \n * @attribute\n */\n @property({ type: Boolean, reflect: true }) readOnly = false;\n\n /**\n * Bind the `<input>`'s `autocomplete` property.\n * @default off\n * @attribute\n */\n @property({ type: String }) autocomplete: SupportedAutocomplete = 'off';\n\n /**\n * Binds this to the `<input>`'s `inputMode` property.\n * @attribute\n */\n @property({ type: String }) override inputMode = '';\n\n /**\n * Binds this to the `<input>`'s `autocapitalize` property.\n *\n * Possible values are:\n *\n * - `off` or `none`: No autocapitalization is applied (all letters default to lowercase)\n * - `on` or `sentences`: The first letter of each sentence defaults to a capital letter;\n * all other letters default to lowercase\n * - `words`: The first letter of each word defaults to a capital letter; all other letters default to lowercase\n * - `characters`: All letters should default to uppercase\n *\n * @default off\n * @attr\n */\n override autocapitalize: SupportedAutocapitalize = 'off';\n\n /**\n * Binds this to the `<input>`'s `autocorrect` property.\n * @default off\n * @attribute\n */\n @property({ type: String }) autocorrect = 'off';\n\n /**\n * Binds this to the `<input>`'s `results` property,\n * used with type=search.\n *\n * The maximum number of items that should be displayed in the\n * drop-down list of previous search queries. Safari only.\n * @attribute\n */\n @property({ type: Number }) results?: number;\n\n /**\n * Binds this to the `<input>`'s `accept` property,\n * used with type=file.\n * @attribute\n */\n @property({ type: String }) accept?: string;\n\n /**\n * Binds this to the`<input>`'s `multiple` property,\n * used with type=file.\n * @attribute\n */\n @property({ type: Boolean }) multiple?: boolean;\n\n /**\n * Binds this to the `<input>`'s `size` property.\n * @attribute\n */\n @property({ type: Number }) size?: number;\n\n protected pendingSetters = new Map<keyof HTMLInputElement, unknown>();\n\n private setNativeValue(key: keyof HTMLInputElement, value: unknown): void {\n const { input } = this;\n if (input) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (input as any)[key] = value;\n } else {\n this.pendingSetters.set(key, value);\n }\n }\n\n private getNativeValue(key: keyof HTMLInputElement): unknown {\n const { input } = this;\n if (input) {\n return input[key];\n }\n return this.pendingSetters.get(key) || null;\n }\n\n /**\n * Gets or sets the direction in which selection occurred.\n */\n get selectionDirection(): 'forward' | 'backward' | 'none' | null {\n return this.getNativeValue('selectionDirection') as 'forward' | 'backward' | 'none' | null;\n }\n\n set selectionDirection(value: 'forward' | 'backward' | 'none' | null) {\n this.setNativeValue('selectionDirection', value);\n }\n\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n get selectionEnd(): number | null {\n return this.getNativeValue('selectionEnd') as number | null;\n }\n\n set selectionEnd(value: number | null) {\n this.setNativeValue('selectionEnd', value);\n }\n\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n get selectionStart(): number | null {\n return this.getNativeValue('selectionStart') as number | null;\n }\n\n set selectionStart(value: number | null) {\n this.setNativeValue('selectionStart', value);\n }\n\n /**\n * Returns or sets the element's step attribute, which works with min and max\n * to limit the increments at which a numeric or date-time value can be set.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step\n * @attribute\n */\n @property({ type: String }) step = '';\n\n /**\n * Returns the native validation error message that would be displayed upon\n * calling `reportValidity()`.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage\n */\n get validationMessage(): string {\n return this.getNativeValue('validationMessage') as string | null ?? '';\n }\n\n /**\n * Returns a ValidityState object that represents the validity states of the\n * text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity\n */\n get validity(): ValidityState {\n return this.getNativeValue('validity') as ValidityState | null ?? this.#_internals.validity;\n }\n\n /**\n * The text field's value as a number.\n */\n get valueAsNumber(): number {\n return this.getNativeValue('valueAsNumber') as number | null ?? 0;\n }\n \n set valueAsNumber(value: number) {\n this.setNativeValue('valueAsNumber', value);\n }\n\n /**\n * The text field's value as a Date.\n */\n get valueAsDate(): Date | null {\n return this.getNativeValue('valueAsDate') as Date | null;\n }\n\n set valueAsDate(value: Date | null) {\n this.setNativeValue('valueAsDate', value);\n }\n\n /**\n * Returns whether an element will successfully validate based on forms\n * validation rules and constraints.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate\n */\n get willValidate(): boolean {\n return this.getNativeValue('willValidate') as boolean | null ?? false;\n }\n\n /**\n * Returns true when the text field has been interacted with. Native\n * validation errors only display in response to user interactions.\n */\n @state() protected dirty = false;\n\n @state() protected focused = false;\n\n @query('.input') protected readonly input?: HTMLInputElement | null;\n\n @queryAssignedElements({ slot: 'prefix' }) private readonly prefixes!: Element[];\n\n @queryAssignedElements({ slot: 'suffix' }) private readonly suffixes!: Element[];\n\n /**\n * The validation message displayed from a native error via\n * `reportValidity()`.\n */\n @state() protected nativeErrorText = '';\n\n /**\n * Whether or not a native error has been reported via `reportValidity()`.\n */\n @state() protected nativeError = false;\n\n private readonly counterId = 'counter';\n\n private readonly supportingTextId = 'support';\n\n private readonly labelId = 'support';\n\n @property({ type: String, attribute: 'data-aria-autocomplete', noAccessor: true })\n override ariaAutoComplete: ARIAAutoComplete | null = null;\n\n @property({ type: String, attribute: 'data-aria-controls', noAccessor: true })\n ariaControls: string | null = null;\n\n @property({ type: String, attribute: 'data-aria-activedescendant', noAccessor: true })\n ariaActiveDescendant: string | null = null;\n\n @property({ type: String, attribute: 'data-aria-expanded', noAccessor: true })\n override ariaExpanded: ARIAExpanded | null = null;\n\n /**\n * The `aria-label` of the text field's input.\n */\n @property({ type: String, attribute: 'data-aria-label', noAccessor: true })\n override ariaLabel!: string;\n\n /**\n * The `aria-labelledby` of the text field's input.\n *\n * Note: currently only usable in SSR light DOM.\n */\n @property({ type: String, attribute: 'data-aria-labelledby', noAccessor: true })\n ariaLabelledBy!: string;\n\n @property({ type: String, attribute: 'data-role', noAccessor: true })\n dataRole: ARIARole | null = null;\n\n /**\n * When set to true, the error text's `role=\"alert\"` will be removed, then\n * re-added after an animation frame. This will re-announce an error message\n * to screen readers.\n */\n @state() protected refreshErrorAlert = false;\n\n /** \n * When set is shows password in the `password` input.\n * This is private so the password can be viewed only through user interaction.\n */\n #showPassword = false;\n\n protected removingTabindex = false;\n\n get files(): FileList | null {\n return this.getNativeValue('files') as FileList | null;\n }\n\n /**\n * When set it adds a `<datalist>` element to the input.\n */\n @property({ type: Array }) list?: string[];\n\n constructor() {\n super();\n this.type = 'text';\n this.#_userInteracted = false;\n this.actionController.cancelKeyboardEvents = false;\n this.addEventListener('click', this.handleClick.bind(this));\n this.addEventListener('focus', this.handleFocus.bind(this));\n this.addEventListener('blur', this.handleBlur.bind(this));\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n if (!this.hasAttribute('tabindex') && !this.disabled) {\n this.setAttribute('tabindex', '0');\n }\n this.handleSlotChange();\n }\n\n /**\n * When form-associated custom elements are supported in the browser it\n * is called when the form has been reset\n */\n formResetCallback(): void {\n this.value = '';\n }\n\n /**\n * When form-associated custom elements are supported in the browser it\n * is called when the form state has been restored\n *\n * @param formState Restored value\n */\n formStateRestoreCallback(formState?: string): void {\n this.value = formState ?? '';\n }\n\n protected override updated(changedProperties: PropertyValues): void {\n super.updated(changedProperties);\n if (changedProperties.has('value')) {\n this._updateFormValue();\n }\n if (this.refreshErrorAlert) {\n // The past render cycle removed the role=\"alert\" from the error message.\n // Re-add it after an animation frame to re-announce the error.\n requestAnimationFrame(() => {\n this.refreshErrorAlert = false;\n });\n }\n }\n\n protected _updateFormValue(): void {\n const { value = '', disabled } = this;\n if (!value || disabled) {\n this.#_internals.setFormValue(null);\n } else {\n this.#_internals.setFormValue(value);\n }\n this._updateValidationState();\n }\n\n protected _updateValidationState(): void {\n const { input } = this;\n if (!input) {\n return;\n }\n const { validationMessage, validity } = input;\n if (!validity.valid) {\n this.#_internals.setValidity({\n valueMissing: validity.valueMissing,\n badInput: validity.badInput,\n patternMismatch: validity.patternMismatch,\n rangeOverflow: validity.rangeOverflow,\n rangeUnderflow: validity.rangeUnderflow,\n stepMismatch: validity.stepMismatch,\n tooLong: validity.tooLong,\n tooShort: validity.tooShort,\n typeMismatch: validity.typeMismatch,\n customError: validity.customError,\n }, validationMessage);\n return;\n }\n\n this.#_internals.setValidity({});\n }\n\n protected invalidHandler(e: Event): void {\n this.retargetEvent(e);\n if (!this.#_userInteracted) {\n return;\n }\n this.invalid = true;\n }\n\n protected handleSlotChange(): void {\n this.hasPrefix = this.prefixes.length > 0;\n this.hasSuffix = this.suffixes.length > 0;\n }\n\n protected getInputValue(): string {\n return this.value || '';\n }\n\n /**\n * Checks the text field's native validation and returns whether or not the\n * element is valid.\n *\n * If invalid, this method will dispatch the `invalid` event.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity\n *\n * @return true if the text field is valid, or false if not.\n */\n checkValidity(): boolean {\n this.#_userInteracted = true;\n const { valid } = this.checkValidityAndDispatch();\n this.invalid = !valid;\n return valid;\n }\n\n /**\n * Focuses the text field's input text.\n */\n override focus(): void {\n if (this.disabled || this.matches(':focus-within')) {\n return;\n }\n this.input?.focus();\n }\n\n /**\n * Unfocuses the text field.\n */\n override blur(): void {\n this.input?.blur();\n }\n\n /**\n * Checks the text field's native validation and returns whether or not the\n * element is valid.\n *\n * If invalid, this method will dispatch the `invalid` event.\n *\n * This method will display or clear an error text message equal to the text\n * field's `validationMessage`, unless the invalid event is canceled.\n *\n * Use `setCustomValidity()` to customize the `validationMessage`.\n *\n * This method can also be used to re-announce error messages to screen\n * readers.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity\n *\n * @return true if the text field is valid, or false if not.\n */\n reportValidity(): boolean {\n this.#_userInteracted = true;\n const { valid, canceled } = this.checkValidityAndDispatch();\n this._updateValidationState();\n if (!canceled) {\n this.invalid = !valid;\n const prevMessage = this.getErrorText();\n this.nativeError = !valid;\n this.nativeErrorText = this.validationMessage;\n\n const needsRefresh = this.shouldErrorAnnounce() && prevMessage === this.getErrorText();\n if (needsRefresh) {\n this.refreshErrorAlert = true;\n }\n }\n\n return valid;\n }\n\n protected shouldErrorAnnounce(): boolean {\n // Announce if there is an error and error text visible.\n // If refreshErrorAlert is true, do not announce. This will remove the\n // role=\"alert\" attribute. Another render cycle will happen after an\n // animation frame to re-add the role.\n return this.getError() && !!this.getErrorText() && !this.refreshErrorAlert;\n }\n\n protected getErrorText(): string {\n return this.invalid ? this.invalidText : this.nativeErrorText;\n }\n\n /**\n * Selects all the text in the text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select\n */\n select(): void {\n this.input?.select();\n }\n\n /**\n * Sets the text field's native validation error message. This is used to\n * customize `validationMessage`.\n *\n * When the error is not an empty string, the text field is considered invalid\n * and `validity.customError` will be true.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity\n *\n * @param error The error message to display.\n */\n setCustomValidity(error: string): void {\n this.input?.setCustomValidity(error);\n }\n\n /**\n * Replaces a range of text with a new string.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText\n */\n setRangeText(replacement: string): void;\n\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n\n setRangeText(...args: unknown[]): void {\n const { input } = this;\n if (!input) {\n return;\n }\n // Calling setRangeText with 1 vs 3-4 arguments has different behavior.\n // Use spread syntax and type casting to ensure correct usage.\n input.setRangeText(...args as Parameters<HTMLInputElement['setRangeText']>);\n this.value = input.value;\n }\n\n /**\n * Sets the start and end positions of a selection in the text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n *\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: 'forward' | 'backward' | 'none'): void {\n this.input?.setSelectionRange(start, end, direction);\n }\n\n /**\n * Decrements the value of a numeric type text field by `step` or `n` `step`\n * number of times.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown\n *\n * @param stepDecrement The number of steps to decrement, defaults to 1.\n */\n stepDown(stepDecrement?: number): void {\n const { input } = this;\n if (!input) {\n return;\n }\n input.stepDown(stepDecrement);\n this.value = input.value;\n }\n\n /**\n * Increments the value of a numeric type text field by `step` or `n` `step`\n * number of times.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp\n *\n * @param stepIncrement The number of steps to increment, defaults to 1.\n */\n stepUp(stepIncrement?: number): void {\n const { input } = this;\n if (!input) {\n return;\n }\n input.stepUp(stepIncrement);\n this.value = input.value;\n }\n\n /**\n * Reset the text field to its default value.\n */\n reset(): void {\n this.dirty = false;\n this.value = '';\n }\n\n override handleClick(): void {\n this.focus();\n }\n\n protected handleFocus(): void {\n const { input } = this;\n if (this.disabled || !input) {\n return;\n }\n this.focused = true;\n this.#_userInteracted = true;\n this.removingTabindex = true;\n // Note, the input is automatically focused when form is being submitted and\n // it won't pass validation. In this case the form will throw an error \n // as the input is not focusable. In overall, this still works with forms and validation.\n this.dataset.tabindex = this.getAttribute('tabindex') || '0';\n this.removeAttribute('tabindex');\n input.focus();\n setTimeout(() => {\n this.removingTabindex = false;\n }, 1);\n }\n\n protected handleBlur(): void {\n if (this.matches(':focus-within') || this.removingTabindex) {\n // Changing focus to another child within the text field, like a button\n return;\n }\n this.focused = false;\n const index = this.dataset.tabindex || '0';\n delete this.dataset.tabindex;\n this.setAttribute('tabindex', index);\n }\n\n private checkValidityAndDispatch(): { valid: boolean, canceled: boolean } {\n const { input } = this;\n const valid = input?.checkValidity() ?? true;\n let canceled = false;\n if (!valid) {\n canceled = !this.dispatchEvent(new Event('invalid', { cancelable: true }));\n }\n return { valid, canceled };\n }\n\n /**\n * @returns `true` when the label is in resting state.\n */\n protected labelResting(): boolean {\n const { value } = this;\n if (!!value || String(value) === '0') {\n return false;\n }\n if (floatTypes.includes(this.type || '')) {\n return false;\n }\n return !this.placeholder && !this.focused;\n }\n\n /**\n * @returns `true` when the label should be hidden\n */\n protected labelHidden(): boolean {\n const { noFloating } = this;\n return !this.labelResting() && !!noFloating;\n }\n\n protected renderLabelText(): string {\n const labelText = this.label ?? '';\n const optionalAsterisk = this.required && labelText ? '*' : '';\n return labelText + optionalAsterisk;\n }\n\n protected getSupportingText(): string {\n const errorText = this.getErrorText();\n return this.getError() && errorText ? errorText : this.supportingText;\n }\n\n protected getError(): boolean {\n return this.invalid || this.nativeError;\n }\n\n protected retargetEvent(event: Event): boolean {\n if (event.bubbles && (!this.shadowRoot || event.composed)) {\n event.stopPropagation();\n }\n\n const copy = Reflect.construct(event.constructor, [event.type, event]);\n const dispatched = this.dispatchEvent(copy);\n if (!dispatched) {\n event.preventDefault();\n }\n\n return dispatched;\n }\n\n protected handleInput(event: InputEvent): void {\n this.dirty = true;\n this.value = (event.target as HTMLInputElement).value;\n this.retargetEvent(event);\n this.reportValidity();\n }\n\n protected hasCounter(): boolean {\n return this.maxLength > -1;\n }\n\n protected getCounterText(): string {\n const { length } = (this.value || '');\n return `${length} / ${this.maxLength || 0}`;\n }\n\n protected getAriaDescribedBy(): string {\n const hasSupport = !!this.getSupportingText();\n const hasCounter = this.hasCounter();\n if (hasSupport) {\n return this.supportingTextId;\n }\n if (hasCounter) {\n return this.counterId;\n }\n return '';\n }\n\n #handlePasswordToggle(): void {\n this.#showPassword = !this.#showPassword;\n this.requestUpdate();\n }\n\n protected get effectiveType(): SupportedInputTypes {\n const { type } = this;\n if (type !== 'password') {\n return type;\n }\n const visible = this.#showPassword;\n return visible ? 'text' : 'password';\n }\n\n protected override render(): TemplateResult {\n const { pressed=false } = this;\n const containerClasses = classMap({\n surface: true,\n pressed,\n labelResting: this.labelResting(),\n labelHidden: this.labelHidden(),\n });\n return html`\n <div class=\"${containerClasses}\">\n <div class=\"container\"></div>\n <div class=\"content\">\n ${this.renderPrefix()}\n ${this.renderBody()}\n ${this.renderPasswordControl()}\n ${this.renderSuffix()}\n ${this.renderHighlight()}\n </div>\n </div>\n ${this.renderSupportingText()}\n ${this.renderDataList()}\n `;\n }\n\n protected renderPrefix(): TemplateResult {\n const classes = classMap({\n start: true,\n prefixed: this.hasPrefix,\n });\n return html`\n <div class=\"${classes}\">\n <slot name=\"prefix\" @slotchange=${this.handleSlotChange}></slot>\n </div>`;\n }\n\n protected renderSuffix(): TemplateResult {\n const classes = classMap({\n end: true,\n suffixed: this.hasSuffix,\n });\n return html`\n <div class=\"${classes}\">\n <slot name=\"suffix\" @slotchange=${this.handleSlotChange}></slot>\n </div>`;\n }\n\n protected renderBody(): TemplateResult {\n return html`\n <div class=\"body\">\n ${this.renderLabel()}\n ${this.renderInput()}\n </div>\n `;\n }\n\n protected renderLabel(): TemplateResult {\n const label = this.renderLabelText();\n if (!label) {\n return html``;\n }\n return html`\n <span class=\"label\" id=\"${this.labelId}\">${this.renderLabelText()}</span>\n `;\n }\n\n protected renderHighlight(): TemplateResult {\n return html`\n <span class=\"highlight\"></span>\n `;\n }\n\n protected abstract renderInput(): TemplateResult;\n\n protected renderSupportingText(): TemplateResult {\n return html`\n <span class=\"supporting-text\">\n ${this.renderSupportingTextValue()}\n ${this.renderCounter()}\n </span>\n `;\n }\n\n protected renderSupportingTextValue(): TemplateResult {\n const text = this.getSupportingText();\n if (!text) {\n return html``;\n }\n const shouldAlert = this.shouldErrorAnnounce();\n return html`\n <span \n class=\"supporting-text-start\" \n id=\"${this.supportingTextId}\" \n role=${ifDefined(shouldAlert ? 'alert' : undefined)}\n >\n ${text}\n </span>\n `;\n }\n\n protected renderCounter(): TemplateResult {\n if (!this.hasCounter()) {\n return html``;\n }\n // TODO: add aria-label and announcements\n return html`<span id=${this.counterId} class=\"supporting-text-end\">${this.getCounterText()}</span>`;\n }\n\n protected renderPasswordControl(): TemplateResult | typeof nothing {\n const { type } = this;\n if (type !== 'password') {\n return nothing;\n }\n const visible = this.#showPassword;\n const icon = visible ? 'visibilityOff' : 'visibility';\n return html`\n <ui-icon-button \n aria-label=\"Toggle password visibility\" \n @click=\"${this.#handlePasswordToggle}\"\n title=\"Shows or hides the password\"\n >\n <ui-icon icon=\"${icon}\"></ui-icon>\n </ui-icon-button>\n `;\n }\n\n protected renderDataList(): TemplateResult | typeof nothing {\n const { list } = this;\n if (!Array.isArray(list) || !list.length) {\n return nothing;\n }\n return html`\n <datalist id=\"input-list\">\n ${list.map(i => html`<option value=\"${i}\">`)}\n </datalist>\n `;\n }\n}\n"]}
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/ui/input/Input.ts"],"names":[],"mappings":";AAAA,OAA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EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;wCAC/C;AAQ5B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;6CACxD;AAGxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;uCACpC;AAOxB;IAAR,KAAK,EAAE;gDAAqC;AAiBlB;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;mCAAiB","sourcesContent":["import { html, nothing, PropertyValues, TemplateResult } from \"lit\";\nimport { property, query, queryAssignedElements, state } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { SupportedAutocapitalize, SupportedAutocomplete, SupportedInputTypes } from \"../../types/input.js\";\nimport { ARIAAutoComplete, ARIAExpanded, ARIARole } from \"../../types/role.js\";\nimport { isDisabled, setDisabled } from \"../lib/disabled.js\";\nimport { UiElement } from \"../UiElement.js\";\nimport '../../define/ui/ui-icon-button.js';\nimport '../../define/ui/ui-icon.js';\n\n// export type SupportedInputTypes = \"text\" | \"search\" | \"tel\" | \"url\" | \"email\" | \"password\" | \n// \"datetime\" | \"date\" | \"month\" | \"week\" | \"time\" | \"datetime-local\" | \"number\" | \"color\" | \"file\";\n\nconst floatTypes = [\n 'date',\n 'color',\n 'datetime-local',\n 'file',\n 'month',\n 'time',\n 'week',\n];\n\n/**\n * @slot prefix - A slot in which to render prefixes of the input\n * @slot suffix - A slot in which to render suffixes of the input\n */\nexport default abstract class Input extends UiElement {\n #_userInteracted: boolean;\n\n // static override shadowRootOptions: ShadowRootInit = {mode: 'open', delegatesFocus: true};\n\n static get formAssociated(): boolean {\n return true;\n }\n\n #_internals = this.attachInternals();\n\n get form(): HTMLFormElement | null {\n return this.#_internals && this.#_internals.form;\n }\n\n /**\n * @attribute\n */\n @property({type: String, reflect: true}) type: SupportedInputTypes;\n\n /**\n * Disables the input.\n * @attribute\n */\n get disabled(): boolean {\n return isDisabled(this);\n }\n\n @property({ reflect: true, type: Boolean })\n set disabled(value: boolean) {\n const old = isDisabled(this);\n setDisabled(this, value);\n this.requestUpdate('disabled', old);\n this._updateFormValue();\n if (value) {\n this.dataset.tabindex = this.getAttribute('tabindex') || '0';\n this.removeAttribute('tabindex');\n } else {\n const index = this.dataset.tabindex || '0';\n this.setAttribute('tabindex', index);\n this.blur();\n }\n }\n\n /**\n * The name of the form control, submitted as a pair with the control's value as part of the form data.\n * @attribute\n */\n @property({ type: String }) name?: string;\n\n /**\n * When a form is submitted, only checkboxes which are currently checked are submitted to the server, \n * and the reported value is the `value` of the value attribute. \n * If the `value` is not otherwise specified, it is the string `on` by default. \n * @attribute\n */\n @property({ type: String }) value = '';\n\n #_required?: boolean;\n\n /**\n * Set to true to mark the input element as required. \n * @attribute\n */\n @property({ reflect: true, type: Boolean })\n get required(): boolean | undefined {\n return this.#_required;\n }\n\n set required(value: boolean | undefined) {\n const old = this.#_required;\n if (old === value) {\n return;\n }\n this.#_required = value;\n this.requestUpdate('required', 'old');\n this._updateFormValue();\n }\n\n /**\n * While the element can be easily styled with the `:valid` and `:invalid` pseudo classes\n * it also exposes an attribute to style the element as invalid. This attribute changes \n * when the element validation is performed.\n * \n * Calling `reportValidity()` will automatically update `invalid`.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) invalid?: boolean;\n\n /**\n * The error message that replaces supporting text when `error` is true. If\n * `errorText` is an empty string, then the supporting text will continue to\n * show.\n *\n * Calling `reportValidity()` will automatically update `errorText` to the\n * native `validationMessage`.\n * @attribute\n */\n @property({ type: String }) invalidText = '';\n\n /**\n * The label to be rendered with the input.\n * @attribute\n */\n @property({ type: String }) label?: string;\n\n /**\n * Whether or not the text field has a leading icon. Used for SSR.\n * @attribute\n */\n @property({ type: Boolean }) hasPrefix = false;\n\n /**\n * Whether or not the text field has a trailing icon. Used for SSR.\n * @attribute\n */\n @property({ type: Boolean }) hasSuffix = false;\n\n /**\n * Conveys additional information below the text field, such as how it should\n * be used.\n * @attribute\n */\n @property({ type: String }) supportingText = '';\n\n /**\n * Override the input text CSS `direction`. Useful for RTL languages that use\n * LTR notation for fractions.\n * @attribute\n */\n @property({ type: String }) textDirection = '';\n\n /**\n * When set the label of the input disappears after input rather than float over the input.\n * @attribute\n */\n @property({ type: Boolean }) noFloating?: boolean;\n\n /**\n * Defines the greatest value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max\n * @attribute\n */\n @property({ type: String }) max = '';\n\n /**\n * The maximum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength\n * @attribute\n */\n @property({ type: Number }) maxLength = -1;\n\n /**\n * Defines the most negative value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min\n * @attribute\n */\n @property({ type: String }) min = '';\n\n /**\n * The minimum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength\n * @attribute\n */\n @property({ type: Number }) minLength = -1;\n\n /**\n * A regular expression that the text field's value must match to pass\n * constraint validation.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern\n * @attribute\n */\n @property({ type: String }) pattern = '';\n\n /**\n * @attribute\n */\n @property({ type: String }) placeholder = '';\n\n /**\n * Indicates whether or not a user should be able to edit the text field's\n * value.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly\n * \n * @attribute\n */\n @property({ type: Boolean, reflect: true }) readOnly = false;\n\n /**\n * Bind the `<input>`'s `autocomplete` property.\n * @default off\n * @attribute\n */\n @property({ type: String }) autocomplete: SupportedAutocomplete = 'off';\n\n /**\n * Binds this to the `<input>`'s `inputMode` property.\n * @attribute\n */\n @property({ type: String }) override inputMode = '';\n\n /**\n * Binds this to the `<input>`'s `autocapitalize` property.\n *\n * Possible values are:\n *\n * - `off` or `none`: No autocapitalization is applied (all letters default to lowercase)\n * - `on` or `sentences`: The first letter of each sentence defaults to a capital letter;\n * all other letters default to lowercase\n * - `words`: The first letter of each word defaults to a capital letter; all other letters default to lowercase\n * - `characters`: All letters should default to uppercase\n *\n * @default off\n * @attr\n */\n override autocapitalize: SupportedAutocapitalize = 'off';\n\n /**\n * Binds this to the `<input>`'s `autocorrect` property.\n * @default off\n * @attribute\n */\n @property({ type: String }) autocorrect = 'off';\n\n /**\n * Binds this to the `<input>`'s `results` property,\n * used with type=search.\n *\n * The maximum number of items that should be displayed in the\n * drop-down list of previous search queries. Safari only.\n * @attribute\n */\n @property({ type: Number }) results?: number;\n\n /**\n * Binds this to the `<input>`'s `accept` property,\n * used with type=file.\n * @attribute\n */\n @property({ type: String }) accept?: string;\n\n /**\n * Binds this to the`<input>`'s `multiple` property,\n * used with type=file.\n * @attribute\n */\n @property({ type: Boolean }) multiple?: boolean;\n\n /**\n * Binds this to the `<input>`'s `size` property.\n * @attribute\n */\n @property({ type: Number }) size?: number;\n\n protected pendingSetters = new Map<keyof HTMLInputElement, unknown>();\n\n private setNativeValue(key: keyof HTMLInputElement, value: unknown): void {\n const { input } = this;\n if (input) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (input as any)[key] = value;\n } else {\n this.pendingSetters.set(key, value);\n }\n }\n\n private getNativeValue(key: keyof HTMLInputElement): unknown {\n const { input } = this;\n if (input) {\n return input[key];\n }\n return this.pendingSetters.get(key) || null;\n }\n\n /**\n * Gets or sets the direction in which selection occurred.\n */\n get selectionDirection(): 'forward' | 'backward' | 'none' | null {\n return this.getNativeValue('selectionDirection') as 'forward' | 'backward' | 'none' | null;\n }\n\n set selectionDirection(value: 'forward' | 'backward' | 'none' | null) {\n this.setNativeValue('selectionDirection', value);\n }\n\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n get selectionEnd(): number | null {\n return this.getNativeValue('selectionEnd') as number | null;\n }\n\n set selectionEnd(value: number | null) {\n this.setNativeValue('selectionEnd', value);\n }\n\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n get selectionStart(): number | null {\n return this.getNativeValue('selectionStart') as number | null;\n }\n\n set selectionStart(value: number | null) {\n this.setNativeValue('selectionStart', value);\n }\n\n /**\n * Returns or sets the element's step attribute, which works with min and max\n * to limit the increments at which a numeric or date-time value can be set.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step\n * @attribute\n */\n @property({ type: String }) step = '';\n\n /**\n * Returns the native validation error message that would be displayed upon\n * calling `reportValidity()`.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage\n */\n get validationMessage(): string {\n return this.getNativeValue('validationMessage') as string | null ?? '';\n }\n\n /**\n * Returns a ValidityState object that represents the validity states of the\n * text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity\n */\n get validity(): ValidityState {\n return this.getNativeValue('validity') as ValidityState | null ?? this.#_internals.validity;\n }\n\n /**\n * The text field's value as a number.\n */\n get valueAsNumber(): number {\n return this.getNativeValue('valueAsNumber') as number | null ?? 0;\n }\n \n set valueAsNumber(value: number) {\n this.setNativeValue('valueAsNumber', value);\n }\n\n /**\n * The text field's value as a Date.\n */\n get valueAsDate(): Date | null {\n return this.getNativeValue('valueAsDate') as Date | null;\n }\n\n set valueAsDate(value: Date | null) {\n this.setNativeValue('valueAsDate', value);\n }\n\n /**\n * Returns whether an element will successfully validate based on forms\n * validation rules and constraints.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate\n */\n get willValidate(): boolean {\n return this.getNativeValue('willValidate') as boolean | null ?? false;\n }\n\n /**\n * Returns true when the text field has been interacted with. Native\n * validation errors only display in response to user interactions.\n */\n @state() protected dirty = false;\n\n @state() protected focused = false;\n\n @query('.input') protected readonly input?: HTMLInputElement | null;\n\n @queryAssignedElements({ slot: 'prefix' }) private readonly prefixes!: Element[];\n\n @queryAssignedElements({ slot: 'suffix' }) private readonly suffixes!: Element[];\n\n /**\n * The validation message displayed from a native error via\n * `reportValidity()`.\n */\n @state() protected nativeErrorText = '';\n\n /**\n * Whether or not a native error has been reported via `reportValidity()`.\n */\n @state() protected nativeError = false;\n\n private readonly counterId = 'counter';\n\n private readonly supportingTextId = 'support';\n\n private readonly labelId = 'support';\n\n @property({ type: String, attribute: 'data-aria-autocomplete', noAccessor: true })\n override ariaAutoComplete: ARIAAutoComplete | null = null;\n\n @property({ type: String, attribute: 'data-aria-controls', noAccessor: true })\n ariaControls: string | null = null;\n\n @property({ type: String, attribute: 'data-aria-activedescendant', noAccessor: true })\n ariaActiveDescendant: string | null = null;\n\n @property({ type: String, attribute: 'data-aria-expanded', noAccessor: true })\n override ariaExpanded: ARIAExpanded | null = null;\n\n /**\n * The `aria-label` of the text field's input.\n */\n @property({ type: String, attribute: 'data-aria-label', noAccessor: true })\n override ariaLabel!: string;\n\n /**\n * The `aria-labelledby` of the text field's input.\n *\n * Note: currently only usable in SSR light DOM.\n */\n @property({ type: String, attribute: 'data-aria-labelledby', noAccessor: true })\n ariaLabelledBy!: string;\n\n @property({ type: String, attribute: 'data-role', noAccessor: true })\n dataRole: ARIARole | null = null;\n\n /**\n * When set to true, the error text's `role=\"alert\"` will be removed, then\n * re-added after an animation frame. This will re-announce an error message\n * to screen readers.\n */\n @state() protected refreshErrorAlert = false;\n\n /** \n * When set is shows password in the `password` input.\n * This is private so the password can be viewed only through user interaction.\n */\n #showPassword = false;\n\n protected removingTabindex = false;\n\n get files(): FileList | null {\n return this.getNativeValue('files') as FileList | null;\n }\n\n /**\n * When set it adds a `<datalist>` element to the input.\n */\n @property({ type: Array }) list?: string[];\n\n constructor() {\n super();\n this.type = 'text';\n this.#_userInteracted = false;\n this.actionController.cancelKeyboardEvents = false;\n this.addEventListener('click', this.handleClick.bind(this));\n this.addEventListener('focus', this.handleFocus.bind(this));\n this.addEventListener('blur', this.handleBlur.bind(this));\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n if (!this.hasAttribute('tabindex') && !this.disabled) {\n this.setAttribute('tabindex', '0');\n }\n this.handleSlotChange();\n }\n\n /**\n * When form-associated custom elements are supported in the browser it\n * is called when the form has been reset\n */\n formResetCallback(): void {\n this.value = '';\n }\n\n /**\n * When form-associated custom elements are supported in the browser it\n * is called when the form state has been restored\n *\n * @param formState Restored value\n */\n formStateRestoreCallback(formState?: string): void {\n this.value = formState ?? '';\n }\n\n protected override updated(changedProperties: PropertyValues): void {\n super.updated(changedProperties);\n if (changedProperties.has('value')) {\n this._updateFormValue();\n }\n if (this.refreshErrorAlert) {\n // The past render cycle removed the role=\"alert\" from the error message.\n // Re-add it after an animation frame to re-announce the error.\n requestAnimationFrame(() => {\n this.refreshErrorAlert = false;\n });\n }\n }\n\n protected _updateFormValue(): void {\n const { value = '', disabled } = this;\n if (!value || disabled) {\n this.#_internals.setFormValue(null);\n } else {\n this.#_internals.setFormValue(value);\n }\n this._updateValidationState();\n }\n\n protected _updateValidationState(): void {\n const { input } = this;\n if (!input) {\n return;\n }\n const { validationMessage, validity } = input;\n if (!validity.valid) {\n this.#_internals.setValidity({\n valueMissing: validity.valueMissing,\n badInput: validity.badInput,\n patternMismatch: validity.patternMismatch,\n rangeOverflow: validity.rangeOverflow,\n rangeUnderflow: validity.rangeUnderflow,\n stepMismatch: validity.stepMismatch,\n tooLong: validity.tooLong,\n tooShort: validity.tooShort,\n typeMismatch: validity.typeMismatch,\n customError: validity.customError,\n }, validationMessage);\n return;\n }\n\n this.#_internals.setValidity({});\n }\n\n protected invalidHandler(e: Event): void {\n this.retargetEvent(e);\n if (!this.#_userInteracted) {\n return;\n }\n this.invalid = true;\n }\n\n protected handleSlotChange(): void {\n this.hasPrefix = this.prefixes.length > 0;\n this.hasSuffix = this.suffixes.length > 0;\n }\n\n protected getInputValue(): string {\n return this.value || '';\n }\n\n /**\n * Checks the text field's native validation and returns whether or not the\n * element is valid.\n *\n * If invalid, this method will dispatch the `invalid` event.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity\n *\n * @return true if the text field is valid, or false if not.\n */\n checkValidity(): boolean {\n this.#_userInteracted = true;\n const { valid } = this.checkValidityAndDispatch();\n this.invalid = !valid;\n return valid;\n }\n\n /**\n * Focuses the text field's input text.\n */\n override focus(): void {\n if (this.disabled || this.matches(':focus-within')) {\n return;\n }\n this.input?.focus();\n }\n\n /**\n * Unfocuses the text field.\n */\n override blur(): void {\n this.input?.blur();\n }\n\n /**\n * Checks the text field's native validation and returns whether or not the\n * element is valid.\n *\n * If invalid, this method will dispatch the `invalid` event.\n *\n * This method will display or clear an error text message equal to the text\n * field's `validationMessage`, unless the invalid event is canceled.\n *\n * Use `setCustomValidity()` to customize the `validationMessage`.\n *\n * This method can also be used to re-announce error messages to screen\n * readers.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity\n *\n * @return true if the text field is valid, or false if not.\n */\n reportValidity(): boolean {\n this.#_userInteracted = true;\n const { valid, canceled } = this.checkValidityAndDispatch();\n this._updateValidationState();\n if (!canceled) {\n this.invalid = !valid;\n const prevMessage = this.getErrorText();\n this.nativeError = !valid;\n this.nativeErrorText = this.validationMessage;\n\n const needsRefresh = this.shouldErrorAnnounce() && prevMessage === this.getErrorText();\n if (needsRefresh) {\n this.refreshErrorAlert = true;\n }\n }\n\n return valid;\n }\n\n protected shouldErrorAnnounce(): boolean {\n // Announce if there is an error and error text visible.\n // If refreshErrorAlert is true, do not announce. This will remove the\n // role=\"alert\" attribute. Another render cycle will happen after an\n // animation frame to re-add the role.\n return this.getError() && !!this.getErrorText() && !this.refreshErrorAlert;\n }\n\n protected getErrorText(): string {\n return this.invalid ? this.invalidText : this.nativeErrorText;\n }\n\n /**\n * Selects all the text in the text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select\n */\n select(): void {\n this.input?.select();\n }\n\n /**\n * Sets the text field's native validation error message. This is used to\n * customize `validationMessage`.\n *\n * When the error is not an empty string, the text field is considered invalid\n * and `validity.customError` will be true.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity\n *\n * @param error The error message to display.\n */\n setCustomValidity(error: string): void {\n this.input?.setCustomValidity(error);\n }\n\n /**\n * Replaces a range of text with a new string.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText\n */\n setRangeText(replacement: string): void;\n\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n\n setRangeText(...args: unknown[]): void {\n const { input } = this;\n if (!input) {\n return;\n }\n // Calling setRangeText with 1 vs 3-4 arguments has different behavior.\n // Use spread syntax and type casting to ensure correct usage.\n input.setRangeText(...args as Parameters<HTMLInputElement['setRangeText']>);\n this.value = input.value;\n }\n\n /**\n * Sets the start and end positions of a selection in the text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n *\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: 'forward' | 'backward' | 'none'): void {\n this.input?.setSelectionRange(start, end, direction);\n }\n\n /**\n * Decrements the value of a numeric type text field by `step` or `n` `step`\n * number of times.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown\n *\n * @param stepDecrement The number of steps to decrement, defaults to 1.\n */\n stepDown(stepDecrement?: number): void {\n const { input } = this;\n if (!input) {\n return;\n }\n input.stepDown(stepDecrement);\n this.value = input.value;\n }\n\n /**\n * Increments the value of a numeric type text field by `step` or `n` `step`\n * number of times.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp\n *\n * @param stepIncrement The number of steps to increment, defaults to 1.\n */\n stepUp(stepIncrement?: number): void {\n const { input } = this;\n if (!input) {\n return;\n }\n input.stepUp(stepIncrement);\n this.value = input.value;\n }\n\n /**\n * Reset the text field to its default value.\n */\n reset(): void {\n this.dirty = false;\n this.value = '';\n }\n\n override handleClick(): void {\n this.focus();\n }\n\n protected handleFocus(): void {\n const { input } = this;\n if (this.disabled || !input) {\n return;\n }\n this.focused = true;\n this.#_userInteracted = true;\n this.removingTabindex = true;\n // Note, the input is automatically focused when form is being submitted and\n // it won't pass validation. In this case the form will throw an error \n // as the input is not focusable. In overall, this still works with forms and validation.\n this.dataset.tabindex = this.getAttribute('tabindex') || '0';\n this.removeAttribute('tabindex');\n input.focus();\n setTimeout(() => {\n this.removingTabindex = false;\n }, 1);\n }\n\n protected handleBlur(): void {\n if (this.matches(':focus-within') || this.removingTabindex) {\n // Changing focus to another child within the text field, like a button\n return;\n }\n this.focused = false;\n const index = this.dataset.tabindex || '0';\n delete this.dataset.tabindex;\n this.setAttribute('tabindex', index);\n }\n\n private checkValidityAndDispatch(): { valid: boolean, canceled: boolean } {\n const { input } = this;\n const valid = input?.checkValidity() ?? true;\n let canceled = false;\n if (!valid) {\n canceled = !this.dispatchEvent(new Event('invalid', { cancelable: true }));\n }\n return { valid, canceled };\n }\n\n /**\n * @returns `true` when the label is in resting state.\n */\n protected labelResting(): boolean {\n const { value } = this;\n if (!!value || String(value) === '0') {\n return false;\n }\n if (floatTypes.includes(this.type || '')) {\n return false;\n }\n return !this.placeholder && !this.focused;\n }\n\n /**\n * @returns `true` when the label should be hidden\n */\n protected labelHidden(): boolean {\n const { noFloating } = this;\n return !this.labelResting() && !!noFloating;\n }\n\n protected renderLabelText(): string {\n const labelText = this.label ?? '';\n const optionalAsterisk = this.required && labelText ? '*' : '';\n return labelText + optionalAsterisk;\n }\n\n protected getSupportingText(): string {\n const errorText = this.getErrorText();\n return this.getError() && errorText ? errorText : this.supportingText;\n }\n\n protected getError(): boolean {\n return this.invalid || this.nativeError;\n }\n\n protected retargetEvent(event: Event): boolean {\n if (event.bubbles && (!this.shadowRoot || event.composed)) {\n event.stopPropagation();\n }\n\n const copy = Reflect.construct(event.constructor, [event.type, event]);\n const dispatched = this.dispatchEvent(copy);\n if (!dispatched) {\n event.preventDefault();\n }\n\n return dispatched;\n }\n\n protected handleInput(event: InputEvent): void {\n this.dirty = true;\n this.value = (event.target as HTMLInputElement).value;\n this.retargetEvent(event);\n this.reportValidity();\n }\n\n protected hasCounter(): boolean {\n return this.maxLength > -1;\n }\n\n protected getCounterText(): string {\n const { length } = (this.value || '');\n return `${length} / ${this.maxLength || 0}`;\n }\n\n protected getAriaDescribedBy(): string {\n const hasSupport = !!this.getSupportingText();\n const hasCounter = this.hasCounter();\n if (hasSupport) {\n return this.supportingTextId;\n }\n if (hasCounter) {\n return this.counterId;\n }\n return '';\n }\n\n #handlePasswordToggle(): void {\n this.#showPassword = !this.#showPassword;\n this.requestUpdate();\n }\n\n protected get effectiveType(): SupportedInputTypes {\n const { type } = this;\n if (type !== 'password') {\n return type;\n }\n const visible = this.#showPassword;\n return visible ? 'text' : 'password';\n }\n\n protected override render(): TemplateResult {\n const { pressed=false } = this;\n const containerClasses = classMap({\n surface: true,\n pressed,\n labelResting: this.labelResting(),\n labelHidden: this.labelHidden(),\n });\n return html`\n <div class=\"${containerClasses}\">\n <div class=\"container\"></div>\n <div class=\"content\">\n ${this.renderPrefix()}\n ${this.renderBody()}\n ${this.renderPasswordControl()}\n ${this.renderSuffix()}\n ${this.renderHighlight()}\n </div>\n </div>\n ${this.renderSupportingText()}\n ${this.renderDataList()}\n `;\n }\n\n protected renderPrefix(): TemplateResult {\n const classes = classMap({\n start: true,\n prefixed: this.hasPrefix,\n });\n return html`\n <div class=\"${classes}\">\n <slot name=\"prefix\" @slotchange=${this.handleSlotChange}></slot>\n </div>`;\n }\n\n protected renderSuffix(): TemplateResult {\n const classes = classMap({\n end: true,\n suffixed: this.hasSuffix,\n });\n return html`\n <div class=\"${classes}\">\n <slot name=\"suffix\" @slotchange=${this.handleSlotChange}></slot>\n </div>`;\n }\n\n protected renderBody(): TemplateResult {\n return html`\n <div class=\"body\">\n ${this.renderLabel()}\n ${this.renderInput()}\n </div>\n `;\n }\n\n protected renderLabel(): TemplateResult {\n const label = this.renderLabelText();\n if (!label) {\n return html``;\n }\n return html`\n <span class=\"label\" id=\"${this.labelId}\" title=\"label\">${label}</span>\n `;\n }\n\n protected renderHighlight(): TemplateResult {\n return html`\n <span class=\"highlight\"></span>\n `;\n }\n\n protected abstract renderInput(): TemplateResult;\n\n protected renderSupportingText(): TemplateResult {\n return html`\n <span class=\"supporting-text\">\n ${this.renderSupportingTextValue()}\n ${this.renderCounter()}\n </span>\n `;\n }\n\n protected renderSupportingTextValue(): TemplateResult {\n const text = this.getSupportingText();\n if (!text) {\n return html``;\n }\n const shouldAlert = this.shouldErrorAnnounce();\n return html`\n <span \n class=\"supporting-text-start\" \n id=\"${this.supportingTextId}\" \n role=${ifDefined(shouldAlert ? 'alert' : undefined)}\n >\n ${text}\n </span>\n `;\n }\n\n protected renderCounter(): TemplateResult {\n if (!this.hasCounter()) {\n return html``;\n }\n // TODO: add aria-label and announcements\n return html`<span id=${this.counterId} class=\"supporting-text-end\">${this.getCounterText()}</span>`;\n }\n\n protected renderPasswordControl(): TemplateResult | typeof nothing {\n const { type } = this;\n if (type !== 'password') {\n return nothing;\n }\n const visible = this.#showPassword;\n const icon = visible ? 'visibilityOff' : 'visibility';\n return html`\n <ui-icon-button \n aria-label=\"Toggle password visibility\" \n @click=\"${this.#handlePasswordToggle}\"\n title=\"Shows or hides the password\"\n >\n <ui-icon icon=\"${icon}\"></ui-icon>\n </ui-icon-button>\n `;\n }\n\n protected renderDataList(): TemplateResult | typeof nothing {\n const { list } = this;\n if (!Array.isArray(list) || !list.length) {\n return nothing;\n }\n return html`\n <datalist id=\"input-list\">\n ${list.map(i => html`<option value=\"${i}\">`)}\n </datalist>\n `;\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { CSSResult, LitElement, TemplateResult } from "lit";
1
+ import { LitElement, TemplateResult } from "lit";
2
2
  export declare enum DividerType {
3
3
  'full' = "full",
4
4
  'inset' = "inset",
@@ -7,19 +7,19 @@ export declare enum DividerType {
7
7
  /**
8
8
  * A divider element.
9
9
  */
10
- export default class DividerElement extends LitElement {
11
- static get styles(): CSSResult | CSSResult[];
10
+ export default class UiDivider extends LitElement {
12
11
  /**
13
12
  * The predefined type of the divider.
14
13
  * @attribute
15
14
  */
16
15
  type: DividerType;
17
16
  /**
18
- * Whether to render the divider as a horizontal separation.
17
+ * Whether to render the divider as a vertical separation.
19
18
  * @attribute
20
19
  */
21
- horizontal: boolean;
20
+ vertical: boolean;
22
21
  constructor();
22
+ connectedCallback(): void;
23
23
  protected render(): TemplateResult;
24
24
  }
25
- //# sourceMappingURL=DividerElement.d.ts.map
25
+ //# sourceMappingURL=UiDivider.element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiDivider.element.d.ts","sourceRoot":"","sources":["../../../src/ui/list/UiDivider.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAGvD,oBAAY,WAAW;IACrB,MAAM,SAAS;IACf,OAAO,UAAU;IACjB,QAAQ,WAAW;CACpB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,UAAU;IAC/C;;;OAGG;IACwC,IAAI,EAAE,WAAW,CAAC;IAE7D;;;OAGG;IACyC,QAAQ,UAAS;;IAOpD,iBAAiB,IAAI,IAAI;cAOf,MAAM,IAAI,cAAc;CAG5C"}
@@ -0,0 +1,39 @@
1
+ import { __decorate } from "tslib";
2
+ import { html, LitElement } from "lit";
3
+ import { property } from "lit/decorators.js";
4
+ export var DividerType;
5
+ (function (DividerType) {
6
+ DividerType["full"] = "full";
7
+ DividerType["inset"] = "inset";
8
+ DividerType["middle"] = "middle";
9
+ })(DividerType || (DividerType = {}));
10
+ /**
11
+ * A divider element.
12
+ */
13
+ export default class UiDivider extends LitElement {
14
+ constructor() {
15
+ super();
16
+ /**
17
+ * Whether to render the divider as a vertical separation.
18
+ * @attribute
19
+ */
20
+ this.vertical = false;
21
+ this.type = DividerType.full;
22
+ }
23
+ connectedCallback() {
24
+ super.connectedCallback();
25
+ if (!this.hasAttribute('role')) {
26
+ this.setAttribute('role', 'presentation');
27
+ }
28
+ }
29
+ render() {
30
+ return html `<div class="container"></div>`;
31
+ }
32
+ }
33
+ __decorate([
34
+ property({ type: String, reflect: true })
35
+ ], UiDivider.prototype, "type", void 0);
36
+ __decorate([
37
+ property({ type: Boolean, reflect: true })
38
+ ], UiDivider.prototype, "vertical", void 0);
39
+ //# sourceMappingURL=UiDivider.element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiDivider.element.js","sourceRoot":"","sources":["../../../src/ui/list/UiDivider.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,UAAU;IAa/C;QACE,KAAK,EAAE,CAAC;QAPV;;;WAGG;QACyC,aAAQ,GAAG,KAAK,CAAC;QAI3D,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAC/B,CAAC;IAEQ,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;YAC9B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;SAC3C;IACH,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA,+BAA+B,CAAC;IAC7C,CAAC;CACF;AAvB4C;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAAmB;AAMjB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAAkB","sourcesContent":["import { html, LitElement, TemplateResult } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nexport enum DividerType {\n 'full' = 'full',\n 'inset' = 'inset',\n 'middle' = 'middle',\n}\n\n/**\n * A divider element.\n */\nexport default class UiDivider extends LitElement {\n /**\n * The predefined type of the divider.\n * @attribute\n */\n @property({ type: String, reflect: true }) type: DividerType;\n\n /**\n * Whether to render the divider as a vertical separation.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n constructor() {\n super();\n this.type = DividerType.full;\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'presentation');\n }\n }\n\n protected override render(): TemplateResult {\n return html`<div class=\"container\"></div>`;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=UiDivider.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiDivider.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/list/UiDivider.styles.ts"],"names":[],"mappings":";AAEA,wBA8CE"}
@@ -0,0 +1,49 @@
1
+ import { css } from "lit";
2
+ export default css `
3
+ :host {
4
+ display: block;
5
+ margin-top: 8px;
6
+ margin-bottom: 8px;
7
+
8
+ --ui-divider-padding: 16px;
9
+ --ui-divider-vertical-separation: 8px;
10
+ }
11
+
12
+ .container {
13
+ height: 1px;
14
+ width: 100%;
15
+ box-sizing: border-box;
16
+ }
17
+
18
+ .container::before {
19
+ content: '';
20
+ height: inherit;
21
+ background-color: var(--md-sys-color-outline-variant);
22
+ display: block;
23
+ }
24
+
25
+ :host([type="inset"]) .container {
26
+ padding-left: var(--ui-divider-padding);
27
+ }
28
+
29
+ :host([type="middle"]) .container {
30
+ padding-left: var(--ui-divider-padding);
31
+ padding-right: var(--ui-divider-padding);
32
+ }
33
+
34
+ :host([vertical]) {
35
+ margin: 0;
36
+ height: auto;
37
+ }
38
+
39
+ :host([vertical]) .container {
40
+ width: 1px;
41
+ height: 100%;
42
+ margin: 0 var(--ui-divider-vertical-separation);
43
+ }
44
+
45
+ :host([vertical][type="middle"]) .container {
46
+ padding: var(--ui-divider-padding) 0 var(--ui-divider-padding) 0;
47
+ }
48
+ `;
49
+ //# sourceMappingURL=UiDivider.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiDivider.styles.js","sourceRoot":"","sources":["../../../src/ui/list/UiDivider.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CjB,CAAC","sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n:host {\n display: block;\n margin-top: 8px;\n margin-bottom: 8px;\n\n --ui-divider-padding: 16px;\n --ui-divider-vertical-separation: 8px;\n}\n\n.container {\n height: 1px;\n width: 100%;\n box-sizing: border-box;\n}\n\n.container::before {\n content: '';\n height: inherit;\n background-color: var(--md-sys-color-outline-variant);\n display: block;\n}\n\n:host([type=\"inset\"]) .container {\n padding-left: var(--ui-divider-padding);\n}\n\n:host([type=\"middle\"]) .container {\n padding-left: var(--ui-divider-padding);\n padding-right: var(--ui-divider-padding);\n}\n\n:host([vertical]) {\n margin: 0;\n height: auto;\n}\n\n:host([vertical]) .container {\n width: 1px;\n height: 100%;\n margin: 0 var(--ui-divider-vertical-separation);\n}\n\n:host([vertical][type=\"middle\"]) .container {\n padding: var(--ui-divider-padding) 0 var(--ui-divider-padding) 0;\n}\n`;\n"]}
@@ -1,4 +1,4 @@
1
- import { LitElement, nothing, TemplateResult } from "lit";
1
+ import { LitElement, nothing, PropertyValues, TemplateResult } from "lit";
2
2
  import { StyleInfo } from "lit/directives/style-map.js";
3
3
  import UiTab from "./UiTab.js";
4
4
  import '../../define/ui/ui-icon-button.js';
@@ -25,6 +25,7 @@ export declare function calcPercent(w: number, w0: number): number;
25
25
  export default class UiTabs extends LitElement {
26
26
  items: UiTab[];
27
27
  activeItem: UiTab | null;
28
+ previousItem: UiTab | null;
28
29
  protected assignedElements: HTMLElement[] | null;
29
30
  protected pointer: HTMLElement;
30
31
  protected content: HTMLElement;
@@ -57,7 +58,17 @@ export default class UiTabs extends LitElement {
57
58
  protected pointerStyles?: StyleInfo;
58
59
  protected contentScroll?: number;
59
60
  protected indicated: boolean;
61
+ protected observer: IntersectionObserver;
62
+ /**
63
+ * This is set by the intersection observer. Once the tabs are in the view it turns to `true`.
64
+ * This we can properly visualize selection.
65
+ */
66
+ isVisible?: boolean;
67
+ constructor();
68
+ protected willUpdate(cp: PropertyValues<this>): void;
60
69
  connectedCallback(): void;
70
+ disconnectedCallback(): void;
71
+ protected intersectionCallback(entries: IntersectionObserverEntry[]): void;
61
72
  protected updateItems(): Promise<void>;
62
73
  /**
63
74
  * @return Whether the given element is a list item element.
@@ -69,6 +80,7 @@ export default class UiTabs extends LitElement {
69
80
  notifySelect(item: UiTab): void;
70
81
  protected selectItem(tab: UiTab, focus?: boolean): void;
71
82
  protected deselectItem(tab: UiTab): void;
83
+ protected handleVisibility(): void;
72
84
  protected positionPointer(tab: UiTab, old?: UiTab | null): Promise<void>;
73
85
  protected moveAnimation?: Animation;
74
86
  protected getPrimaryLeft(tab: UiTab): string;
@@ -1 +1 @@
1
- {"version":3,"file":"UiTabs.d.ts","sourceRoot":"","sources":["../../../src/ui/tabs/UiTabs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;A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10 @@ export function calcPercent(w, w0) {
25
25
  */
26
26
  export default class UiTabs extends LitElement {
27
27
  constructor() {
28
- super(...arguments);
28
+ super();
29
29
  this.items = [];
30
30
  this.activeItem = null;
31
+ this.previousItem = null;
31
32
  /**
32
33
  * The priority of the tabs.
33
34
  *
@@ -44,17 +45,31 @@ export default class UiTabs extends LitElement {
44
45
  */
45
46
  this.selectedAttribute = `aria-controls`;
46
47
  this.indicated = false;
48
+ this.observer = new IntersectionObserver(this.intersectionCallback.bind(this), {
49
+ threshold: 1.0,
50
+ rootMargin: '0px',
51
+ });
52
+ }
53
+ willUpdate(cp) {
54
+ if (cp.has('isVisible')) {
55
+ this.handleVisibility();
56
+ }
57
+ super.willUpdate(cp);
47
58
  }
48
- // constructor() {
49
- // super();
50
- // // this.addEventListener('keydown', this.handleKeydown.bind(this));
51
- // // this.addEventListener('click', this.handleClick.bind(this));
52
- // }
53
59
  connectedCallback() {
54
60
  super.connectedCallback();
55
61
  if (!this.hasAttribute('role')) {
56
62
  this.setAttribute('role', 'tablist');
57
63
  }
64
+ this.observer.observe(this);
65
+ }
66
+ disconnectedCallback() {
67
+ super.disconnectedCallback();
68
+ this.observer.unobserve(this);
69
+ }
70
+ intersectionCallback(entries) {
71
+ const [entry] = entries;
72
+ this.isVisible = entry.isIntersecting;
58
73
  }
59
74
  async updateItems() {
60
75
  const elements = this.assignedElements || [];
@@ -101,6 +116,7 @@ export default class UiTabs extends LitElement {
101
116
  tab.highlight();
102
117
  return;
103
118
  }
119
+ this.previousItem = activeItem;
104
120
  if (activeItem) {
105
121
  this.deselectItem(activeItem);
106
122
  }
@@ -128,16 +144,13 @@ export default class UiTabs extends LitElement {
128
144
  }));
129
145
  }
130
146
  selectItem(tab, focus = false) {
131
- if (this.activeItem === tab) {
132
- return;
133
- }
147
+ this.activeItem = tab;
134
148
  if (this.hasAttribute('tabindex')) {
135
149
  this.removeAttribute('tabindex');
136
150
  }
137
151
  tab.setAttribute('aria-selected', 'true');
138
152
  tab.setAttribute('tabindex', '0');
139
153
  tab.selected = true;
140
- this.activeItem = tab;
141
154
  tab.priority = this.priority;
142
155
  tab.scrollIntoView({ inline: 'nearest', behavior: 'auto', block: 'nearest' });
143
156
  if (focus) {
@@ -150,8 +163,18 @@ export default class UiTabs extends LitElement {
150
163
  tab.selected = false;
151
164
  tab.indicated = false;
152
165
  }
166
+ handleVisibility() {
167
+ const { previousItem, activeItem } = this;
168
+ if (!activeItem) {
169
+ return;
170
+ }
171
+ this.positionPointer(activeItem, previousItem);
172
+ }
153
173
  async positionPointer(tab, old) {
154
- const { items, pointer } = this;
174
+ const { items, pointer, isVisible } = this;
175
+ if (!isVisible) {
176
+ return;
177
+ }
155
178
  const index = items.indexOf(tab);
156
179
  if (index < 0 || !pointer) {
157
180
  this.pointerStyles = undefined;
@@ -162,14 +185,17 @@ export default class UiTabs extends LitElement {
162
185
  tab.indicated = true;
163
186
  return;
164
187
  }
188
+ const isPrimary = this.priority === 'primary';
189
+ const final = isPrimary ? this.getPrimaryLeft(tab) : this.getSecondaryLeft(tab);
190
+ if (this.pointerStyles && this.pointerStyles.left === `${final}px`) {
191
+ return;
192
+ }
165
193
  // first position this indicator in the place of the old one.
166
194
  // update the view and then run the animation.
167
195
  this.indicated = true;
168
- const isPrimary = this.priority === 'primary';
169
196
  const left = isPrimary ? this.getPrimaryLeft(old) : this.getSecondaryLeft(old);
170
197
  this.pointerStyles = { left };
171
198
  await this.updateComplete;
172
- const final = isPrimary ? this.getPrimaryLeft(tab) : this.getSecondaryLeft(tab);
173
199
  const frames = isPrimary ? this.getPrimaryKeyframes(left, final) : this.getSecondaryKeyframes(left, final);
174
200
  if (this.moveAnimation) {
175
201
  this.moveAnimation.cancel();
@@ -437,4 +463,7 @@ __decorate([
437
463
  __decorate([
438
464
  state()
439
465
  ], UiTabs.prototype, "indicated", void 0);
466
+ __decorate([
467
+ state()
468
+ ], UiTabs.prototype, "isVisible", void 0);
440
469
  //# sourceMappingURL=UiTabs.js.map