@ukic/web-components 3.0.0-alpha.6 → 3.0.0-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (364) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/{helpers-dd569d97.js → helpers-50fa27f6.js} +14 -1
  4. package/dist/cjs/helpers-50fa27f6.js.map +1 -0
  5. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  6. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-alert.cjs.entry.js +2 -9
  8. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-button_3.cjs.entry.js +1 -1
  14. package/dist/cjs/ic-card-vertical.cjs.entry.js +12 -19
  15. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
  17. package/dist/cjs/ic-checkbox.cjs.entry.js +1 -1
  18. package/dist/cjs/ic-chip.cjs.entry.js +1 -1
  19. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  20. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  21. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  22. package/dist/cjs/ic-empty-state.cjs.entry.js +2 -12
  23. package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  25. package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-footer.cjs.entry.js +18 -7
  27. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-hero.cjs.entry.js +2 -9
  29. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +27 -21
  32. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-input-label_2.cjs.entry.js +1 -1
  34. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  35. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  36. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
  38. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  39. package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
  40. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
  42. package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
  43. package/dist/cjs/ic-pagination.cjs.entry.js +1 -1
  44. package/dist/cjs/ic-popover-menu.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
  46. package/dist/cjs/ic-radio-option.cjs.entry.js +1 -1
  47. package/dist/cjs/ic-search-bar.cjs.entry.js +32 -28
  48. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-select.cjs.entry.js +44 -32
  50. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-side-navigation.cjs.entry.js +1 -1
  52. package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
  53. package/dist/cjs/ic-step.cjs.entry.js +1 -1
  54. package/dist/cjs/ic-stepper.cjs.entry.js +1 -1
  55. package/dist/cjs/ic-switch.cjs.entry.js +1 -1
  56. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  57. package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
  58. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  59. package/dist/cjs/ic-text-field.cjs.entry.js +9 -7
  60. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  62. package/dist/cjs/ic-toast.cjs.entry.js +1 -1
  63. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +1 -1
  64. package/dist/cjs/ic-toggle-button.cjs.entry.js +1 -1
  65. package/dist/cjs/ic-top-navigation.cjs.entry.js +2 -2
  66. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-typography.cjs.entry.js +1 -1
  68. package/dist/cjs/index-f982899d.js +4 -4
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/collection/ag-theme-icds.css +32 -31
  71. package/dist/collection/components/ic-alert/ic-alert.js +3 -10
  72. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  73. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js +21 -3
  74. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +1 -1
  75. package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +13 -20
  76. package/dist/collection/components/ic-card-vertical/ic-card-vertical.js.map +1 -1
  77. package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js +34 -3
  78. package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js.map +1 -1
  79. package/dist/collection/components/ic-empty-state/ic-empty-state.js +3 -13
  80. package/dist/collection/components/ic-empty-state/ic-empty-state.js.map +1 -1
  81. package/dist/collection/components/ic-footer/ic-footer.js +18 -7
  82. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  83. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +41 -0
  84. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -1
  85. package/dist/collection/components/ic-hero/ic-hero.js +3 -10
  86. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  87. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +21 -3
  88. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -1
  89. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -10
  90. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  91. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +21 -3
  92. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -1
  93. package/dist/collection/components/ic-menu/ic-menu.css +6 -0
  94. package/dist/collection/components/ic-menu/ic-menu.js +38 -11
  95. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  96. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +9 -9
  97. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -1
  98. package/dist/collection/components/ic-search-bar/ic-search-bar.css +66 -4
  99. package/dist/collection/components/ic-search-bar/ic-search-bar.js +53 -28
  100. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  101. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +59 -93
  102. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -1
  103. package/dist/collection/components/ic-select/ic-select.js +46 -34
  104. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  105. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +64 -0
  106. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -1
  107. package/dist/collection/components/ic-text-field/ic-text-field.js +15 -8
  108. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  109. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +4 -0
  110. package/dist/collection/testspec.setup.js +14 -0
  111. package/dist/collection/testspec.setup.js.map +1 -1
  112. package/dist/collection/utils/helpers.js +11 -0
  113. package/dist/collection/utils/helpers.js.map +1 -1
  114. package/dist/components/helpers.js +13 -1
  115. package/dist/components/helpers.js.map +1 -1
  116. package/dist/components/ic-alert.js +3 -10
  117. package/dist/components/ic-alert.js.map +1 -1
  118. package/dist/components/ic-card-vertical.js +13 -20
  119. package/dist/components/ic-card-vertical.js.map +1 -1
  120. package/dist/components/ic-empty-state.js +3 -13
  121. package/dist/components/ic-empty-state.js.map +1 -1
  122. package/dist/components/ic-footer.js +18 -7
  123. package/dist/components/ic-footer.js.map +1 -1
  124. package/dist/components/ic-hero.js +3 -10
  125. package/dist/components/ic-hero.js.map +1 -1
  126. package/dist/components/ic-input-component-container2.js +3 -10
  127. package/dist/components/ic-input-component-container2.js.map +1 -1
  128. package/dist/components/ic-menu2.js +25 -12
  129. package/dist/components/ic-menu2.js.map +1 -1
  130. package/dist/components/ic-search-bar.js +46 -53
  131. package/dist/components/ic-search-bar.js.map +1 -1
  132. package/dist/components/ic-select.js +45 -33
  133. package/dist/components/ic-select.js.map +1 -1
  134. package/dist/components/ic-side-navigation.js +1 -1
  135. package/dist/components/ic-stepper.js +1 -1
  136. package/dist/components/ic-text-field.js +371 -1
  137. package/dist/components/ic-text-field.js.map +1 -1
  138. package/dist/components/ic-theme.js +1 -1
  139. package/dist/components/ic-top-navigation.js +2 -2
  140. package/dist/components/ic-top-navigation.js.map +1 -1
  141. package/dist/core/ag-theme-icds.css +32 -31
  142. package/dist/core/core.css +15 -3
  143. package/dist/core/core.esm.js +1 -1
  144. package/dist/core/core.esm.js.map +1 -1
  145. package/dist/core/p-050e3e36.entry.js +2 -0
  146. package/dist/core/p-050e3e36.entry.js.map +1 -0
  147. package/dist/core/{p-5ba8e679.entry.js → p-08a82b71.entry.js} +2 -2
  148. package/dist/core/{p-5d417fc0.entry.js → p-12bd8ade.entry.js} +2 -2
  149. package/dist/core/{p-ded2dbed.entry.js → p-13637d3f.entry.js} +2 -2
  150. package/dist/core/{p-406e58af.entry.js → p-1425c78b.entry.js} +2 -2
  151. package/dist/core/{p-4af52174.entry.js → p-16df8bcf.entry.js} +2 -2
  152. package/dist/core/{p-1234f7a5.entry.js → p-1b1f7523.entry.js} +2 -2
  153. package/dist/core/{p-bc7b8a1e.entry.js → p-2179e015.entry.js} +2 -2
  154. package/dist/core/{p-810f5a2d.entry.js → p-273f9b03.entry.js} +2 -2
  155. package/dist/core/p-273f9b03.entry.js.map +1 -0
  156. package/dist/core/{p-b5439baa.entry.js → p-27933dfe.entry.js} +2 -2
  157. package/dist/core/{p-c83e933c.entry.js → p-2aca1bac.entry.js} +2 -2
  158. package/dist/core/{p-a24bcf5f.entry.js → p-30f91e2e.entry.js} +2 -2
  159. package/dist/core/p-3361ac8f.entry.js +2 -0
  160. package/dist/core/p-3361ac8f.entry.js.map +1 -0
  161. package/dist/core/{p-98dbbb34.entry.js → p-34e89ebf.entry.js} +2 -2
  162. package/dist/core/{p-b9aa801f.entry.js → p-353893b7.entry.js} +2 -2
  163. package/dist/core/{p-0821fc5b.entry.js → p-3645c4e6.entry.js} +2 -2
  164. package/dist/core/p-369ff74c.entry.js +2 -0
  165. package/dist/core/p-369ff74c.entry.js.map +1 -0
  166. package/dist/core/p-46dd7413.entry.js +2 -0
  167. package/dist/core/p-46dd7413.entry.js.map +1 -0
  168. package/dist/core/{p-225384ab.entry.js → p-4e57c7ba.entry.js} +2 -2
  169. package/dist/core/{p-0b8c3770.entry.js → p-51990f23.entry.js} +2 -2
  170. package/dist/core/{p-4dc48606.entry.js → p-5347f687.entry.js} +2 -2
  171. package/dist/core/{p-6859019c.entry.js → p-538f1bb9.entry.js} +2 -2
  172. package/dist/core/{p-07cd8a50.entry.js → p-5479be2b.entry.js} +2 -2
  173. package/dist/core/{p-b51e378c.entry.js → p-5801598f.entry.js} +2 -2
  174. package/dist/core/{p-c2b359d9.entry.js → p-5b118dec.entry.js} +2 -2
  175. package/dist/core/p-5d89525e.entry.js +2 -0
  176. package/dist/core/p-5d89525e.entry.js.map +1 -0
  177. package/dist/core/{p-f42c0469.entry.js → p-5dcafe90.entry.js} +2 -2
  178. package/dist/core/{p-705db6a5.entry.js → p-5e694b17.entry.js} +2 -2
  179. package/dist/core/{p-b27dfa1b.entry.js → p-6331782f.entry.js} +2 -2
  180. package/dist/core/{p-5d653608.entry.js → p-6a5d58bc.entry.js} +2 -2
  181. package/dist/core/p-6d0c5a77.entry.js +2 -0
  182. package/dist/core/{p-cfe32b37.entry.js.map → p-6d0c5a77.entry.js.map} +1 -1
  183. package/dist/core/p-6f16a69e.entry.js +2 -0
  184. package/dist/core/{p-dcb2073d.entry.js.map → p-6f16a69e.entry.js.map} +1 -1
  185. package/dist/core/{p-9c1d4f72.entry.js → p-7a16046a.entry.js} +2 -2
  186. package/dist/core/p-7c0ff8cf.entry.js +2 -0
  187. package/dist/core/p-7c0ff8cf.entry.js.map +1 -0
  188. package/dist/core/{p-3cfef37a.entry.js → p-7c39afb5.entry.js} +2 -2
  189. package/dist/core/{p-a23c515d.entry.js → p-7e546e88.entry.js} +2 -2
  190. package/dist/core/{p-520c6089.entry.js → p-8dda6121.entry.js} +2 -2
  191. package/dist/core/{p-518ea375.entry.js → p-9505b0f1.entry.js} +2 -2
  192. package/dist/core/{p-b2a41070.entry.js → p-a25d535a.entry.js} +2 -2
  193. package/dist/core/p-a519e9a6.entry.js +2 -0
  194. package/dist/core/p-a519e9a6.entry.js.map +1 -0
  195. package/dist/core/p-b052e67a.entry.js +2 -0
  196. package/dist/core/{p-3420a999.entry.js.map → p-b052e67a.entry.js.map} +1 -1
  197. package/dist/core/{p-580b1593.entry.js → p-bafcbecc.entry.js} +2 -2
  198. package/dist/core/{p-61510f00.entry.js → p-bdbce1a0.entry.js} +2 -2
  199. package/dist/core/p-c68d98f8.entry.js +2 -0
  200. package/dist/core/p-c68d98f8.entry.js.map +1 -0
  201. package/dist/core/{p-4f72a02a.entry.js → p-cae08ac2.entry.js} +2 -2
  202. package/dist/core/{p-7124b387.entry.js → p-d6ce4473.entry.js} +2 -2
  203. package/dist/core/{p-193582d4.entry.js → p-dcdfe5f9.entry.js} +2 -2
  204. package/dist/core/{p-3994d86d.entry.js → p-e9c078fa.entry.js} +2 -2
  205. package/dist/core/p-eafa4df2.js +2 -0
  206. package/dist/core/p-eafa4df2.js.map +1 -0
  207. package/dist/core/{p-da85eaf6.entry.js → p-eb132c44.entry.js} +2 -2
  208. package/dist/core/p-ebf2b874.entry.js +2 -0
  209. package/dist/core/p-ebf2b874.entry.js.map +1 -0
  210. package/dist/core/{p-0d505c1f.entry.js → p-eec110a7.entry.js} +2 -2
  211. package/dist/core/{p-91c1327d.entry.js → p-f1b7e4f4.entry.js} +2 -2
  212. package/dist/core/{p-d2909711.entry.js → p-f8890135.entry.js} +2 -2
  213. package/dist/esm/core.js +1 -1
  214. package/dist/esm/{helpers-e594bfc6.js → helpers-8565b5c5.js} +14 -2
  215. package/dist/esm/helpers-8565b5c5.js.map +1 -0
  216. package/dist/esm/ic-accordion-group.entry.js +1 -1
  217. package/dist/esm/ic-accordion.entry.js +1 -1
  218. package/dist/esm/ic-alert.entry.js +3 -10
  219. package/dist/esm/ic-alert.entry.js.map +1 -1
  220. package/dist/esm/ic-back-to-top.entry.js +1 -1
  221. package/dist/esm/ic-badge.entry.js +1 -1
  222. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  223. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  224. package/dist/esm/ic-button_3.entry.js +1 -1
  225. package/dist/esm/ic-card-vertical.entry.js +13 -20
  226. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  227. package/dist/esm/ic-checkbox-group.entry.js +1 -1
  228. package/dist/esm/ic-checkbox.entry.js +1 -1
  229. package/dist/esm/ic-chip.entry.js +1 -1
  230. package/dist/esm/ic-data-row.entry.js +1 -1
  231. package/dist/esm/ic-dialog.entry.js +1 -1
  232. package/dist/esm/ic-divider.entry.js +1 -1
  233. package/dist/esm/ic-empty-state.entry.js +3 -13
  234. package/dist/esm/ic-empty-state.entry.js.map +1 -1
  235. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  236. package/dist/esm/ic-footer-link.entry.js +1 -1
  237. package/dist/esm/ic-footer.entry.js +18 -7
  238. package/dist/esm/ic-footer.entry.js.map +1 -1
  239. package/dist/esm/ic-hero.entry.js +3 -10
  240. package/dist/esm/ic-hero.entry.js.map +1 -1
  241. package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
  242. package/dist/esm/ic-input-component-container_3.entry.js +28 -22
  243. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  244. package/dist/esm/ic-input-label_2.entry.js +1 -1
  245. package/dist/esm/ic-link.entry.js +1 -1
  246. package/dist/esm/ic-menu-group.entry.js +1 -1
  247. package/dist/esm/ic-menu-item.entry.js +1 -1
  248. package/dist/esm/ic-navigation-button.entry.js +1 -1
  249. package/dist/esm/ic-navigation-group.entry.js +1 -1
  250. package/dist/esm/ic-navigation-item.entry.js +1 -1
  251. package/dist/esm/ic-navigation-menu.entry.js +1 -1
  252. package/dist/esm/ic-page-header.entry.js +1 -1
  253. package/dist/esm/ic-pagination-item.entry.js +1 -1
  254. package/dist/esm/ic-pagination.entry.js +1 -1
  255. package/dist/esm/ic-popover-menu.entry.js +1 -1
  256. package/dist/esm/ic-radio-group.entry.js +1 -1
  257. package/dist/esm/ic-radio-option.entry.js +1 -1
  258. package/dist/esm/ic-search-bar.entry.js +32 -28
  259. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  260. package/dist/esm/ic-select.entry.js +44 -32
  261. package/dist/esm/ic-select.entry.js.map +1 -1
  262. package/dist/esm/ic-side-navigation.entry.js +1 -1
  263. package/dist/esm/ic-status-tag.entry.js +1 -1
  264. package/dist/esm/ic-step.entry.js +1 -1
  265. package/dist/esm/ic-stepper.entry.js +1 -1
  266. package/dist/esm/ic-switch.entry.js +1 -1
  267. package/dist/esm/ic-tab-group.entry.js +1 -1
  268. package/dist/esm/ic-tab-panel.entry.js +1 -1
  269. package/dist/esm/ic-tab.entry.js +1 -1
  270. package/dist/esm/ic-text-field.entry.js +9 -7
  271. package/dist/esm/ic-text-field.entry.js.map +1 -1
  272. package/dist/esm/ic-theme.entry.js +1 -1
  273. package/dist/esm/ic-toast.entry.js +1 -1
  274. package/dist/esm/ic-toggle-button-group.entry.js +1 -1
  275. package/dist/esm/ic-toggle-button.entry.js +1 -1
  276. package/dist/esm/ic-top-navigation.entry.js +2 -2
  277. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  278. package/dist/esm/ic-typography.entry.js +1 -1
  279. package/dist/esm/index-d1d2c456.js +4 -4
  280. package/dist/esm/loader.js +1 -1
  281. package/dist/types/components/ic-alert/ic-alert.d.ts +0 -1
  282. package/dist/types/components/ic-card-vertical/ic-card-vertical.d.ts +0 -1
  283. package/dist/types/components/ic-empty-state/ic-empty-state.d.ts +0 -1
  284. package/dist/types/components/ic-footer/ic-footer.d.ts +1 -0
  285. package/dist/types/components/ic-hero/ic-hero.d.ts +0 -1
  286. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +0 -1
  287. package/dist/types/components/ic-menu/ic-menu.d.ts +6 -1
  288. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +9 -2
  289. package/dist/types/components/ic-select/ic-select.d.ts +5 -4
  290. package/dist/types/components/ic-text-field/ic-text-field.d.ts +2 -1
  291. package/dist/types/components.d.ts +13 -3
  292. package/dist/types/testspec.setup.d.ts +9 -0
  293. package/dist/types/utils/helpers.d.ts +2 -0
  294. package/hydrate/index.js +150 -128
  295. package/package.json +2 -9
  296. package/vscode-data.json +1 -1
  297. package/dist/cjs/helpers-dd569d97.js.map +0 -1
  298. package/dist/components/ic-text-field2.js +0 -373
  299. package/dist/components/ic-text-field2.js.map +0 -1
  300. package/dist/core/p-3420a999.entry.js +0 -2
  301. package/dist/core/p-3bfc4a52.entry.js +0 -2
  302. package/dist/core/p-3bfc4a52.entry.js.map +0 -1
  303. package/dist/core/p-48e98730.js +0 -2
  304. package/dist/core/p-48e98730.js.map +0 -1
  305. package/dist/core/p-59800237.entry.js +0 -2
  306. package/dist/core/p-59800237.entry.js.map +0 -1
  307. package/dist/core/p-6159b077.entry.js +0 -2
  308. package/dist/core/p-6159b077.entry.js.map +0 -1
  309. package/dist/core/p-810744b5.entry.js +0 -2
  310. package/dist/core/p-810744b5.entry.js.map +0 -1
  311. package/dist/core/p-810f5a2d.entry.js.map +0 -1
  312. package/dist/core/p-8a2670c1.entry.js +0 -2
  313. package/dist/core/p-8a2670c1.entry.js.map +0 -1
  314. package/dist/core/p-aefebee9.entry.js +0 -2
  315. package/dist/core/p-aefebee9.entry.js.map +0 -1
  316. package/dist/core/p-c67f7603.entry.js +0 -2
  317. package/dist/core/p-c67f7603.entry.js.map +0 -1
  318. package/dist/core/p-c6e91e13.entry.js +0 -2
  319. package/dist/core/p-c6e91e13.entry.js.map +0 -1
  320. package/dist/core/p-ca27ab19.entry.js +0 -2
  321. package/dist/core/p-ca27ab19.entry.js.map +0 -1
  322. package/dist/core/p-cfe32b37.entry.js +0 -2
  323. package/dist/core/p-dcb2073d.entry.js +0 -2
  324. package/dist/esm/helpers-e594bfc6.js.map +0 -1
  325. /package/dist/core/{p-5ba8e679.entry.js.map → p-08a82b71.entry.js.map} +0 -0
  326. /package/dist/core/{p-5d417fc0.entry.js.map → p-12bd8ade.entry.js.map} +0 -0
  327. /package/dist/core/{p-ded2dbed.entry.js.map → p-13637d3f.entry.js.map} +0 -0
  328. /package/dist/core/{p-406e58af.entry.js.map → p-1425c78b.entry.js.map} +0 -0
  329. /package/dist/core/{p-4af52174.entry.js.map → p-16df8bcf.entry.js.map} +0 -0
  330. /package/dist/core/{p-1234f7a5.entry.js.map → p-1b1f7523.entry.js.map} +0 -0
  331. /package/dist/core/{p-bc7b8a1e.entry.js.map → p-2179e015.entry.js.map} +0 -0
  332. /package/dist/core/{p-b5439baa.entry.js.map → p-27933dfe.entry.js.map} +0 -0
  333. /package/dist/core/{p-c83e933c.entry.js.map → p-2aca1bac.entry.js.map} +0 -0
  334. /package/dist/core/{p-a24bcf5f.entry.js.map → p-30f91e2e.entry.js.map} +0 -0
  335. /package/dist/core/{p-98dbbb34.entry.js.map → p-34e89ebf.entry.js.map} +0 -0
  336. /package/dist/core/{p-b9aa801f.entry.js.map → p-353893b7.entry.js.map} +0 -0
  337. /package/dist/core/{p-0821fc5b.entry.js.map → p-3645c4e6.entry.js.map} +0 -0
  338. /package/dist/core/{p-225384ab.entry.js.map → p-4e57c7ba.entry.js.map} +0 -0
  339. /package/dist/core/{p-0b8c3770.entry.js.map → p-51990f23.entry.js.map} +0 -0
  340. /package/dist/core/{p-4dc48606.entry.js.map → p-5347f687.entry.js.map} +0 -0
  341. /package/dist/core/{p-6859019c.entry.js.map → p-538f1bb9.entry.js.map} +0 -0
  342. /package/dist/core/{p-07cd8a50.entry.js.map → p-5479be2b.entry.js.map} +0 -0
  343. /package/dist/core/{p-b51e378c.entry.js.map → p-5801598f.entry.js.map} +0 -0
  344. /package/dist/core/{p-c2b359d9.entry.js.map → p-5b118dec.entry.js.map} +0 -0
  345. /package/dist/core/{p-f42c0469.entry.js.map → p-5dcafe90.entry.js.map} +0 -0
  346. /package/dist/core/{p-705db6a5.entry.js.map → p-5e694b17.entry.js.map} +0 -0
  347. /package/dist/core/{p-b27dfa1b.entry.js.map → p-6331782f.entry.js.map} +0 -0
  348. /package/dist/core/{p-5d653608.entry.js.map → p-6a5d58bc.entry.js.map} +0 -0
  349. /package/dist/core/{p-9c1d4f72.entry.js.map → p-7a16046a.entry.js.map} +0 -0
  350. /package/dist/core/{p-3cfef37a.entry.js.map → p-7c39afb5.entry.js.map} +0 -0
  351. /package/dist/core/{p-a23c515d.entry.js.map → p-7e546e88.entry.js.map} +0 -0
  352. /package/dist/core/{p-520c6089.entry.js.map → p-8dda6121.entry.js.map} +0 -0
  353. /package/dist/core/{p-518ea375.entry.js.map → p-9505b0f1.entry.js.map} +0 -0
  354. /package/dist/core/{p-b2a41070.entry.js.map → p-a25d535a.entry.js.map} +0 -0
  355. /package/dist/core/{p-580b1593.entry.js.map → p-bafcbecc.entry.js.map} +0 -0
  356. /package/dist/core/{p-61510f00.entry.js.map → p-bdbce1a0.entry.js.map} +0 -0
  357. /package/dist/core/{p-4f72a02a.entry.js.map → p-cae08ac2.entry.js.map} +0 -0
  358. /package/dist/core/{p-7124b387.entry.js.map → p-d6ce4473.entry.js.map} +0 -0
  359. /package/dist/core/{p-193582d4.entry.js.map → p-dcdfe5f9.entry.js.map} +0 -0
  360. /package/dist/core/{p-3994d86d.entry.js.map → p-e9c078fa.entry.js.map} +0 -0
  361. /package/dist/core/{p-da85eaf6.entry.js.map → p-eb132c44.entry.js.map} +0 -0
  362. /package/dist/core/{p-0d505c1f.entry.js.map → p-eec110a7.entry.js.map} +0 -0
  363. /package/dist/core/{p-91c1327d.entry.js.map → p-f1b7e4f4.entry.js.map} +0 -0
  364. /package/dist/core/{p-d2909711.entry.js.map → p-f8890135.entry.js.map} +0 -0
@@ -1,4 +1,374 @@
1
- import { T as TextField, d as defineCustomElement$1 } from './ic-text-field2.js';
1
+ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
+ import { T as checkSlotInChildMutations, r as removeDisabledFalse, R as debounceEvent, p as removeFormResetListener, b as inheritAttributes, n as addFormResetListener, o as onComponentRequiredPropUndefined, x as IcInformationStatus, t as getInputDescribedByText, q as renderHiddenInput, s as removeHiddenInput, i as isSlotUsed, W as isEmptyString, I as IC_INHERITED_ARIA } from './helpers.js';
3
+ import { d as defineCustomElement$6 } from './ic-input-component-container2.js';
4
+ import { d as defineCustomElement$5 } from './ic-input-container2.js';
5
+ import { d as defineCustomElement$4 } from './ic-input-label2.js';
6
+ import { d as defineCustomElement$3 } from './ic-input-validation2.js';
7
+ import { d as defineCustomElement$2 } from './ic-typography2.js';
8
+
9
+ const icTextFieldCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-helpertext-padding:var(--ic-space-xxs);--border-color:var(--ic-text-field-border-neutral);--border-color-hover:var(--ic-text-field-border-neutral-hover);--border-color-pressed:var(--ic-text-field-border-neutral-pressed);--border-color-disabled:var(--ic-text-field-border-disabled);--border-color-error:var(--ic-text-field-border-error);--border-color-error-hover:var(--ic-text-field-border-error-hover);--border-color-error-pressed:var(--ic-text-field-border-error-pressed);--border-color-success:var(--ic-text-field-border-success);--border-color-success-hover:var(--ic-text-field-border-success-hover);--border-color-success-pressed:var(--ic-text-field-border-success-pressed);--border-color-warning:var(--ic-text-field-border-warning);--border-color-warning-hover:var(--ic-text-field-border-warning-hover);--border-color-warning-pressed:var(--ic-text-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-text-field-label);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle);--ic-input-validation-status-text-color:var(--ic-text-field-state-text);--ic-input-validation-error:var(--ic-text-field-state-icon-error);--ic-input-validation-warning-icon-color:var(\n --ic-text-field-state-icon-warning\n );--ic-input-validation-success-icon-color:var(\n --ic-text-field-state-icon-success\n );--ic-input-component-container-success-icon-inline-color:var(\n --ic-text-field-state-icon-success\n )}:host(.ic-text-field-disabled){--ic-input-label-text-color:var(--ic-text-field-label-disabled);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle-disabled);--text-field-placeholder-color:var(\n --ic-text-field-text-area-placeholder-text-disabled\n )}:host(.ic-text-field-full-width){width:100%}::-moz-placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}::placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}input,textarea{border:0;border-radius:var(--ic-border-radius);color:var(--text-field-text-color, var(--ic-text-field-text));background-color:var(--input-bg-color, var(--ic-text-field-background));line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs);caret-color:var(\n --text-field-typing-cursor,\n var(--ic-text-field-typing-cursor)\n )}textarea{min-height:var(--ic-space-lg);resize:vertical;padding-top:0.375rem}input:focus,textarea:focus{border:0;outline:0}input:disabled,textarea:disabled{color:var(\n --text-field-disabled-text-color,\n var(--ic-text-field-text-disabled)\n )}input.readonly,textarea.readonly{color:var(--ic-text-field-read-only-input-text-internal)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=\"number\"]{-moz-appearance:textfield}textarea.no-resize{resize:none}.char-count-text{--ic-typography-color:var(--ic-text-field-character-limit);padding-right:var(--ic-space-xxxs)}:host(.ic-text-field-disabled) .char-count-text{--ic-typography-color:var(--ic-text-field-character-limit-disabled)}.no-left-pad{padding-left:0}::slotted([slot=\"icon\"]){fill:var(--ic-text-field-text-disabled)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-text-field-input-internal-icon)}.char-count{margin-right:calc(-1 * var(--ic-space-xxxs))}.remaining-char-count-desc{position:absolute;left:-9999px}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration,input[type=\"search\"]::-webkit-search-results-button,input[type=\"search\"]::-webkit-search-results-decoration{display:none}input[type=\"search\"].truncate-value{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (forced-colors: active){input.readonly,textarea.readonly{color:canvastext}.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
10
+
11
+ let inputIds = 0;
12
+ const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, "title"];
13
+ const TextField = /*@__PURE__*/ proxyCustomElement(class TextField extends HTMLElement {
14
+ constructor() {
15
+ super();
16
+ this.__registerHost();
17
+ this.__attachShadow();
18
+ this.getValidationText = createEvent(this, "getValidationText", 7);
19
+ this.icBlur = createEvent(this, "icBlur", 7);
20
+ this.icChange = createEvent(this, "icChange", 7);
21
+ this.icFocus = createEvent(this, "icFocus", 7);
22
+ this.icInput = createEvent(this, "icInput", 7);
23
+ this.icKeydown = createEvent(this, "icKeydown", 7);
24
+ this.inheritedAttributes = {};
25
+ this.hostMutationObserver = null;
26
+ this.checkChildHydration = () => {
27
+ var _a;
28
+ const el = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("ic-typography");
29
+ if (el && el.classList.contains("hydrated")) {
30
+ this.setFocus();
31
+ clearInterval(this.interval);
32
+ }
33
+ };
34
+ this.getNumberOfCharacters = (value) => value !== null && value !== undefined ? value.length : 0;
35
+ this.getMaxValueExceeded = (value) => {
36
+ this.numChars = this.getNumberOfCharacters(value);
37
+ if (this.type === "number") {
38
+ this.minValueUnattained = value && Number(value) < Number(this.min);
39
+ this.maxValueExceeded = Number(value) > Number(this.max);
40
+ }
41
+ };
42
+ this.getMaxCharactersReached = (value) => {
43
+ this.numChars = this.getNumberOfCharacters(value);
44
+ this.maxCharactersReached =
45
+ this.maxCharacters > 0 ? this.numChars >= this.maxCharacters : false;
46
+ if (this.maxCharactersWarning && !this.maxCharactersReached) {
47
+ this.maxCharactersWarning = false;
48
+ }
49
+ };
50
+ this.onInput = (ev) => {
51
+ this.value = ev.target.value;
52
+ this.icInput.emit({ value: this.value });
53
+ };
54
+ this.onBlur = (ev) => {
55
+ const value = ev.target.value;
56
+ this.numChars = value.length;
57
+ this.minCharactersUnattained =
58
+ this.minCharacters > 0 ? this.numChars < this.minCharacters : false;
59
+ this.icBlur.emit({ value: value });
60
+ };
61
+ this.onFocus = (ev) => {
62
+ this.icFocus.emit({ value: ev.target.value });
63
+ };
64
+ this.hasStatus = (status) => status !== "" && !this.disabled;
65
+ this.handleFormReset = () => {
66
+ this.value = this.initialValue;
67
+ };
68
+ // triggered when attributes of host element change
69
+ this.hostMutationCallback = (mutationList) => {
70
+ let forceComponentUpdate = false;
71
+ mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
72
+ if (MUTABLE_ATTRIBUTES.includes(attributeName)) {
73
+ this.inheritedAttributes[attributeName] =
74
+ this.el.getAttribute(attributeName);
75
+ forceComponentUpdate = true;
76
+ }
77
+ else if (type === "childList") {
78
+ forceComponentUpdate = checkSlotInChildMutations(addedNodes, removedNodes, "icon");
79
+ }
80
+ });
81
+ if (forceComponentUpdate) {
82
+ forceUpdate(this);
83
+ }
84
+ };
85
+ this.numChars = 0;
86
+ this.maxCharactersReached = false;
87
+ this.maxCharactersWarning = false;
88
+ this.minCharactersUnattained = false;
89
+ this.maxValueExceeded = false;
90
+ this.minValueUnattained = false;
91
+ this.ariaActiveDescendant = undefined;
92
+ this.ariaAutocomplete = undefined;
93
+ this.ariaExpanded = undefined;
94
+ this.ariaOwns = undefined;
95
+ this.autocapitalize = "off";
96
+ this.autocomplete = "off";
97
+ this.autocorrect = "off";
98
+ this.autofocus = false;
99
+ this.disabled = false;
100
+ this.fullWidth = false;
101
+ this.helperText = "";
102
+ this.hideCharCount = false;
103
+ this.hideLabel = false;
104
+ this.hiddenInput = true;
105
+ this.inputId = `ic-text-field-input-${inputIds++}`;
106
+ this.inputmode = "text";
107
+ this.label = undefined;
108
+ this.max = undefined;
109
+ this.maxCharacters = 0;
110
+ this.min = undefined;
111
+ this.minCharacters = 0;
112
+ this.name = this.inputId;
113
+ this.placeholder = "";
114
+ this.readonly = false;
115
+ this.required = false;
116
+ this.resize = false;
117
+ this.role = undefined;
118
+ this.rows = 1;
119
+ this.size = "medium";
120
+ this.spellcheck = false;
121
+ this.theme = "inherit";
122
+ this.truncateValue = undefined;
123
+ this.type = "text";
124
+ this.validationInline = false;
125
+ this.validationInlineInternal = false;
126
+ this.validationStatus = "";
127
+ this.validationText = "";
128
+ this.debounce = 0;
129
+ this.value = "";
130
+ this.initialValue = this.value;
131
+ }
132
+ watchDisabledHandler() {
133
+ removeDisabledFalse(this.disabled, this.el);
134
+ }
135
+ debounceChanged() {
136
+ this.icChange = debounceEvent(this.icChange, this.debounce);
137
+ }
138
+ watchValueHandler(newValue) {
139
+ let value;
140
+ if (this.maxCharacters > 0) {
141
+ value = newValue.substring(0, this.maxCharacters);
142
+ this.value = value;
143
+ }
144
+ else {
145
+ value = newValue;
146
+ }
147
+ if (this.inputEl && this.inputEl.value !== value) {
148
+ this.inputEl.value = value;
149
+ }
150
+ this.getMaxValueExceeded(value);
151
+ this.getMaxCharactersReached(value);
152
+ this.icChange.emit({ value });
153
+ }
154
+ connectedCallback() {
155
+ this.debounceChanged();
156
+ }
157
+ disconnectedCallback() {
158
+ var _a;
159
+ removeFormResetListener(this.el, this.handleFormReset);
160
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
161
+ }
162
+ componentWillLoad() {
163
+ if (this.value !== this.initialValue) {
164
+ this.watchValueHandler(this.value);
165
+ }
166
+ else if (this.maxCharacters > 0) {
167
+ this.value = this.value.substring(0, this.maxCharacters);
168
+ }
169
+ this.getMaxValueExceeded(this.value);
170
+ this.getMaxCharactersReached(this.value);
171
+ this.inheritedAttributes = inheritAttributes(this.el, MUTABLE_ATTRIBUTES);
172
+ if (this.readonly) {
173
+ this.maxValueExceeded = false;
174
+ this.minValueUnattained = false;
175
+ }
176
+ addFormResetListener(this.el, this.handleFormReset);
177
+ removeDisabledFalse(this.disabled, this.el);
178
+ }
179
+ componentDidLoad() {
180
+ onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Text Field");
181
+ if (this.validationInlineInternal) {
182
+ this.getValidationText.emit({ value: this.validationText });
183
+ }
184
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
185
+ this.hostMutationObserver.observe(this.el, {
186
+ attributes: true,
187
+ childList: true,
188
+ });
189
+ if (this.autofocus && !this.disabled && !this.readonly) {
190
+ this.interval = setInterval(this.checkChildHydration, 50);
191
+ }
192
+ }
193
+ handleKeyDown(ev) {
194
+ this.icKeydown.emit({ event: ev });
195
+ this.maxCharactersWarning = this.maxCharactersReached;
196
+ }
197
+ /**
198
+ * Sets focus on the native `input`.
199
+ */
200
+ async setFocus() {
201
+ var _a;
202
+ (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
203
+ }
204
+ render() {
205
+ const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersWarning, maxCharactersReached, minCharacters, minCharactersUnattained, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, } = this;
206
+ const disabledMode = readonly || disabled;
207
+ const currentStatus = maxValueExceeded ||
208
+ minValueUnattained ||
209
+ minCharactersUnattained ||
210
+ maxCharactersWarning
211
+ ? maxCharactersWarning
212
+ ? IcInformationStatus.Warning
213
+ : IcInformationStatus.Error
214
+ : validationStatus;
215
+ const currentValidationText = maxCharactersWarning
216
+ ? `Maximum input is ${maxCharacters} characters`
217
+ : maxValueExceeded
218
+ ? `Maximum value of ${max} exceeded`
219
+ : minValueUnattained
220
+ ? `Minimum value of ${min} not met`
221
+ : minCharactersUnattained
222
+ ? `Minimum input is ${minCharacters} characters`
223
+ : validationText;
224
+ const maxNumChars = readonly ? 0 : maxCharacters;
225
+ const messageAriaLive = maxCharactersWarning ||
226
+ maxValueExceeded ||
227
+ minValueUnattained ||
228
+ currentStatus === IcInformationStatus.Error
229
+ ? "assertive"
230
+ : "polite";
231
+ const showStatusText = this.hasStatus(currentStatus) &&
232
+ !(currentStatus == IcInformationStatus.Success && validationInline) &&
233
+ !validationInlineInternal;
234
+ const multiline = rows > 1;
235
+ const charsRemaining = maxNumChars - numChars;
236
+ const hiddenRemainingCharCountDesc = `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`;
237
+ const hiddenCharCountDescId = maxCharacters > 0 ? `${inputId}-char-count-desc` : "";
238
+ const describedBy = `${hiddenCharCountDescId} ${getInputDescribedByText(inputId, helperText !== "", showStatusText)}`.trim();
239
+ const disabledText = disabledMode && !readonly;
240
+ const showLeftIcon = !!this.el.querySelector(`[slot="icon"]`) && !disabledText;
241
+ const invalid = `${currentStatus === IcInformationStatus.Error}`;
242
+ hiddenInput
243
+ ? renderHiddenInput(true, this.el, name, value, disabledMode)
244
+ : removeHiddenInput(this.el);
245
+ return (h(Host, { class: {
246
+ "ic-text-field-full-width": fullWidth,
247
+ [`ic-theme-${theme}`]: theme !== "inherit",
248
+ "ic-text-field-disabled": disabledMode,
249
+ } }, h("ic-input-container", { readonly: readonly, disabled: disabledMode }, !this.hideLabel && (h("ic-input-label", { for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly })), h("ic-input-component-container", { size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (h("span", { class: {
250
+ readonly,
251
+ "has-value": this.getNumberOfCharacters(value) > 0,
252
+ }, slot: "left-icon" }, h("slot", { name: "icon" }))), !multiline ? (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: this.type, min: min, max: max, value: value, class: {
253
+ "no-left-pad": !showLeftIcon && readonly,
254
+ readonly,
255
+ "truncate-value": truncateValue,
256
+ }, placeholder: placeholder ? placeholder : "", required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant": this.ariaActiveDescendant, "aria-expanded": this.ariaExpanded, "aria-owns": this.ariaOwns, autocomplete: this.autocomplete, autocapitalize: this.autocapitalize, spellcheck: spellcheck, inputmode: inputmode, role: this.role, maxlength: maxCharactersReached ? maxCharacters : null, minlength: minCharactersUnattained ? minCharacters : null }, this.inheritedAttributes))) : (h("textarea", Object.assign({ id: inputId, class: {
257
+ "no-resize": resize === false || readonly,
258
+ "no-left-pad": !showLeftIcon && readonly,
259
+ readonly,
260
+ }, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder ? placeholder : "", readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: this.autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : null, minlength: minCharactersUnattained ? minCharacters : null }, this.inheritedAttributes))), isSlotUsed(this.el, "clear-button") && (h("slot", { name: "clear-button" })), isSlotUsed(this.el, "search-submit-button") && (h("slot", { name: "search-submit-button" }))), isSlotUsed(this.el, "menu") && h("slot", { name: "menu" }), (!isEmptyString(validationStatus) ||
261
+ !isEmptyString(validationText) ||
262
+ maxNumChars > 0 ||
263
+ maxValueExceeded ||
264
+ maxCharactersWarning ||
265
+ minCharactersUnattained ||
266
+ minValueUnattained) &&
267
+ !validationInlineInternal && (h("ic-input-validation", { status: this.hasStatus(currentStatus) === false ||
268
+ (currentStatus === IcInformationStatus.Success &&
269
+ validationInline) ||
270
+ validationInlineInternal
271
+ ? ""
272
+ : currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { slot: "validation-message-adornment" }, !hideCharCount && (h("ic-typography", { variant: "caption", class: "char-count-text" }, h("span", { class: "char-count" }, numChars, "/", maxNumChars))), h("span", { class: "remaining-char-count-desc", "aria-live": "polite" }, hiddenRemainingCharCountDesc), h("span", { hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters."))))))));
273
+ }
274
+ get el() { return this; }
275
+ static get watchers() { return {
276
+ "disabled": ["watchDisabledHandler"],
277
+ "debounce": ["debounceChanged"],
278
+ "value": ["watchValueHandler"]
279
+ }; }
280
+ static get style() { return icTextFieldCss; }
281
+ }, [1, "ic-text-field", {
282
+ "ariaActiveDescendant": [1, "aria-active-descendant"],
283
+ "ariaAutocomplete": [1, "aria-autocomplete"],
284
+ "ariaExpanded": [1, "aria-expanded"],
285
+ "ariaOwns": [1, "aria-owns"],
286
+ "autocapitalize": [1],
287
+ "autocomplete": [1],
288
+ "autocorrect": [1],
289
+ "autofocus": [4],
290
+ "disabled": [4],
291
+ "fullWidth": [4, "full-width"],
292
+ "helperText": [1, "helper-text"],
293
+ "hideCharCount": [4, "hide-char-count"],
294
+ "hideLabel": [4, "hide-label"],
295
+ "hiddenInput": [4, "hidden-input"],
296
+ "inputId": [1, "input-id"],
297
+ "inputmode": [1],
298
+ "label": [1],
299
+ "max": [8],
300
+ "maxCharacters": [2, "max-characters"],
301
+ "min": [8],
302
+ "minCharacters": [2, "min-characters"],
303
+ "name": [1],
304
+ "placeholder": [1],
305
+ "readonly": [516],
306
+ "required": [4],
307
+ "resize": [4],
308
+ "role": [1],
309
+ "rows": [2],
310
+ "size": [1],
311
+ "spellcheck": [4],
312
+ "theme": [1],
313
+ "truncateValue": [4, "truncate-value"],
314
+ "type": [1],
315
+ "validationInline": [4, "validation-inline"],
316
+ "validationInlineInternal": [4, "validation-inline-internal"],
317
+ "validationStatus": [1, "validation-status"],
318
+ "validationText": [1, "validation-text"],
319
+ "debounce": [2],
320
+ "value": [1537],
321
+ "numChars": [32],
322
+ "maxCharactersReached": [32],
323
+ "maxCharactersWarning": [32],
324
+ "minCharactersUnattained": [32],
325
+ "maxValueExceeded": [32],
326
+ "minValueUnattained": [32],
327
+ "initialValue": [32],
328
+ "setFocus": [64]
329
+ }, [[0, "keydown", "handleKeyDown"]], {
330
+ "disabled": ["watchDisabledHandler"],
331
+ "debounce": ["debounceChanged"],
332
+ "value": ["watchValueHandler"]
333
+ }]);
334
+ function defineCustomElement$1() {
335
+ if (typeof customElements === "undefined") {
336
+ return;
337
+ }
338
+ const components = ["ic-text-field", "ic-input-component-container", "ic-input-container", "ic-input-label", "ic-input-validation", "ic-typography"];
339
+ components.forEach(tagName => { switch (tagName) {
340
+ case "ic-text-field":
341
+ if (!customElements.get(tagName)) {
342
+ customElements.define(tagName, TextField);
343
+ }
344
+ break;
345
+ case "ic-input-component-container":
346
+ if (!customElements.get(tagName)) {
347
+ defineCustomElement$6();
348
+ }
349
+ break;
350
+ case "ic-input-container":
351
+ if (!customElements.get(tagName)) {
352
+ defineCustomElement$5();
353
+ }
354
+ break;
355
+ case "ic-input-label":
356
+ if (!customElements.get(tagName)) {
357
+ defineCustomElement$4();
358
+ }
359
+ break;
360
+ case "ic-input-validation":
361
+ if (!customElements.get(tagName)) {
362
+ defineCustomElement$3();
363
+ }
364
+ break;
365
+ case "ic-typography":
366
+ if (!customElements.get(tagName)) {
367
+ defineCustomElement$2();
368
+ }
369
+ break;
370
+ } });
371
+ }
2
372
 
3
373
  const IcTextField = TextField;
4
374
  const defineCustomElement = defineCustomElement$1;
@@ -1 +1 @@
1
- {"file":"ic-text-field.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"file":"ic-text-field.js","mappings":";;;;;;;;AAAA,MAAM,cAAc,GAAG,4uMAA4uM;;AC4CnwM,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,MAAM,kBAAkB,GAAG,CAAC,GAAG,iBAAiB,EAAE,OAAO,CAAC,CAAC;MAU9C,SAAS;;;;;;;;;;;QACZ,wBAAmB,GAA4B,EAAE,CAAC;QAElD,yBAAoB,GAAqB,IAAI,CAAC;QA0U9C,wBAAmB,GAAG;;YAC5B,MAAM,EAAE,GAAG,MAAA,IAAI,CAAC,EAAE,CAAC,UAAU,0CAAE,aAAa,CAAC,eAAe,CAAC,CAAC;YAC9D,IAAI,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;gBAC3C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAChB,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC9B;SACF,CAAC;QAiBM,0BAAqB,GAAG,CAAC,KAAa,KAC5C,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAEnD,wBAAmB,GAAG,CAAC,KAAa;YAC1C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;YAElD,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;gBAC1B,IAAI,CA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C,YAAY,IACrB,QAAQ,OAAG,WAAW,CAClB,CACO,CACjB,EACD,YAAM,KAAK,EAAC,2BAA2B,eAAW,QAAQ,IACvD,4BAA4B,CACxB,EACP,YAAM,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,qBAAqB,uCACX,WAAW,iBACtC,CACH,CACP,CACmB,CACvB,CACgB,CAChB,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/ic-text-field/ic-text-field.css?tag=ic-text-field&encapsulation=shadow","src/components/ic-text-field/ic-text-field.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n:host {\n /**\n * @prop --input-width: Width of the input field\n */\n display: block;\n\n --ic-input-label-helpertext-padding: var(--ic-space-xxs);\n --border-color: var(--ic-text-field-border-neutral);\n --border-color-hover: var(--ic-text-field-border-neutral-hover);\n --border-color-pressed: var(--ic-text-field-border-neutral-pressed);\n --border-color-disabled: var(--ic-text-field-border-disabled);\n --border-color-error: var(--ic-text-field-border-error);\n --border-color-error-hover: var(--ic-text-field-border-error-hover);\n --border-color-error-pressed: var(--ic-text-field-border-error-pressed);\n --border-color-success: var(--ic-text-field-border-success);\n --border-color-success-hover: var(--ic-text-field-border-success-hover);\n --border-color-success-pressed: var(--ic-text-field-border-success-pressed);\n --border-color-warning: var(--ic-text-field-border-warning);\n --border-color-warning-hover: var(--ic-text-field-border-warning-hover);\n --border-color-warning-pressed: var(--ic-text-field-border-warning-pressed);\n --ic-input-label-text-color: var(--ic-text-field-label);\n --ic-input-label-helper-text-color: var(--ic-text-field-subtitle);\n --ic-input-validation-status-text-color: var(--ic-text-field-state-text);\n --ic-input-validation-error: var(--ic-text-field-state-icon-error);\n --ic-input-validation-warning-icon-color: var(\n --ic-text-field-state-icon-warning\n );\n --ic-input-validation-success-icon-color: var(\n --ic-text-field-state-icon-success\n );\n --ic-input-component-container-success-icon-inline-color: var(\n --ic-text-field-state-icon-success\n );\n}\n\n:host(.ic-text-field-disabled) {\n --ic-input-label-text-color: var(--ic-text-field-label-disabled);\n --ic-input-label-helper-text-color: var(--ic-text-field-subtitle-disabled);\n --text-field-placeholder-color: var(\n --ic-text-field-text-area-placeholder-text-disabled\n );\n}\n\n:host(.ic-text-field-full-width) {\n width: 100%;\n}\n\n::placeholder {\n color: var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );\n opacity: 1;\n}\n\ninput,\ntextarea {\n border: 0;\n border-radius: var(--ic-border-radius);\n color: var(--text-field-text-color, var(--ic-text-field-text));\n background-color: var(--input-bg-color, var(--ic-text-field-background));\n line-height: 1.5rem;\n letter-spacing: 0.005rem;\n width: 100%;\n padding-right: var(--ic-space-xs);\n padding-left: var(--ic-space-xs);\n caret-color: var(\n --text-field-typing-cursor,\n var(--ic-text-field-typing-cursor)\n );\n}\n\ntextarea {\n min-height: var(--ic-space-lg);\n resize: vertical;\n padding-top: 0.375rem;\n}\n\ninput:focus,\ntextarea:focus {\n border: 0;\n outline: 0;\n}\n\ninput:disabled,\ntextarea:disabled {\n color: var(\n --text-field-disabled-text-color,\n var(--ic-text-field-text-disabled)\n );\n}\n\ninput.readonly,\ntextarea.readonly {\n color: var(--ic-text-field-read-only-input-text-internal);\n}\n\n/* Chrome, Safari, Edge */\ninput::-webkit-outer-spin-button,\ninput::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\ninput[type=\"number\"] {\n -moz-appearance: textfield;\n}\n\ntextarea.no-resize {\n resize: none;\n}\n\n.char-count-text {\n --ic-typography-color: var(--ic-text-field-character-limit);\n\n padding-right: var(--ic-space-xxxs);\n}\n\n:host(.ic-text-field-disabled) .char-count-text {\n --ic-typography-color: var(--ic-text-field-character-limit-disabled);\n}\n\n.no-left-pad {\n padding-left: 0;\n}\n\n::slotted([slot=\"icon\"]) {\n fill: var(--ic-text-field-text-disabled);\n}\n\n.has-value ::slotted([slot=\"icon\"]) {\n fill: var(--ic-text-field-input-internal-icon);\n}\n\n.char-count {\n margin-right: calc(-1 * var(--ic-space-xxxs));\n}\n\n.remaining-char-count-desc {\n position: absolute;\n left: -9999px;\n}\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration,\ninput[type=\"search\"]::-webkit-search-results-button,\ninput[type=\"search\"]::-webkit-search-results-decoration {\n display: none;\n}\n\ninput[type=\"search\"].truncate-value {\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n@media (forced-colors: active) {\n input.readonly,\n textarea.readonly {\n color: canvastext;\n }\n\n .has-value ::slotted([slot=\"icon\"]) {\n fill: currentcolor;\n }\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n Method,\n h,\n forceUpdate,\n} from \"@stencil/core\";\nimport {\n IcInformationStatus,\n IcAutocompleteTypes,\n IcAutocorrectStates,\n IcInformationStatusOrEmpty,\n IcValueEventDetail,\n IcSizesNoLarge,\n IcThemeMode,\n} from \"../../utils/types\";\nimport {\n inheritAttributes,\n debounceEvent,\n getInputDescribedByText,\n renderHiddenInput,\n isEmptyString,\n onComponentRequiredPropUndefined,\n addFormResetListener,\n removeFormResetListener,\n isSlotUsed,\n removeDisabledFalse,\n checkSlotInChildMutations,\n removeHiddenInput,\n} from \"../../utils/helpers\";\nimport { IC_INHERITED_ARIA } from \"../../utils/constants\";\nimport {\n IcAriaAutocompleteTypes,\n IcTextFieldInputModes,\n IcTextFieldTypes,\n} from \"./ic-text-field.types\";\n\nlet inputIds = 0;\nconst MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, \"title\"];\n\n/**\n * @slot icon - Content will be placed to the left of the text input.\n */\n@Component({\n tag: \"ic-text-field\",\n styleUrl: \"ic-text-field.css\",\n shadow: true,\n})\nexport class TextField {\n private inheritedAttributes: { [k: string]: string } = {};\n private inputEl: HTMLInputElement | HTMLTextAreaElement;\n private hostMutationObserver: MutationObserver = null;\n private interval: ReturnType<typeof setInterval>;\n\n @Element() el: HTMLIcTextFieldElement;\n\n @State() numChars: number = 0;\n @State() maxCharactersReached: boolean = false;\n @State() maxCharactersWarning: boolean = false;\n @State() minCharactersUnattained: boolean = false;\n @State() maxValueExceeded: boolean = false;\n @State() minValueUnattained: boolean = false;\n\n /**\n * @slot clear-button - an ic-button clear component will render as an end adornment to the input.\n * @slot search-submit-button - an ic-button search submit component will render as an end adornment to the input.\n * @slot menu - an ic-menu component will appear below the input.\n */\n\n /**\n * @internal The active element when focus is on the ic-menu items.\n */\n @Prop() ariaActiveDescendant?: string;\n\n /**\n * @internal Used to identify whether inputting any text triggers more predictions\n */\n @Prop() ariaAutocomplete: IcAriaAutocompleteTypes = undefined;\n\n /**\n * @internal Used to identify if the slotted menu is rendered\n */\n @Prop() ariaExpanded: string;\n\n /**\n * @internal Used to identify any related child component\n */\n @Prop() ariaOwns: string;\n\n /**\n * The automatic capitalisation of the text value as it is entered/edited by the user.\n * Available options: \"off\", \"none\", \"on\", \"sentences\", \"words\", \"characters\".\n */\n @Prop() autocapitalize = \"off\";\n\n /**\n * The state of autocompletion the browser can apply on the text value.\n */\n @Prop() autocomplete: IcAutocompleteTypes = \"off\";\n\n /**\n * The state of autocorrection the browser can apply when the user is entering/editing the text value.\n */\n @Prop() autocorrect: IcAutocorrectStates = \"off\";\n\n /**\n * If `true`, the form control will have input focus when the page loads.\n */\n @Prop() autofocus = false;\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * Specify whether the text field fills the full width of the container.\n * If `true`, this overrides the --input-width CSS variable.\n */\n @Prop() fullWidth: boolean = false;\n\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText: string = \"\";\n\n /**\n * If `true`, the character count which is displayed when `maxCharacters` is set will be visually hidden.\n */\n @Prop() hideCharCount: boolean = false;\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel: boolean = false;\n\n /**\n * @internal If `true`, the hidden form input will stop rendering for form submission.\n */\n @Prop() hiddenInput: boolean = true;\n\n /**\n * The ID for the input.\n */\n @Prop() inputId?: string = `ic-text-field-input-${inputIds++}`;\n\n /**\n * A hint to the browser for which keyboard to display.\n * Possible values: `\"none\"`, `\"text\"`, `\"tel\"`, `\"url\"`,\n * `\"email\"`, `\"numeric\"`, `\"decimal\"`, and `\"search\"`.\n */\n @Prop() inputmode: IcTextFieldInputModes = \"text\";\n\n /**\n * The label for the input.\n */\n @Prop() label!: string;\n\n /**\n * The maximum number that can be accepted as a value, when `type` is `number` and `rows` is `1`. (NOTE: Ensure to include visual indication of max value in `helperText` or `label`)\n */\n @Prop() max: string | number = undefined;\n\n /**\n * The count of characters in the field. Will display a warning if the bound is reached. (NOTE: If the value of the text field has been set using the `value` prop, it will be truncated to this number of characters)\n */\n @Prop() maxCharacters: number = 0;\n\n /**\n * The minimum number that can be accepted as a value, when `type` is `number` and `rows` is `1`. (NOTE: Ensure to include visual indication of min value in `helperText` or `label`)\n */\n @Prop() min: string | number = undefined;\n\n /**\n * The minimum number of characters that can be entered in the field.\n */\n @Prop() minCharacters: number = 0;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name: string = this.inputId;\n\n /**\n * The placeholder value to be displayed.\n */\n @Prop() placeholder: string = \"\";\n\n /**\n * If `true`, the read only state will be set.\n */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /**\n * If `true`, the input will require a value.\n */\n @Prop() required: boolean = false;\n\n /**\n * If `true`, the multiline text area will be resizeable.\n */\n @Prop() resize: boolean = false;\n\n /**\n * @internal Used to set the role if not default textbox;\n */\n @Prop() role: string;\n\n /**\n * The number of rows to transform the text field into a text area with a specific height.\n */\n @Prop() rows: number = 1;\n\n /**\n * The size of the text field component.\n */\n @Prop() size?: IcSizesNoLarge = \"medium\";\n\n /**\n * If `true`, the value of the text field will have its spelling and grammar checked.\n */\n @Prop() spellcheck: boolean = false;\n\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n @Prop() theme: IcThemeMode = \"inherit\";\n\n /**\n * @internal If `true`, an ellipsis will be displayed at the end of the value if the value is longer than the container.\n */\n @Prop() truncateValue?: boolean;\n\n /**\n * The type of control to display. The default type is text.\n */\n @Prop() type: IcTextFieldTypes = \"text\";\n\n /**\n * If `true`, the icon in input control will be displayed - only applies when validationStatus ='success'.\n */\n @Prop() validationInline: boolean = false;\n\n /**\n * @internal If `true`, the validation will display inline.\n */\n @Prop() validationInlineInternal: boolean = false;\n\n /**\n * The validation state - e.g. 'error' | 'warning' | 'success'.\n */\n @Prop() validationStatus: IcInformationStatusOrEmpty = \"\";\n\n /**\n * The validation state - e.g. 'error' | 'warning' | 'success'.\n */\n @Prop() validationText: string = \"\";\n\n /**\n * The amount of time, in milliseconds, to wait to trigger the `icChange` event after each keystroke.\n */\n @Prop() debounce: number = 0;\n\n @Watch(\"debounce\")\n private debounceChanged() {\n this.icChange = debounceEvent(this.icChange, this.debounce);\n }\n\n /**\n * The value of the text field.\n */\n @Prop({ reflect: true, mutable: true }) value: string = \"\";\n @State() initialValue = this.value;\n\n @Watch(\"value\")\n private watchValueHandler(newValue: string): void {\n let value;\n\n if (this.maxCharacters > 0) {\n value = newValue.substring(0, this.maxCharacters);\n this.value = value;\n } else {\n value = newValue;\n }\n\n if (this.inputEl && this.inputEl.value !== value) {\n this.inputEl.value = value;\n }\n\n this.getMaxValueExceeded(value);\n\n this.getMaxCharactersReached(value);\n\n this.icChange.emit({ value });\n }\n\n /**\n * @internal Emitted when the validationInlineInternal is `true`\n */\n @Event() getValidationText: EventEmitter<IcValueEventDetail>;\n\n /**\n * Emitted when input loses focus.\n */\n @Event() icBlur: EventEmitter<IcValueEventDetail>;\n\n /**\n * Emitted when the value has changed.\n */\n @Event() icChange: EventEmitter<IcValueEventDetail>;\n\n /**\n * Emitted when input gains focus.\n */\n @Event() icFocus: EventEmitter<IcValueEventDetail>;\n\n /**\n * Emitted when a keyboard input occurred.\n */\n @Event() icInput: EventEmitter<IcValueEventDetail>;\n\n /**\n * Emitted when a keydown event occurred.\n */\n @Event() icKeydown: EventEmitter<{ event: KeyboardEvent }>;\n\n connectedCallback(): void {\n this.debounceChanged();\n }\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n this.hostMutationObserver?.disconnect();\n }\n\n componentWillLoad(): void {\n if (this.value !== this.initialValue) {\n this.watchValueHandler(this.value);\n } else if (this.maxCharacters > 0) {\n this.value = this.value.substring(0, this.maxCharacters);\n }\n\n this.getMaxValueExceeded(this.value);\n this.getMaxCharactersReached(this.value);\n\n this.inheritedAttributes = inheritAttributes(this.el, MUTABLE_ATTRIBUTES);\n\n if (this.readonly) {\n this.maxValueExceeded = false;\n this.minValueUnattained = false;\n }\n\n addFormResetListener(this.el, this.handleFormReset);\n\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Text Field\"\n );\n if (this.validationInlineInternal) {\n this.getValidationText.emit({ value: this.validationText });\n }\n\n this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);\n this.hostMutationObserver.observe(this.el, {\n attributes: true,\n childList: true,\n });\n\n if (this.autofocus && !this.disabled && !this.readonly) {\n this.interval = setInterval(this.checkChildHydration, 50);\n }\n }\n\n private checkChildHydration = () => {\n const el = this.el.shadowRoot?.querySelector(\"ic-typography\");\n if (el && el.classList.contains(\"hydrated\")) {\n this.setFocus();\n clearInterval(this.interval);\n }\n };\n\n @Listen(\"keydown\", {})\n handleKeyDown(ev: KeyboardEvent): void {\n this.icKeydown.emit({ event: ev });\n this.maxCharactersWarning = this.maxCharactersReached;\n }\n\n /**\n * Sets focus on the native `input`.\n */\n\n @Method()\n async setFocus() {\n this.inputEl?.focus();\n }\n\n private getNumberOfCharacters = (value: string) =>\n value !== null && value !== undefined ? value.length : 0;\n\n private getMaxValueExceeded = (value: string) => {\n this.numChars = this.getNumberOfCharacters(value);\n\n if (this.type === \"number\") {\n this.minValueUnattained = value && Number(value) < Number(this.min);\n this.maxValueExceeded = Number(value) > Number(this.max);\n }\n };\n\n private getMaxCharactersReached = (value: string) => {\n this.numChars = this.getNumberOfCharacters(value);\n\n this.maxCharactersReached =\n this.maxCharacters > 0 ? this.numChars >= this.maxCharacters : false;\n\n if (this.maxCharactersWarning && !this.maxCharactersReached) {\n this.maxCharactersWarning = false;\n }\n };\n\n private onInput = (ev: Event) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.icInput.emit({ value: this.value });\n };\n\n private onBlur = (ev: Event) => {\n const value = (ev.target as HTMLInputElement).value;\n this.numChars = value.length;\n this.minCharactersUnattained =\n this.minCharacters > 0 ? this.numChars < this.minCharacters : false;\n this.icBlur.emit({ value: value });\n };\n\n private onFocus = (ev: Event) => {\n this.icFocus.emit({ value: (ev.target as HTMLInputElement).value });\n };\n\n private hasStatus = (status: IcInformationStatusOrEmpty) =>\n status !== \"\" && !this.disabled;\n\n private handleFormReset = (): void => {\n this.value = this.initialValue;\n };\n\n // triggered when attributes of host element change\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n let forceComponentUpdate = false;\n mutationList.forEach(\n ({ attributeName, type, addedNodes, removedNodes }) => {\n if (MUTABLE_ATTRIBUTES.includes(attributeName)) {\n this.inheritedAttributes[attributeName] =\n this.el.getAttribute(attributeName);\n forceComponentUpdate = true;\n } else if (type === \"childList\") {\n forceComponentUpdate = checkSlotInChildMutations(\n addedNodes,\n removedNodes,\n \"icon\"\n );\n }\n }\n );\n if (forceComponentUpdate) {\n forceUpdate(this);\n }\n };\n\n render() {\n const {\n inputId,\n name,\n label,\n required,\n size,\n placeholder,\n helperText,\n hideCharCount,\n rows,\n resize,\n disabled,\n value,\n min,\n max,\n numChars,\n readonly,\n maxCharacters,\n maxCharactersWarning,\n maxCharactersReached,\n minCharacters,\n minCharactersUnattained,\n minValueUnattained,\n maxValueExceeded,\n validationStatus,\n validationText,\n validationInline,\n validationInlineInternal,\n spellcheck,\n inputmode,\n fullWidth,\n truncateValue,\n hiddenInput,\n theme,\n } = this;\n\n const disabledMode = readonly || disabled;\n\n const currentStatus =\n maxValueExceeded ||\n minValueUnattained ||\n minCharactersUnattained ||\n maxCharactersWarning\n ? maxCharactersWarning\n ? IcInformationStatus.Warning\n : IcInformationStatus.Error\n : validationStatus;\n\n const currentValidationText = maxCharactersWarning\n ? `Maximum input is ${maxCharacters} characters`\n : maxValueExceeded\n ? `Maximum value of ${max} exceeded`\n : minValueUnattained\n ? `Minimum value of ${min} not met`\n : minCharactersUnattained\n ? `Minimum input is ${minCharacters} characters`\n : validationText;\n\n const maxNumChars = readonly ? 0 : maxCharacters;\n const messageAriaLive =\n maxCharactersWarning ||\n maxValueExceeded ||\n minValueUnattained ||\n currentStatus === IcInformationStatus.Error\n ? \"assertive\"\n : \"polite\";\n\n const showStatusText =\n this.hasStatus(currentStatus) &&\n !(currentStatus == IcInformationStatus.Success && validationInline) &&\n !validationInlineInternal;\n\n const multiline = rows > 1;\n\n const charsRemaining = maxNumChars - numChars;\n const hiddenRemainingCharCountDesc = `${charsRemaining} character${\n charsRemaining === 1 ? \"\" : \"s\"\n } remaining.`;\n const hiddenCharCountDescId =\n maxCharacters > 0 ? `${inputId}-char-count-desc` : \"\";\n\n const describedBy = `${hiddenCharCountDescId} ${getInputDescribedByText(\n inputId,\n helperText !== \"\",\n showStatusText\n )}`.trim();\n\n const disabledText = disabledMode && !readonly;\n const showLeftIcon =\n !!this.el.querySelector(`[slot=\"icon\"]`) && !disabledText;\n\n const invalid = `${currentStatus === IcInformationStatus.Error}`;\n\n hiddenInput\n ? renderHiddenInput(true, this.el, name, value, disabledMode)\n : removeHiddenInput(this.el);\n\n return (\n <Host\n class={{\n \"ic-text-field-full-width\": fullWidth,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n \"ic-text-field-disabled\": disabledMode,\n }}\n >\n <ic-input-container readonly={readonly} disabled={disabledMode}>\n {!this.hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n required={required}\n disabled={disabledText}\n readonly={readonly}\n ></ic-input-label>\n )}\n\n <ic-input-component-container\n size={size}\n validationStatus={currentStatus}\n multiLine={multiline}\n disabled={disabledMode}\n readonly={readonly}\n validationInline={validationInline}\n fullWidth={fullWidth}\n >\n {showLeftIcon && (\n <span\n class={{\n readonly,\n \"has-value\": this.getNumberOfCharacters(value) > 0,\n }}\n slot=\"left-icon\"\n >\n <slot name=\"icon\" />\n </span>\n )}\n\n {!multiline ? (\n <input\n id={inputId}\n name={name}\n ref={(el) => (this.inputEl = el as HTMLInputElement)}\n type={this.type}\n min={min}\n max={max}\n value={value}\n class={{\n \"no-left-pad\": !showLeftIcon && readonly,\n readonly,\n \"truncate-value\": truncateValue,\n }}\n placeholder={placeholder ? placeholder : \"\"}\n required={required}\n disabled={disabledMode}\n readonly={readonly}\n onInput={this.onInput}\n onBlur={this.onBlur}\n onFocus={this.onFocus}\n aria-label={label}\n aria-describedby={describedBy}\n aria-invalid={invalid}\n aria-activedescendant={this.ariaActiveDescendant}\n aria-expanded={this.ariaExpanded}\n aria-owns={this.ariaOwns}\n autocomplete={this.autocomplete}\n autocapitalize={this.autocapitalize}\n spellcheck={spellcheck}\n inputmode={inputmode}\n role={this.role}\n maxlength={maxCharactersReached ? maxCharacters : null}\n minlength={minCharactersUnattained ? minCharacters : null}\n {...this.inheritedAttributes}\n ></input>\n ) : (\n <textarea\n id={inputId}\n class={{\n \"no-resize\": resize === false || readonly,\n \"no-left-pad\": !showLeftIcon && readonly,\n readonly,\n }}\n name={name}\n ref={(el) => (this.inputEl = el as HTMLTextAreaElement)}\n value={value}\n rows={rows}\n required={required}\n disabled={disabledMode}\n placeholder={placeholder ? placeholder : \"\"}\n readonly={readonly}\n onInput={this.onInput}\n onBlur={this.onBlur}\n onFocus={this.onFocus}\n aria-label={label}\n aria-describedby={describedBy}\n aria-invalid={invalid}\n autocapitalize={this.autocapitalize}\n spellcheck={spellcheck}\n inputmode={inputmode}\n maxlength={maxCharactersReached ? maxCharacters : null}\n minlength={minCharactersUnattained ? minCharacters : null}\n {...this.inheritedAttributes}\n ></textarea>\n )}\n {isSlotUsed(this.el, \"clear-button\") && (\n <slot name=\"clear-button\"></slot>\n )}\n {isSlotUsed(this.el, \"search-submit-button\") && (\n <slot name=\"search-submit-button\"></slot>\n )}\n </ic-input-component-container>\n {isSlotUsed(this.el, \"menu\") && <slot name=\"menu\"></slot>}\n {(!isEmptyString(validationStatus) ||\n !isEmptyString(validationText) ||\n maxNumChars > 0 ||\n maxValueExceeded ||\n maxCharactersWarning ||\n minCharactersUnattained ||\n minValueUnattained) &&\n !validationInlineInternal && (\n <ic-input-validation\n status={\n this.hasStatus(currentStatus) === false ||\n (currentStatus === IcInformationStatus.Success &&\n validationInline) ||\n validationInlineInternal\n ? \"\"\n : currentStatus\n }\n message={showStatusText ? currentValidationText : \"\"}\n ariaLiveMode={messageAriaLive}\n for={inputId}\n fullWidth={fullWidth}\n >\n {!readonly && maxNumChars > 0 && (\n <div slot=\"validation-message-adornment\">\n {!hideCharCount && (\n <ic-typography variant=\"caption\" class=\"char-count-text\">\n <span class=\"char-count\">\n {numChars}/{maxNumChars}\n </span>\n </ic-typography>\n )}\n <span class=\"remaining-char-count-desc\" aria-live=\"polite\">\n {hiddenRemainingCharCountDesc}\n </span>\n <span hidden={true} id={hiddenCharCountDescId}>\n Field can contain a maximum of {maxNumChars} characters.\n </span>\n </div>\n )}\n </ic-input-validation>\n )}\n </ic-input-container>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { X as getBrandColorBrightness, Y as BLACK_MIN_COLOR_BRIGHTNESS, Z as WHITE_MAX_COLOR_BRIGHTNESS, j as convertToRGBA, k as getBrandForegroundAppearance } from './helpers.js';
2
+ import { Y as getBrandColorBrightness, Z as BLACK_MIN_COLOR_BRIGHTNESS, _ as WHITE_MAX_COLOR_BRIGHTNESS, j as convertToRGBA, k as getBrandForegroundAppearance } from './helpers.js';
3
3
 
4
4
  const Theme = /*@__PURE__*/ proxyCustomElement(class Theme extends HTMLElement {
5
5
  constructor() {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { i as isSlotUsed, N as getSlot, m as getCurrentDeviceSize, D as DEVICE_SIZES, k as getBrandForegroundAppearance, h as onComponentPropUndefinedChange, c as checkResizeObserver, o as onComponentRequiredPropUndefined, e as IcBrandForegroundEnum, T as isEmptyString, l as isPropDefined } from './helpers.js';
2
+ import { i as isSlotUsed, N as getSlot, m as getCurrentDeviceSize, D as DEVICE_SIZES, k as getBrandForegroundAppearance, h as onComponentPropUndefinedChange, c as checkResizeObserver, o as onComponentRequiredPropUndefined, e as IcBrandForegroundEnum, W as isEmptyString, l as isPropDefined } from './helpers.js';
3
3
  import { d as defineCustomElement$8 } from './ic-button2.js';
4
4
  import { d as defineCustomElement$7 } from './ic-horizontal-scroll2.js';
5
5
  import { d as defineCustomElement$6 } from './ic-loading-indicator2.js';
@@ -8,7 +8,7 @@ import { d as defineCustomElement$4 } from './ic-section-container2.js';
8
8
  import { d as defineCustomElement$3 } from './ic-tooltip2.js';
9
9
  import { d as defineCustomElement$2 } from './ic-typography2.js';
10
10
 
11
- const icTopNavigationCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;color:var(--ic-top-navigation-text);width:100%;position:relative;--ic-typography-color:var(--ic-top-navigation-text);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color)}:host(.dark){color:var(--ic-color-text-primary-light);--ic-typography-color:var(--ic-color-text-primary-light);--ic-top-navigation-logo:var(--ic-color-icon-neutral);--ic-top-navigation-icon:var(--ic-color-icon-neutral);--ic-top-navigation-theme:var(--ic-color-icon-neutral);--ic-top-navigation-status-tag:var(--ic-color-background-primary-dark);--ic-top-navigation-status-tag-text:var(--ic-color-brand-text);--ic-top-navigation-status-tag-secondary:var(--ic-state-layer-darken-10);--navigation-link-colour:var(--ic-color-text-primary-light)}:host ::slotted(ic-navigation-item){--navigation-link-colour:var(--ic-top-navigation-text)}:host(.dark) ::slotted(ic-navigation-button){--ic-button-icon-monochrome:var(--ic-color-text-primary-light)}::slotted(ic-navigation-button){--ic-button-icon-monochrome:white}:host .top-navigation{background-color:var(--ic-top-navigation-background);height:-moz-max-content;height:max-content}:host(.fullwidth-searchbar) slot[name=\"search\"]::slotted(form){width:100%}:host .title-link{display:inline-flex;align-items:center;text-decoration:none;padding:var(--ic-space-xxs);transition:var(--ic-easing-transition-fast)}:host .title-link,:host .title-link:visited,:host .title-link:active,:host .title-link ::slotted(a),:host .title-link:visited ::slotted(a),:host .title-link:active ::slotted(a){color:var(--ic-top-navigation-icon-and-label);text-decoration:none;outline:none}:host .title-link:hover:not(:focus){background-color:var(--ic-top-navigation-title-hover)}:host .title-link:active:not(:focus){background-color:var(--ic-top-navigation-title-pressed)}:host .title-link:hover{border-radius:var(--ic-border-radius)}:host .title-link:focus,:host .title-link:focus-within{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}:host .title-link ic-typography{font-weight:600}:host .nav-panel-container{border-top:var(--ic-space-1px) solid var(--ic-top-navigation-keyline);padding:0 var(--ic-space-lg);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin));display:flex}:host(.dark) .nav-panel-container{border-top:var(--ic-border-keyline-darken)}.top-panel-container{display:flex;padding-top:0.5rem;padding-bottom:0.5rem}.navigation-tabs{margin-top:calc(-1 * var(--ic-space-1px))}.app-details-container{display:flex;align-items:center;flex:1 1 auto;margin-right:var(--ic-space-md)}.app-icon-container{display:flex;padding-right:var(--ic-space-xs)}.icon-buttons-container{display:flex;margin-left:var(--ic-space-md)}.icon-buttons-container ::slotted(nav){display:flex}.title-wrap{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}:host .app-status{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag);color:var(--ic-top-navigation-status-tag-text);--ic-typography-color:var(--ic-top-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);margin-left:var(--ic-space-md);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}:host .app-version{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag-secondary);color:var(--ic-top-navigation-status-tag);padding:var(--ic-space-xxs) var(--ic-space-sm);margin-left:var(--ic-space-xs);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}slot[name=\"app-icon\"]::slotted(*){fill:var(--ic-top-navigation-logo);width:2em;height:2em}slot[name=\"toggle-icon\"] svg{fill:var(--ic-top-navigation-icon)}.search-menu-container{justify-content:right;display:flex;align-items:center}.menu-button-container{margin-left:var(--ic-space-md)}.menu-button-container .navigation-landmark-button-text{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.search-actions-container{display:flex}.menu-buttons-slot{display:flex;flex-direction:column}.navigation-landmark-text{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}.navigation-item-list{display:flex;list-style:none;height:2.75rem}.navigation-item-list::-webkit-scrollbar{display:none}:host ic-section-container{padding-bottom:0 !important;padding-top:0 !important}@media screen and (min-width: 993px){.app-details-container{margin-right:var(--ic-space-lg)}}@media screen and (max-width: 1200px){:host .nav-panel-container{padding:0 var(--ic-space-md)}}:host(.mobile-mode) .app-status,:host(.mobile-mode) .app-version{display:none}:host(.mobile-mode) .title-link{margin-right:var(--ic-space-xs)}:host(.mobile-mode) .search-menu-container{max-width:10rem}:host(.mobile-mode) .search-bar-container{display:flex;justify-content:center;align-items:center;border-top:var(--ic-border-keyline-darken);height:4rem;padding-left:var(--ic-space-md);padding-right:var(--ic-space-md);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin))}@media screen and (max-width: 576px){:host .title-link{margin-right:var(--ic-space-xxxs);word-break:break-word;-webkit-hyphens:none;hyphens:none}.top-panel-container{min-height:2.5rem}.search-bar-container{margin-top:0;height:3.5rem;padding-left:var(--ic-space-xs);padding-right:var(--ic-space-xs)}.menu-button-container{margin-left:var(--ic-space-sm)}slot[name=\"app-icon\"]::slotted(*){width:1.5em;height:1.5em}slot[name=\"toggle-icon\"] svg{width:1.5em;height:1.5em}}@media (forced-colors: active){:host .top-navigation{border-bottom:var(--ic-border-hc)}.app-status,.app-version{border:var(--ic-border-hc)}slot[name=\"app-icon\"]::slotted(*){fill:currentcolor}}";
11
+ const icTopNavigationCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;color:var(--ic-top-navigation-text);width:100%;position:relative;--ic-typography-color:var(--ic-top-navigation-text);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color)}:host(.dark){color:var(--ic-color-text-primary-light);--ic-typography-color:var(--ic-color-text-primary-light);--ic-top-navigation-logo:var(--ic-color-icon-neutral);--ic-top-navigation-icon:var(--ic-color-icon-neutral);--ic-top-navigation-theme:var(--ic-color-icon-neutral);--ic-top-navigation-status-tag:var(--ic-color-background-primary-dark);--ic-top-navigation-status-tag-text:var(--ic-color-brand-text);--ic-top-navigation-status-tag-secondary:var(--ic-state-layer-darken-10);--navigation-link-colour:var(--ic-color-text-primary-light)}:host ::slotted(ic-navigation-item){--navigation-link-colour:var(--ic-top-navigation-text)}:host(.dark) ::slotted(ic-navigation-button){--ic-button-icon-monochrome:var(--ic-color-text-primary-light)}::slotted(ic-navigation-button){--ic-button-icon-monochrome:white}:host .top-navigation{background-color:var(--ic-top-navigation-background);height:-moz-max-content;height:max-content}:host(.fullwidth-searchbar) slot[name=\"search\"]::slotted(form){width:100%}:host .title-link{display:inline-flex;align-items:center;text-decoration:none;padding:var(--ic-space-xxs);transition:var(--ic-easing-transition-fast)}:host .title-link,:host .title-link:visited,:host .title-link:active,:host .title-link ::slotted(a),:host .title-link:visited ::slotted(a),:host .title-link:active ::slotted(a){color:var(--ic-top-navigation-icon-and-label);text-decoration:none;outline:none}:host .title-link:hover:not(:focus){background-color:var(--ic-top-navigation-title-hover)}:host .title-link:active:not(:focus){background-color:var(--ic-top-navigation-title-pressed)}:host .title-link:hover{border-radius:var(--ic-border-radius)}:host .title-link:focus,:host .title-link:focus-within{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}:host .title-link ic-typography{font-weight:600}:host .nav-panel-container{border-top:var(--ic-space-1px) solid var(--ic-top-navigation-keyline);padding:0 var(--ic-space-lg);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin));display:flex}:host(.dark) .nav-panel-container{border-top:var(--ic-border-keyline-darken)}.top-panel-container{display:flex;padding-top:0.5rem;padding-bottom:0.5rem}.navigation-tabs{margin-top:calc(-1 * var(--ic-space-1px))}.app-details-container{display:flex;align-items:center;flex:1 1 auto;margin-right:var(--ic-space-md)}.app-icon-container{display:flex;padding-right:var(--ic-space-xs)}.icon-buttons-container{display:flex;margin-left:var(--ic-space-md)}.icon-buttons-container ::slotted(nav){display:flex}.title-wrap{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}:host .app-status{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag);color:var(--ic-top-navigation-status-tag-text);--ic-typography-color:var(--ic-top-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);margin-left:var(--ic-space-md);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}:host .app-version{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag-secondary);color:var(--ic-top-navigation-status-tag);padding:var(--ic-space-xxs) var(--ic-space-sm);margin-left:var(--ic-space-xs);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}slot[name=\"app-icon\"]::slotted(*){fill:var(--ic-top-navigation-logo);width:2em;height:2em}slot[name=\"toggle-icon\"] svg{fill:var(--ic-top-navigation-icon)}.search-menu-container{justify-content:right;display:flex;align-items:center}.menu-button-container{margin-left:var(--ic-space-md)}.menu-button-container .navigation-landmark-button-text{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.search-actions-container{display:flex}.menu-buttons-slot{display:flex;flex-direction:column}.navigation-landmark-text{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}.navigation-item-list{display:flex;list-style:none;height:2.75rem}.navigation-item-list::-webkit-scrollbar{display:none}:host ic-section-container{padding-bottom:0 !important;padding-top:0 !important}@media screen and (min-width: 993px){.app-details-container{margin-right:var(--ic-space-lg)}}@media screen and (max-width: 1200px){:host .nav-panel-container{padding:0 var(--ic-space-md)}}:host(.mobile-mode) .app-status,:host(.mobile-mode) .app-version{display:none}:host(.mobile-mode) .title-link{margin-right:var(--ic-space-xs)}:host(.mobile-mode) .search-menu-container{max-width:10rem}:host(.mobile-mode) .search-bar-container{display:flex;justify-content:center;align-items:center;border-top:var(--ic-border-keyline-darken);height:4rem;padding-left:var(--ic-space-md);padding-right:var(--ic-space-md);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin))}@media screen and (max-width: 576px){:host .title-link{margin-right:var(--ic-space-xxxs);word-break:break-word;-webkit-hyphens:none;hyphens:none}.top-panel-container{min-height:2.5rem}.search-bar-container{margin-top:0;height:3.5rem;padding-left:var(--ic-space-xs);padding-right:var(--ic-space-xs)}.menu-button-container{margin-left:var(--ic-space-sm)}slot[name=\"app-icon\"]::slotted(*){width:1.5em;height:1.5em}slot[name=\"toggle-icon\"] svg{width:1.5em;height:1.5em}}@media (forced-colors: active){:host .top-navigation{border-bottom:var(--ic-border-hc)}.app-status,.app-version{border:var(--ic-border-hc)}slot[name=\"app-icon\"]::slotted(*){fill:currentcolor}slot[name=\"toggle-icon\"] svg{fill:currentcolor}}";
12
12
 
13
13
  const TopNavigation = /*@__PURE__*/ proxyCustomElement(class TopNavigation extends HTMLElement {
14
14
  constructor() {