@quartzds/core 1.0.0-beta.9 → 1.0.0-beta.91

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 (387) hide show
  1. package/README.md +5 -5
  2. package/components/index.d.ts +48 -0
  3. package/components/index.js +60 -28
  4. package/components/index.js.map +1 -1
  5. package/components/p-2806fee1.js +1887 -0
  6. package/components/p-2806fee1.js.map +1 -0
  7. package/components/p-2bf0797c.js +272 -0
  8. package/components/p-2bf0797c.js.map +1 -0
  9. package/components/p-3baf75f4.js +111 -0
  10. package/components/p-3baf75f4.js.map +1 -0
  11. package/components/p-3c48ff53.js +103 -0
  12. package/components/p-3c48ff53.js.map +1 -0
  13. package/components/p-8abba29b.js +204 -0
  14. package/components/p-8abba29b.js.map +1 -0
  15. package/components/p-a020ece3.js +142 -0
  16. package/components/p-a020ece3.js.map +1 -0
  17. package/components/p-a6310886.js +144 -0
  18. package/components/p-a6310886.js.map +1 -0
  19. package/components/p-b4c302d4.js +91 -0
  20. package/components/p-b4c302d4.js.map +1 -0
  21. package/components/p-ba880369.js +256 -0
  22. package/components/p-ba880369.js.map +1 -0
  23. package/components/p-c80f112a.js +408 -0
  24. package/components/p-c80f112a.js.map +1 -0
  25. package/components/p-d107c90c.js +27 -0
  26. package/components/p-d107c90c.js.map +1 -0
  27. package/components/p-d6e52d0b.js +404 -0
  28. package/components/p-d6e52d0b.js.map +1 -0
  29. package/components/{floating-ui.dom.esm.js → p-fdd0abae.js} +468 -416
  30. package/components/p-fdd0abae.js.map +1 -0
  31. package/components/p-fed0d11f.js +94 -0
  32. package/components/p-fed0d11f.js.map +1 -0
  33. package/components/qds-badge-counter.d.ts +11 -0
  34. package/components/qds-badge-counter.js +13 -0
  35. package/components/qds-badge-counter.js.map +1 -0
  36. package/components/qds-badge-indicator.d.ts +11 -0
  37. package/components/qds-badge-indicator.js +13 -0
  38. package/components/qds-badge-indicator.js.map +1 -0
  39. package/components/qds-breadcrumb-item.d.ts +11 -0
  40. package/components/qds-breadcrumb-item.js +126 -0
  41. package/components/qds-breadcrumb-item.js.map +1 -0
  42. package/components/qds-button.d.ts +2 -2
  43. package/components/qds-button.js +3 -138
  44. package/components/qds-button.js.map +1 -1
  45. package/components/qds-checkbox.d.ts +2 -2
  46. package/components/qds-checkbox.js +3 -146
  47. package/components/qds-checkbox.js.map +1 -1
  48. package/components/qds-chip.d.ts +11 -0
  49. package/components/qds-chip.js +296 -0
  50. package/components/qds-chip.js.map +1 -0
  51. package/components/qds-dialog.d.ts +11 -0
  52. package/components/qds-dialog.js +126 -0
  53. package/components/qds-dialog.js.map +1 -0
  54. package/components/qds-divider.d.ts +2 -2
  55. package/components/qds-divider.js +3 -39
  56. package/components/qds-divider.js.map +1 -1
  57. package/components/qds-dropdown.d.ts +2 -2
  58. package/components/qds-dropdown.js +273 -239
  59. package/components/qds-dropdown.js.map +1 -1
  60. package/components/qds-form-message.d.ts +11 -0
  61. package/components/qds-form-message.js +112 -0
  62. package/components/qds-form-message.js.map +1 -0
  63. package/components/qds-icon.d.ts +2 -2
  64. package/components/qds-icon.js +3 -3
  65. package/components/qds-inline-link.d.ts +2 -2
  66. package/components/qds-inline-link.js +136 -73
  67. package/components/qds-inline-link.js.map +1 -1
  68. package/components/qds-input.d.ts +2 -2
  69. package/components/qds-input.js +489 -230
  70. package/components/qds-input.js.map +1 -1
  71. package/components/qds-label.d.ts +2 -2
  72. package/components/qds-label.js +3 -3
  73. package/components/qds-list-item.d.ts +11 -0
  74. package/components/qds-list-item.js +212 -0
  75. package/components/qds-list-item.js.map +1 -0
  76. package/components/qds-loader.d.ts +11 -0
  77. package/components/qds-loader.js +113 -0
  78. package/components/qds-loader.js.map +1 -0
  79. package/components/qds-nav-list-item.d.ts +11 -0
  80. package/components/qds-nav-list-item.js +162 -0
  81. package/components/qds-nav-list-item.js.map +1 -0
  82. package/components/qds-progress-bar.d.ts +11 -0
  83. package/components/qds-progress-bar.js +153 -0
  84. package/components/qds-progress-bar.js.map +1 -0
  85. package/components/qds-radio.d.ts +2 -2
  86. package/components/qds-radio.js +147 -93
  87. package/components/qds-radio.js.map +1 -1
  88. package/components/qds-select.d.ts +11 -0
  89. package/components/qds-select.js +361 -0
  90. package/components/qds-select.js.map +1 -0
  91. package/components/qds-standalone-link.d.ts +11 -0
  92. package/components/qds-standalone-link.js +174 -0
  93. package/components/qds-standalone-link.js.map +1 -0
  94. package/components/qds-switch.d.ts +2 -2
  95. package/components/qds-switch.js +221 -105
  96. package/components/qds-switch.js.map +1 -1
  97. package/components/qds-tab.d.ts +11 -0
  98. package/components/qds-tab.js +379 -0
  99. package/components/qds-tab.js.map +1 -0
  100. package/components/qds-tabbar.d.ts +11 -0
  101. package/components/qds-tabbar.js +407 -0
  102. package/components/qds-tabbar.js.map +1 -0
  103. package/components/qds-table-body.d.ts +11 -0
  104. package/components/qds-table-body.js +68 -0
  105. package/components/qds-table-body.js.map +1 -0
  106. package/components/qds-table-cell.d.ts +11 -0
  107. package/components/qds-table-cell.js +71 -0
  108. package/components/qds-table-cell.js.map +1 -0
  109. package/components/qds-table-head-cell.d.ts +11 -0
  110. package/components/qds-table-head-cell.js +73 -0
  111. package/components/qds-table-head-cell.js.map +1 -0
  112. package/components/qds-table-head.d.ts +11 -0
  113. package/components/qds-table-head.js +68 -0
  114. package/components/qds-table-head.js.map +1 -0
  115. package/components/qds-table-row.d.ts +11 -0
  116. package/components/qds-table-row.js +68 -0
  117. package/components/qds-table-row.js.map +1 -0
  118. package/components/qds-table.d.ts +11 -0
  119. package/components/qds-table.js +68 -0
  120. package/components/qds-table.js.map +1 -0
  121. package/components/qds-tag.d.ts +11 -0
  122. package/components/qds-tag.js +13 -0
  123. package/components/qds-tag.js.map +1 -0
  124. package/components/qds-textarea.d.ts +2 -2
  125. package/components/qds-textarea.js +331 -193
  126. package/components/qds-textarea.js.map +1 -1
  127. package/components/qds-title.d.ts +2 -2
  128. package/components/qds-title.js +3 -84
  129. package/components/qds-title.js.map +1 -1
  130. package/components/qds-tooltip.d.ts +2 -2
  131. package/components/qds-tooltip.js +3 -315
  132. package/components/qds-tooltip.js.map +1 -1
  133. package/dist/cjs/app-globals-c4cf08df.js +12 -0
  134. package/dist/cjs/app-globals-c4cf08df.js.map +1 -0
  135. package/dist/cjs/controls-ee3d2ec8.js +31 -0
  136. package/dist/cjs/controls-ee3d2ec8.js.map +1 -0
  137. package/dist/cjs/{floating-ui.dom.esm-71fa96af.js → floating-ui.dom.esm-19b2b933.js} +468 -416
  138. package/dist/cjs/floating-ui.dom.esm-19b2b933.js.map +1 -0
  139. package/dist/cjs/helpers-10154521.js +217 -0
  140. package/dist/cjs/helpers-10154521.js.map +1 -0
  141. package/dist/cjs/index-523dd2e0.js +2149 -0
  142. package/dist/cjs/index-523dd2e0.js.map +1 -0
  143. package/dist/cjs/index.cjs.js +39 -27
  144. package/dist/cjs/index.cjs.js.map +1 -1
  145. package/dist/cjs/library-41b19b9e.js +117 -0
  146. package/dist/cjs/library-41b19b9e.js.map +1 -0
  147. package/dist/cjs/loader.cjs.js +8 -6
  148. package/dist/cjs/loader.cjs.js.map +1 -1
  149. package/dist/cjs/qds-badge-counter_2.cjs.entry.js +151 -0
  150. package/dist/cjs/qds-badge-counter_2.cjs.entry.js.map +1 -0
  151. package/dist/cjs/qds-breadcrumb-item.cjs.entry.js +96 -0
  152. package/dist/cjs/qds-breadcrumb-item.cjs.entry.js.map +1 -0
  153. package/dist/cjs/qds-button.cjs.entry.js +321 -90
  154. package/dist/cjs/qds-button.cjs.entry.js.map +1 -1
  155. package/dist/cjs/qds-checkbox.cjs.entry.js +212 -100
  156. package/dist/cjs/qds-checkbox.cjs.entry.js.map +1 -1
  157. package/dist/cjs/qds-chip.cjs.entry.js +256 -0
  158. package/dist/cjs/qds-chip.cjs.entry.js.map +1 -0
  159. package/dist/cjs/qds-dialog.cjs.entry.js +108 -0
  160. package/dist/cjs/qds-dialog.cjs.entry.js.map +1 -0
  161. package/dist/cjs/qds-divider.cjs.entry.js +60 -18
  162. package/dist/cjs/qds-divider.cjs.entry.js.map +1 -1
  163. package/dist/cjs/qds-dropdown.cjs.entry.js +232 -206
  164. package/dist/cjs/qds-dropdown.cjs.entry.js.map +1 -1
  165. package/dist/cjs/qds-form-message.cjs.entry.js +86 -0
  166. package/dist/cjs/qds-form-message.cjs.entry.js.map +1 -0
  167. package/dist/cjs/qds-icon.cjs.entry.js +113 -90
  168. package/dist/cjs/qds-icon.cjs.entry.js.map +1 -1
  169. package/dist/cjs/qds-inline-link.cjs.entry.js +99 -46
  170. package/dist/cjs/qds-inline-link.cjs.entry.js.map +1 -1
  171. package/dist/cjs/qds-input.cjs.entry.js +404 -185
  172. package/dist/cjs/qds-input.cjs.entry.js.map +1 -1
  173. package/dist/cjs/qds-label.cjs.entry.js +102 -24
  174. package/dist/cjs/qds-label.cjs.entry.js.map +1 -1
  175. package/dist/cjs/qds-list-item.cjs.entry.js +157 -0
  176. package/dist/cjs/qds-list-item.cjs.entry.js.map +1 -0
  177. package/dist/cjs/qds-loader.cjs.entry.js +94 -0
  178. package/dist/cjs/qds-loader.cjs.entry.js.map +1 -0
  179. package/dist/cjs/qds-nav-list-item.cjs.entry.js +124 -0
  180. package/dist/cjs/qds-nav-list-item.cjs.entry.js.map +1 -0
  181. package/dist/cjs/qds-progress-bar.cjs.entry.js +135 -0
  182. package/dist/cjs/qds-progress-bar.cjs.entry.js.map +1 -0
  183. package/dist/cjs/qds-radio.cjs.entry.js +102 -57
  184. package/dist/cjs/qds-radio.cjs.entry.js.map +1 -1
  185. package/dist/cjs/qds-select.cjs.entry.js +323 -0
  186. package/dist/cjs/qds-select.cjs.entry.js.map +1 -0
  187. package/dist/cjs/qds-standalone-link.cjs.entry.js +134 -0
  188. package/dist/cjs/qds-standalone-link.cjs.entry.js.map +1 -0
  189. package/dist/cjs/qds-switch.cjs.entry.js +193 -64
  190. package/dist/cjs/qds-switch.cjs.entry.js.map +1 -1
  191. package/dist/cjs/qds-tab.cjs.entry.js +299 -0
  192. package/dist/cjs/qds-tab.cjs.entry.js.map +1 -0
  193. package/dist/cjs/qds-tabbar.cjs.entry.js +349 -0
  194. package/dist/cjs/qds-tabbar.cjs.entry.js.map +1 -0
  195. package/dist/cjs/qds-table-body.cjs.entry.js +54 -0
  196. package/dist/cjs/qds-table-body.cjs.entry.js.map +1 -0
  197. package/dist/cjs/qds-table-cell.cjs.entry.js +54 -0
  198. package/dist/cjs/qds-table-cell.cjs.entry.js.map +1 -0
  199. package/dist/cjs/qds-table-head-cell.cjs.entry.js +54 -0
  200. package/dist/cjs/qds-table-head-cell.cjs.entry.js.map +1 -0
  201. package/dist/cjs/qds-table-head.cjs.entry.js +54 -0
  202. package/dist/cjs/qds-table-head.cjs.entry.js.map +1 -0
  203. package/dist/cjs/qds-table-row.cjs.entry.js +54 -0
  204. package/dist/cjs/qds-table-row.cjs.entry.js.map +1 -0
  205. package/dist/cjs/qds-table.cjs.entry.js +54 -0
  206. package/dist/cjs/qds-table.cjs.entry.js.map +1 -0
  207. package/dist/cjs/qds-tag_2.cjs.entry.js +181 -0
  208. package/dist/cjs/qds-tag_2.cjs.entry.js.map +1 -0
  209. package/dist/cjs/qds-textarea.cjs.entry.js +288 -153
  210. package/dist/cjs/qds-textarea.cjs.entry.js.map +1 -1
  211. package/dist/cjs/qds-tooltip.cjs.entry.js +332 -260
  212. package/dist/cjs/qds-tooltip.cjs.entry.js.map +1 -1
  213. package/dist/cjs/qds.cjs.js +15 -13
  214. package/dist/cjs/qds.cjs.js.map +1 -1
  215. package/dist/custom-elements.json +8727 -2151
  216. package/dist/docs.d.ts +344 -240
  217. package/dist/docs.json +9364 -2903
  218. package/dist/esm/app-globals-8ced3a41.js +10 -0
  219. package/dist/esm/app-globals-8ced3a41.js.map +1 -0
  220. package/dist/esm/controls-a4768aaf.js +27 -0
  221. package/dist/esm/controls-a4768aaf.js.map +1 -0
  222. package/dist/esm/{floating-ui.dom.esm-f96ac766.js → floating-ui.dom.esm-61986f35.js} +468 -416
  223. package/dist/esm/floating-ui.dom.esm-61986f35.js.map +1 -0
  224. package/dist/esm/helpers-2e4ca34d.js +204 -0
  225. package/dist/esm/helpers-2e4ca34d.js.map +1 -0
  226. package/dist/esm/index-b1d6acd2.js +2118 -0
  227. package/dist/esm/index-b1d6acd2.js.map +1 -0
  228. package/dist/esm/index.js +39 -28
  229. package/dist/esm/index.js.map +1 -1
  230. package/dist/esm/library-2e5458af.js +113 -0
  231. package/dist/esm/library-2e5458af.js.map +1 -0
  232. package/dist/esm/loader.js +9 -7
  233. package/dist/esm/loader.js.map +1 -1
  234. package/dist/esm/qds-badge-counter_2.entry.js +146 -0
  235. package/dist/esm/qds-badge-counter_2.entry.js.map +1 -0
  236. package/dist/esm/qds-breadcrumb-item.entry.js +92 -0
  237. package/dist/esm/qds-breadcrumb-item.entry.js.map +1 -0
  238. package/dist/esm/qds-button.entry.js +321 -90
  239. package/dist/esm/qds-button.entry.js.map +1 -1
  240. package/dist/esm/qds-checkbox.entry.js +212 -100
  241. package/dist/esm/qds-checkbox.entry.js.map +1 -1
  242. package/dist/esm/qds-chip.entry.js +252 -0
  243. package/dist/esm/qds-chip.entry.js.map +1 -0
  244. package/dist/esm/qds-dialog.entry.js +104 -0
  245. package/dist/esm/qds-dialog.entry.js.map +1 -0
  246. package/dist/esm/qds-divider.entry.js +60 -18
  247. package/dist/esm/qds-divider.entry.js.map +1 -1
  248. package/dist/esm/qds-dropdown.entry.js +232 -206
  249. package/dist/esm/qds-dropdown.entry.js.map +1 -1
  250. package/dist/esm/qds-form-message.entry.js +82 -0
  251. package/dist/esm/qds-form-message.entry.js.map +1 -0
  252. package/dist/esm/qds-icon.entry.js +113 -90
  253. package/dist/esm/qds-icon.entry.js.map +1 -1
  254. package/dist/esm/qds-inline-link.entry.js +99 -46
  255. package/dist/esm/qds-inline-link.entry.js.map +1 -1
  256. package/dist/esm/qds-input.entry.js +404 -185
  257. package/dist/esm/qds-input.entry.js.map +1 -1
  258. package/dist/esm/qds-label.entry.js +102 -24
  259. package/dist/esm/qds-label.entry.js.map +1 -1
  260. package/dist/esm/qds-list-item.entry.js +153 -0
  261. package/dist/esm/qds-list-item.entry.js.map +1 -0
  262. package/dist/esm/qds-loader.entry.js +90 -0
  263. package/dist/esm/qds-loader.entry.js.map +1 -0
  264. package/dist/esm/qds-nav-list-item.entry.js +120 -0
  265. package/dist/esm/qds-nav-list-item.entry.js.map +1 -0
  266. package/dist/esm/qds-progress-bar.entry.js +131 -0
  267. package/dist/esm/qds-progress-bar.entry.js.map +1 -0
  268. package/dist/esm/qds-radio.entry.js +102 -57
  269. package/dist/esm/qds-radio.entry.js.map +1 -1
  270. package/dist/esm/qds-select.entry.js +319 -0
  271. package/dist/esm/qds-select.entry.js.map +1 -0
  272. package/dist/esm/qds-standalone-link.entry.js +130 -0
  273. package/dist/esm/qds-standalone-link.entry.js.map +1 -0
  274. package/dist/esm/qds-switch.entry.js +193 -64
  275. package/dist/esm/qds-switch.entry.js.map +1 -1
  276. package/dist/esm/qds-tab.entry.js +295 -0
  277. package/dist/esm/qds-tab.entry.js.map +1 -0
  278. package/dist/esm/qds-tabbar.entry.js +345 -0
  279. package/dist/esm/qds-tabbar.entry.js.map +1 -0
  280. package/dist/esm/qds-table-body.entry.js +50 -0
  281. package/dist/esm/qds-table-body.entry.js.map +1 -0
  282. package/dist/esm/qds-table-cell.entry.js +50 -0
  283. package/dist/esm/qds-table-cell.entry.js.map +1 -0
  284. package/dist/esm/qds-table-head-cell.entry.js +50 -0
  285. package/dist/esm/qds-table-head-cell.entry.js.map +1 -0
  286. package/dist/esm/qds-table-head.entry.js +50 -0
  287. package/dist/esm/qds-table-head.entry.js.map +1 -0
  288. package/dist/esm/qds-table-row.entry.js +50 -0
  289. package/dist/esm/qds-table-row.entry.js.map +1 -0
  290. package/dist/esm/qds-table.entry.js +50 -0
  291. package/dist/esm/qds-table.entry.js.map +1 -0
  292. package/dist/esm/qds-tag_2.entry.js +176 -0
  293. package/dist/esm/qds-tag_2.entry.js.map +1 -0
  294. package/dist/esm/qds-textarea.entry.js +288 -153
  295. package/dist/esm/qds-textarea.entry.js.map +1 -1
  296. package/dist/esm/qds-tooltip.entry.js +332 -260
  297. package/dist/esm/qds-tooltip.entry.js.map +1 -1
  298. package/dist/esm/qds.js +16 -14
  299. package/dist/esm/qds.js.map +1 -1
  300. package/dist/types/components/badge-counter/badge-counter.d.ts +40 -0
  301. package/dist/types/components/badge-indicator/badge-indicator.d.ts +36 -0
  302. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +160 -0
  303. package/dist/types/components/button/button.d.ts +272 -194
  304. package/dist/types/components/checkbox/checkbox.d.ts +137 -124
  305. package/dist/types/components/chip/chip.d.ts +109 -0
  306. package/dist/types/components/controls.d.ts +4 -1
  307. package/dist/types/components/dialog/dialog.d.ts +35 -0
  308. package/dist/types/components/divider/divider.d.ts +13 -9
  309. package/dist/types/components/dropdown/dropdown.d.ts +107 -125
  310. package/dist/types/components/form-message/form-message.d.ts +42 -0
  311. package/dist/types/components/icon/icon.d.ts +24 -24
  312. package/dist/types/components/icon/library.d.ts +3 -3
  313. package/dist/types/components/icon/request.d.ts +5 -9
  314. package/dist/types/components/inline-link/inline-link.d.ts +208 -191
  315. package/dist/types/components/input/input.d.ts +415 -368
  316. package/dist/types/components/label/label.d.ts +26 -24
  317. package/dist/types/components/list-item/list-item.d.ts +100 -0
  318. package/dist/types/components/loader/loader.d.ts +27 -0
  319. package/dist/types/components/nav-list-item/nav-list-item.d.ts +67 -0
  320. package/dist/types/components/progress-bar/progress-bar.d.ts +60 -0
  321. package/dist/types/components/radio/radio.d.ts +90 -95
  322. package/dist/types/components/select/select.d.ts +203 -0
  323. package/dist/types/components/shared.d.ts +6 -0
  324. package/dist/types/components/standalone-link/standalone-link.d.ts +233 -0
  325. package/dist/types/components/switch/switch.d.ts +114 -107
  326. package/dist/types/components/tab/tab.d.ts +160 -0
  327. package/dist/types/components/tabbar/tabbar.d.ts +47 -0
  328. package/dist/types/components/table/table.d.ts +15 -0
  329. package/dist/types/components/table-body/table-body.d.ts +15 -0
  330. package/dist/types/components/table-cell/table-cell.d.ts +32 -0
  331. package/dist/types/components/table-head/table-head.d.ts +15 -0
  332. package/dist/types/components/table-head-cell/table-head-cell.d.ts +56 -0
  333. package/dist/types/components/table-row/table-row.d.ts +15 -0
  334. package/dist/types/components/tag/tag.d.ts +55 -0
  335. package/dist/types/components/textarea/textarea.d.ts +285 -300
  336. package/dist/types/components/title/title.d.ts +39 -32
  337. package/dist/types/components/tooltip/tooltip.d.ts +123 -137
  338. package/dist/types/components.d.ts +3957 -833
  339. package/dist/types/helpers.d.ts +15 -16
  340. package/dist/types/index.d.ts +2 -1
  341. package/dist/types/interface-overrides.d.ts +211 -0
  342. package/dist/types/qds-test.d.ts +22 -11
  343. package/dist/types/stencil-public-runtime.d.ts +55 -15
  344. package/dist/types/utils.d.ts +11 -4
  345. package/dist/vscode.html-custom-data.json +1528 -210
  346. package/hydrate/index.d.ts +59 -18
  347. package/hydrate/index.js +25724 -9014
  348. package/hydrate/index.mjs +26627 -0
  349. package/hydrate/package.json +7 -1
  350. package/loader/cdn.js +3 -4
  351. package/loader/index.cjs.js +3 -4
  352. package/loader/index.d.ts +4 -1
  353. package/loader/index.es2017.js +3 -4
  354. package/loader/index.js +3 -4
  355. package/package.json +53 -89
  356. package/styles/core.css +137 -14
  357. package/components/floating-ui.dom.esm.js.map +0 -1
  358. package/components/helpers.js +0 -175
  359. package/components/helpers.js.map +0 -1
  360. package/components/icon.js +0 -175
  361. package/components/icon.js.map +0 -1
  362. package/components/label.js +0 -55
  363. package/components/label.js.map +0 -1
  364. package/dist/cjs/floating-ui.dom.esm-71fa96af.js.map +0 -1
  365. package/dist/cjs/helpers-452256e8.js +0 -185
  366. package/dist/cjs/helpers-452256e8.js.map +0 -1
  367. package/dist/cjs/index-d181f952.js +0 -2039
  368. package/dist/cjs/index-d181f952.js.map +0 -1
  369. package/dist/cjs/library-0a619eeb.js +0 -62
  370. package/dist/cjs/library-0a619eeb.js.map +0 -1
  371. package/dist/cjs/qds-title.cjs.entry.js +0 -66
  372. package/dist/cjs/qds-title.cjs.entry.js.map +0 -1
  373. package/dist/esm/floating-ui.dom.esm-f96ac766.js.map +0 -1
  374. package/dist/esm/helpers-76b84f45.js +0 -175
  375. package/dist/esm/helpers-76b84f45.js.map +0 -1
  376. package/dist/esm/index-d7183092.js +0 -2009
  377. package/dist/esm/index-d7183092.js.map +0 -1
  378. package/dist/esm/library-021aca11.js +0 -58
  379. package/dist/esm/library-021aca11.js.map +0 -1
  380. package/dist/esm/polyfills/core-js.js +0 -11
  381. package/dist/esm/polyfills/dom.js +0 -79
  382. package/dist/esm/polyfills/es5-html-element.js +0 -1
  383. package/dist/esm/polyfills/index.js +0 -34
  384. package/dist/esm/polyfills/system.js +0 -6
  385. package/dist/esm/qds-title.entry.js +0 -62
  386. package/dist/esm/qds-title.entry.js.map +0 -1
  387. package/dist/types/components/create-story.d.ts +0 -5
@@ -1,239 +1,498 @@
1
1
  /*!
2
- * SPDX-FileCopyrightText: © 2023 Schneider Electric
2
+ * SPDX-FileCopyrightText: © 2025 Schneider Electric
3
3
  *
4
- * SPDX-License-Identifier: LGPL-2.1-only
4
+ * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
7
- import { p as pickFocusEventAttributes, a as invariant, e as pickInputEventAttributes, i as inheritAriaAttributes, b as inheritAttributes } from './helpers.js';
6
+ import { p as proxyCustomElement, H, c as createEvent, h } from './p-2806fee1.js';
7
+ import { c as invariant, p as pickFocusEventAttributes, h as pickInputEventAttributes, i as inheritAriaAttributes } from './p-8abba29b.js';
8
+ import { V as VALID_STATE, C as CUSTOM_ERROR_FLAGS, N as NO_ERROR_FLAGS } from './p-d107c90c.js';
9
+ import { d as defineCustomElement$6 } from './p-3c48ff53.js';
10
+ import { d as defineCustomElement$5 } from './p-fed0d11f.js';
11
+ import { d as defineCustomElement$4 } from './p-d6e52d0b.js';
12
+ import { d as defineCustomElement$3 } from './p-ba880369.js';
13
+ import { d as defineCustomElement$2 } from './p-c80f112a.js';
8
14
 
9
- const inputCss = ".sc-qds-input-h{box-sizing:border-box}[hidden].sc-qds-input-h{display:none !important}.sc-qds-input-h *.sc-qds-input,.sc-qds-input-h *.sc-qds-input::before,.sc-qds-input-h *.sc-qds-input::after{box-sizing:inherit}.sc-qds-input-h{display:inline-block}.input.sc-qds-input{-webkit-appearance:textfield;appearance:textfield;padding:0;background-color:var(--qds-theme-control-input-background);border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius);color:var(--qds-theme-control-text-standard);gap:var(--qds-control-input-gap-internal);padding-inline:var(--qds-control-input-padding-horizontal);width:100%}.input[aria-invalid='true'].sc-qds-input:not(:focus){border-color:var(--qds-theme-feedback-result-failure)}.input[type='color'].sc-qds-input{-webkit-appearance:none;appearance:none;min-width:50px;padding-block:var(--qds-control-input-padding-horizontal);cursor:pointer}.input[type='color'].sc-qds-input::-webkit-color-swatch-wrapper{padding:0}.input[type='color'].sc-qds-input::-webkit-color-swatch{border:var(--qds-control-border-width) solid\n var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius)}.input[type='color'].sc-qds-input::-moz-color-swatch{border:var(--qds-control-border-width) solid\n var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius)}.input[type='color'].sc-qds-input:hover{background-color:var(--qds-theme-interactive-background-hover)}.input[type='color'].sc-qds-input:active{background-color:var(--qds-theme-interactive-background-pressed)}.input.sc-qds-input:disabled{opacity:var(--qds-theme-disabled);pointer-events:none}.input.sc-qds-input:focus-visible{outline:var(--qds-theme-focus-border) solid var(--qds-focus-border-width);outline-offset:var(--qds-focus-border-offset)}.input.sc-qds-input:placeholder-shown{color:var(--qds-theme-control-text-placeholder)}[data-size='small'].sc-qds-input{font:var(--qds-control-small-text);height:var(--qds-control-small-height)}[data-size='standard'].sc-qds-input{font:var(--qds-control-standard-text);height:var(--qds-control-standard-height)}[data-size='large'].sc-qds-input{font:var(--qds-control-large-text);height:var(--qds-control-large-height)}";
15
+ const inputCss = ":host([hidden]){display:none!important}:host{display:inline-block}@-moz-document url-prefix(){[type=date]~.qds-icon-container,[type=datetime-local]~.qds-icon-container,[type=month]~.qds-icon-container,[type=time]~.qds-icon-container,[type=week]~.qds-icon-container{display:none}}.qds-container,.qds-input{max-width:inherit;width:inherit}.qds-container{align-content:flex-start;align-items:center;box-sizing:border-box;display:grid;grid-template-areas:\"a\"}.qds-icon{--qds-theme-interactive-background-hover:none;--qds-theme-interactive-background-pressed:none;--qds-control-small-height:var(--qds-control-small-icon-size);flex-shrink:0}.qds-icon-container,.qds-input{grid-area:a}.qds-icon-container{align-items:center;display:flex;justify-content:center;justify-self:end;padding-inline-end:var(--qds-control-input-padding-horizontal)}.qds-icon-container.no-padding{padding-inline-end:0}.qds-focus-ring{border-radius:max(1px,var(\n --qds-control-border-radius-top-left,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-top-right,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-right,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-left,var(--qds-control-border-radius)\n ));grid-area:a;height:calc(100% + var(--qds-control-border-width) - var(--qds-control-border-width-block-end, var(--qds-control-border-width)));isolation:isolate;outline:var(--qds-control-input-focus-border-width) solid var(--qds-theme-control-input-focus-border);pointer-events:none;visibility:hidden;width:calc(100% + var(--qds-control-border-width) - var(\n --qds-control-border-width-inline-end,\n var(--qds-control-border-width)\n ))}[data-size=small]{font:var(--qds-control-small-text);height:var(--qds-control-small-height)}.qds-icon[data-size=small]{--qds-experimental-icon-click-target-size:var(--qds-control-small-height);height:var(--qds-control-small-icon-size);width:var(--qds-control-small-icon-size)}[data-size=small]~.qds-icon-container{gap:var(--qds-control-small-gap-internal);margin-inline-start:var(--qds-control-small-gap-internal)}[data-size=small][type=date],[data-size=small][type=datetime-local],[data-size=small][type=email],[data-size=small][type=month],[data-size=small][type=tel],[data-size=small][type=time],[data-size=small][type=url],[data-size=small][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-small-height))}[data-size=small][type=file]::file-selector-button{font:var(--qds-control-small-text);height:var(--qds-control-small-height);margin-inline-end:var(--qds-control-small-gap-siblings-related);padding-inline:var(--qds-control-button-small-padding-horizontal)}[data-size=small][type=number]::-webkit-inner-spin-button,[data-size=small][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-small-gap-internal)}[data-size=small][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-small-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-small-gap-internal))}[data-size=standard]{font:var(--qds-control-standard-text);height:var(--qds-control-standard-height)}.qds-icon[data-size=standard]{--qds-experimental-icon-click-target-size:var(\n --qds-control-standard-height\n );height:var(--qds-control-standard-icon-size);width:var(--qds-control-standard-icon-size)}[data-size=standard]~.qds-icon-container{gap:var(--qds-control-standard-gap-internal);margin-inline-start:var(--qds-control-standard-gap-internal)}[data-size=standard][type=date],[data-size=standard][type=datetime-local],[data-size=standard][type=email],[data-size=standard][type=month],[data-size=standard][type=tel],[data-size=standard][type=time],[data-size=standard][type=url],[data-size=standard][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-standard-height))}[data-size=standard][type=file]::file-selector-button{font:var(--qds-control-standard-text);height:var(--qds-control-standard-height);margin-inline-end:var(--qds-control-standard-gap-siblings-related);padding-inline:var(--qds-control-button-standard-padding-horizontal)}[data-size=standard][type=number]::-webkit-inner-spin-button,[data-size=standard][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-standard-gap-internal)}[data-size=standard][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-standard-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-standard-gap-internal))}[data-size=large]{font:var(--qds-control-large-text);height:var(--qds-control-large-height)}.qds-icon[data-size=large]{--qds-experimental-icon-click-target-size:var(--qds-control-large-height);height:var(--qds-control-large-icon-size);width:var(--qds-control-large-icon-size)}[data-size=large]~.qds-icon-container{gap:var(--qds-control-large-gap-internal);margin-inline-start:var(--qds-control-large-gap-internal)}[data-size=large][type=date],[data-size=large][type=datetime-local],[data-size=large][type=email],[data-size=large][type=month],[data-size=large][type=tel],[data-size=large][type=time],[data-size=large][type=url],[data-size=large][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-large-height))}[data-size=large][type=file]::file-selector-button{font:var(--qds-control-large-text);height:var(--qds-control-large-height);margin-inline-end:var(--qds-control-large-gap-siblings-related);padding-inline:var(--qds-control-button-large-padding-horizontal)}[data-size=large][type=number]::-webkit-inner-spin-button,[data-size=large][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-large-gap-internal)}[data-size=large][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-large-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-large-gap-internal))}.qds-input{-webkit-appearance:textfield;appearance:textfield;background-color:var(--qds-theme-control-input-background);border-color:var(--qds-theme-control-border);border-radius:var(\n --qds-control-border-radius-top-left,var(--qds-control-border-radius)\n ) var(--qds-control-border-radius-top-right,var(--qds-control-border-radius)) var(\n --qds-control-border-radius-bottom-right,var(--qds-control-border-radius)\n ) var(\n --qds-control-border-radius-bottom-left,var(--qds-control-border-radius)\n );border-style:solid;border-width:var(--qds-control-border-width) var(--qds-control-border-width-inline-end,var(--qds-control-border-width)) var(--qds-control-border-width-block-end,var(--qds-control-border-width)) var(--qds-control-border-width);box-sizing:border-box;color:var(--qds-theme-control-text-standard);grid-area:a;padding-block:0;padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input.qds-hide~.qds-icon-container{display:none}.qds-input:disabled{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-input:focus-visible{outline:none}.qds-input:focus-visible~.qds-focus-ring{visibility:visible}.qds-input:placeholder-shown{color:var(--qds-theme-control-text-placeholder)}.qds-input:not(:focus):user-invalid{border-color:var(--qds-theme-feedback-result-failure)}.qds-input::-webkit-search-cancel-button,.qds-input:is([type=date],[type=datetime-local],[type=month],[type=time],[type=week])::-webkit-calendar-picker-indicator{cursor:pointer;display:none}.qds-input[type=file]{padding-block:var(--qds-control-input-padding-horizontal)}.qds-input[type=file]::file-selector-button{background-color:initial;border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius);color:var(--qds-theme-control-text-standard)}.qds-input[type=file]::file-selector-button:hover{background-color:var(--qds-theme-interactive-background-hover)}.qds-input[type=file]::file-selector-button:active{background-color:var(--qds-theme-interactive-background-pressed)}.qds-input[type=color],.qds-input[type=number],.qds-input[type=password],.qds-input[type=text]{padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input[type=color]{-webkit-appearance:none;appearance:none;cursor:pointer;min-width:50px;padding-block:var(--qds-control-input-padding-horizontal)}.qds-input[type=color]::-webkit-color-swatch-wrapper{padding:0}.qds-input[type=color]::-webkit-color-swatch{border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius)}.qds-input[type=color]::-moz-color-swatch{border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius)}.qds-input[type=color]:hover{background-color:var(--qds-theme-interactive-background-hover)}.qds-input[type=color]:active{background-color:var(--qds-theme-interactive-background-pressed)}.qds-input.qds-search-padding[data-size=large],.qds-input.qds-search-padding[data-size=small],.qds-input.qds-search-padding[data-size=standard]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-input-padding-horizontal))}.qds-input[data-size=large][type=file],.qds-input[data-size=small][type=file],.qds-input[data-size=standard][type=file]{height:auto}.qds-input.qds-padding[data-size=large],.qds-input.qds-padding[data-size=small],.qds-input.qds-padding[data-size=standard]{padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input[data-size=large],.qds-input[data-size=small],.qds-input[data-size=standard]{@-moz-document url-prefix(){&[type=date],&[type=datetime-local],&[type=month],&[type=time],&[type=week]{padding-inline-end:var(--qds-control-input-padding-horizontal)}}}.qds-input{@-moz-document url-prefix(){&[type=number]{appearance:none}}}";
16
+ const QdsInputStyle0 = inputCss;
10
17
 
11
- let autoIncrementingId = 1;
12
- const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
13
- constructor() {
14
- super();
15
- this.__registerHost();
16
- this.blurEmitter = createEvent(this, "qdsBlur", 2);
17
- this.changeEmitter = createEvent(this, "qdsChange", 6);
18
- this.focusEmitter = createEvent(this, "qdsFocus", 2);
19
- this.inputEmitter = createEvent(this, "qdsInput", 6);
20
- this.inheritedAttributes = {};
21
- this.ref = (input) => {
22
- this.input = input;
23
- };
24
- this.onBlur = (event) => {
25
- this.blurEmitter.emit(pickFocusEventAttributes(event));
26
- };
27
- this.onChange = () => {
28
- invariant(this.input);
29
- this.value = this.input.value;
30
- this.changeEmitter.emit();
31
- };
32
- this.onClick = (event) => {
33
- if (this.computedDisabled) {
34
- event.preventDefault();
35
- event.stopPropagation();
36
- }
37
- };
38
- this.onFocus = (event) => {
39
- this.focusEmitter.emit(pickFocusEventAttributes(event));
40
- };
41
- this.onInput = (event) => {
42
- invariant(this.input);
43
- this.value = this.input.value;
44
- this.inputEmitter.emit(pickInputEventAttributes(event));
45
- };
46
- this.onInvalid = () => {
47
- this.invalid = true;
48
- };
49
- this.invalid = undefined;
50
- this.size = 'standard';
51
- this.autoCapitalize = undefined;
52
- this.autoComplete = undefined;
53
- this.autoFocus = undefined;
54
- this.disabled = undefined;
55
- this.enterkeyhint = undefined;
56
- this.form = undefined;
57
- this.inputmode = undefined;
58
- this.max = undefined;
59
- this.maxLength = undefined;
60
- this.min = undefined;
61
- this.minLength = undefined;
62
- this.multiple = undefined;
63
- this.name = `qds-input-${autoIncrementingId}`;
64
- this.pattern = undefined;
65
- this.placeholder = undefined;
66
- this.readOnly = undefined;
67
- this.required = undefined;
68
- this.spellCheck = undefined;
69
- this.step = undefined;
70
- this.type = undefined;
71
- this.value = undefined;
72
- }
73
- get computedDisabled() {
74
- return this.disabled ?? false;
75
- }
76
- /**
77
- * Returns true if the element's value passes validity checks; otherwise,
78
- * returns false, fires an invalid event at the element, and (if the event
79
- * isn't canceled) reports the problem to the user.
80
- */
81
- async reportValidity() {
82
- invariant(this.input);
83
- return this.input.reportValidity();
84
- }
85
- /**
86
- * Selects the entire content of the `<qds-input>` element if the element's
87
- * content is selectable.
88
- */
89
- async select() {
90
- invariant(this.input);
91
- this.input.select();
92
- }
93
- /**
94
- * Sets a custom validity message for the input. If this message is not the
95
- * empty string, then the element is considered invalid.
96
- */
97
- async setCustomValidity(message) {
98
- invariant(this.input);
99
- this.input.setCustomValidity(message);
100
- this.invalid = !this.input.checkValidity();
101
- }
102
- /**
103
- * Sets the contents of the specified range of characters in the input element to a given string.
104
- *
105
- * @param replacement The string to insert.
106
- * @param start The 0-based index of the first character to replace. Defaults to the current selectionStart value (the start of the user's current selection).
107
- * @param end The 0-based index of the character _after_ the last character to replace. Defaults to the current selectionEnd value (the end of the user's current selection).
108
- * @param selectionMode A string defining how the selection should be set after the text has been replaced. Possible values:
109
- *
110
- * - `"select"` selects the newly inserted text.
111
- * - `"start"` moves the selection to just before the inserted text.
112
- * - `"end"` moves the selection to just after the inserted text.
113
- * - `"preserve"` attempts to preserve the selection.
114
- */
115
- async setRangeText(replacement, start, end, selectionMode = 'preserve') {
116
- invariant(this.input);
117
- this.input.setRangeText(replacement, start, end, selectionMode);
118
- if (this.value !== this.input.value) {
119
- this.value = this.input.value;
120
- this.inputEmitter.emit();
121
- this.changeEmitter.emit();
122
- }
123
- }
124
- /**
125
- * Selects the specified range of characters within the input.
126
- *
127
- * @param start The offset into the input for the start of the selection.
128
- * @param end The offset into the input for the end of the selection.
129
- * @param direction The direction in which the selection is performed.
130
- */
131
- async setSelectionRange(start, end, direction) {
132
- invariant(this.input);
133
- this.input.setSelectionRange(start, end, direction);
134
- }
135
- /**
136
- * Decrements the `value` by (`step` * n), where n defaults to 1 if not
137
- * specified.
138
- *
139
- * @param n Amount to decrement the value by.
140
- */
141
- async stepDown(n) {
142
- invariant(this.input);
143
- this.input.stepDown(n);
144
- }
145
- /**
146
- * Increments the `value` by (`step` * n), where n defaults to 1 if not
147
- * specified.
148
- *
149
- * @param n Amount to increment the value by.
150
- */
151
- async stepUp(n) {
152
- invariant(this.input);
153
- this.input.stepUp(n);
154
- }
155
- disabledChanged() {
156
- invariant(this.input);
157
- // Disabled inputs are always valid, so we need to recheck validity when
158
- // the state changes.
159
- this.input.disabled = this.computedDisabled;
160
- this.invalid = !this.input.checkValidity();
161
- }
162
- stepChanged() {
163
- invariant(this.input);
164
- // If step changes, the value may become invalid so we need to recheck
165
- // after the update. We set the new step imperatively so we don't have to
166
- // wait for the next render to report the updated validity.
167
- this.input.step = String(this.step);
168
- this.invalid = !this.input.checkValidity();
169
- }
170
- valueChanged() {
171
- invariant(this.input);
172
- this.invalid = !this.input.checkValidity();
173
- }
174
- componentWillLoad() {
175
- autoIncrementingId += 1;
176
- this.inheritedAttributes = {
177
- ...inheritAriaAttributes(this.element),
178
- ...inheritAttributes(this.element, ['tabindex']),
179
- };
180
- }
181
- render() {
182
- return (h("input", { "aria-invalid": this.invalid ?? false ? 'true' : 'false', autoCapitalize: this.autoCapitalize, autoComplete: this.autoComplete,
183
- // eslint-disable-next-line jsx-a11y/no-autofocus
184
- autoFocus: this.autoFocus, class: "input", "data-size": this.size, disabled: this.disabled, enterKeyHint: this.enterkeyhint, form: this.form, inputMode: this.inputmode, max: this.max, maxLength: this.maxLength, min: this.min, minLength: this.minLength, multiple: this.multiple, name: this.name, onBlur: this.onBlur, onChange: this.onChange, onClick: this.onClick, onFocus: this.onFocus, onInput: this.onInput, onInvalid: this.onInvalid, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readOnly, ref: this.ref, required: this.required, spellcheck: this.spellCheck, step: this.step, type: this.type, value: this.value ?? undefined, ...this.inheritedAttributes }));
185
- }
186
- get element() { return this; }
187
- static get watchers() { return {
188
- "disabled": ["disabledChanged"],
189
- "step": ["stepChanged"],
190
- "value": ["valueChanged"]
191
- }; }
192
- static get style() { return inputCss; }
193
- }, [2, "qds-input", {
194
- "invalid": [1540],
195
- "size": [513],
196
- "autoCapitalize": [1, "autocapitalize"],
197
- "autoComplete": [1, "autocomplete"],
198
- "autoFocus": [4, "autofocus"],
199
- "disabled": [1540],
200
- "enterkeyhint": [1],
201
- "form": [1],
202
- "inputmode": [1],
203
- "max": [8],
204
- "maxLength": [2, "maxlength"],
205
- "min": [8],
206
- "minLength": [2, "minlength"],
207
- "multiple": [4],
208
- "name": [1],
209
- "pattern": [1],
210
- "placeholder": [1],
211
- "readOnly": [4, "readonly"],
212
- "required": [4],
213
- "spellCheck": [4, "spellcheck"],
214
- "step": [8],
215
- "type": [1],
216
- "value": [1032],
217
- "reportValidity": [64],
218
- "select": [64],
219
- "setCustomValidity": [64],
220
- "setRangeText": [64],
221
- "setSelectionRange": [64],
222
- "stepDown": [64],
223
- "stepUp": [64]
224
- }]);
18
+ // SPDX-FileCopyrightText: © 2024 Schneider Electric
19
+ //
20
+ // SPDX-License-Identifier: Apache-2.0
21
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
22
+ if (kind === "a" && !f)
23
+ throw new TypeError("Private accessor was defined without a getter");
24
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
25
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
26
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
27
+ };
28
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
29
+ if (kind === "m")
30
+ throw new TypeError("Private method is not writable");
31
+ if (kind === "a" && !f)
32
+ throw new TypeError("Private accessor was defined without a setter");
33
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
34
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
35
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
36
+ };
37
+ var _Input_instances, _Input_inheritedAttributes, _Input_input, _Input_computedDisabled_get, _Input_computedIconName_get, _Input_computedSize_get, _Input_computedValue_get, _Input_hasIcon_get, _Input_hasInteractiveIcon_get, _Input_ref, _Input_getFiles, _Input_onBlur, _Input_onCancel, _Input_onChange, _Input_onClear, _Input_onFocus, _Input_onInput, _Input_defineGetter;
38
+ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends H {
39
+ constructor() {
40
+ super();
41
+ this.__registerHost();
42
+ this.__attachShadow();
43
+ this.blurEmitter = createEvent(this, "qdsBlur", 2);
44
+ this.cancelEmitter = createEvent(this, "qdsCancel", 6);
45
+ this.changeEmitter = createEvent(this, "qdsChange", 6);
46
+ this.focusEmitter = createEvent(this, "qdsFocus", 2);
47
+ this.inputEmitter = createEvent(this, "qdsInput", 6);
48
+ this.internals = this.attachInternals();
49
+ _Input_instances.add(this);
50
+ /**
51
+ * Hide the input type's icon.
52
+ *
53
+ * > **_NOTE:_** Due to browser limitations, the icon may not be hidden in
54
+ * all browsers.
55
+ */
56
+ this.noIcon = false;
57
+ /**
58
+ * The input's size.
59
+ *
60
+ * > **_NOTE:_** The native [`size` HTML attribute][size] is not supported.
61
+ * CSS `width` should be used instead if this functionality is needed.
62
+ *
63
+ * [size]: https://developer.mozilla.org/docs/Web/HTML/Attributes/size
64
+ */
65
+ this.size = 'standard';
66
+ /**
67
+ * Returns a file list for a `file` type input.
68
+ *
69
+ * @readonly
70
+ * @webnative
71
+ */
72
+ // eslint-disable-next-line unicorn/no-null
73
+ this.files = null;
74
+ /**
75
+ * The [`<form>`][] element to associate the input with (its form owner).
76
+ *
77
+ * The value of this attribute must be the id of a `<form>` in the same
78
+ * document. If this attribute is not set, the `<qds-input>` is associated
79
+ * with its ancestor `<form>` element, if any.
80
+ *
81
+ * This attribute lets you associate `<qds-input>` elements to `<form>`s
82
+ * anywhere in the document, not just inside a `<form>`. It can also override
83
+ * an ancestor `<form>` element.
84
+ *
85
+ * [`<form>`]: https://developer.mozilla.org/docs/Web/HTML/Element/form
86
+ *
87
+ * @readonly
88
+ * @webnative
89
+ */
90
+ // eslint-disable-next-line unicorn/no-null
91
+ this.form = null;
92
+ /**
93
+ * Returns a list of the [`<label>`][] elements associated with the
94
+ * `qds-input` element.
95
+ *
96
+ * [`<label>`]: https://developer.mozilla.org/docs/Web/HTML/Element/label
97
+ *
98
+ * @readonly
99
+ * @webnative
100
+ */
101
+ this.labels = {};
102
+ /**
103
+ * Get or set the selection direction of a text selection.
104
+ *
105
+ * > **_NOTE:_** This property has no effect when used as an attribute.
106
+ *
107
+ * @webnative
108
+ */
109
+ this.selectionDirection = null;
110
+ /**
111
+ * Get or set the ending position or offset of a text selection.
112
+ *
113
+ * > **_NOTE:_** This property has no effect when used as an attribute.
114
+ *
115
+ * @webnative
116
+ */
117
+ this.selectionEnd = null;
118
+ /**
119
+ * Get or set the starting position or offset of a text selection.
120
+ *
121
+ * > **_NOTE:_** This property has no effect when used as an attribute.
122
+ *
123
+ * @webnative
124
+ */
125
+ this.selectionStart = null;
126
+ /**
127
+ * The error message that would be shown to the user if the `<qds-input>`
128
+ * was to be checked for validity.
129
+ *
130
+ * @readonly
131
+ * @webnative
132
+ */
133
+ this.validationMessage = '';
134
+ /**
135
+ * The [`ValidityState`][] object for this `<qds-input>`.
136
+ *
137
+ * [`ValidityState`]: https://developer.mozilla.org/docs/Web/API/ValidityState
138
+ *
139
+ * @readonly
140
+ * @webnative
141
+ */
142
+ this.validity = VALID_STATE;
143
+ /**
144
+ * True if `<qds-input>` will be validated when the form is submitted; false
145
+ * otherwise.
146
+ *
147
+ * @readonly
148
+ * @webnative
149
+ */
150
+ this.willValidate = false;
151
+ _Input_inheritedAttributes.set(this, {});
152
+ _Input_input.set(this, void 0);
153
+ this.checkValidity = () => this.internals.checkValidity();
154
+ this.reportValidity = () => this.internals.reportValidity();
155
+ this.setCustomValidity = (error) => {
156
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
157
+ __classPrivateFieldGet(this, _Input_input, "f").setCustomValidity(error);
158
+ if (error)
159
+ this.internals.setValidity(CUSTOM_ERROR_FLAGS, error, __classPrivateFieldGet(this, _Input_input, "f"));
160
+ else
161
+ this.internals.setValidity(NO_ERROR_FLAGS);
162
+ };
163
+ this.select = () => {
164
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
165
+ __classPrivateFieldGet(this, _Input_input, "f").select();
166
+ };
167
+ this.getSelectionDirection = () => {
168
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
169
+ return __classPrivateFieldGet(this, _Input_input, "f").selectionDirection;
170
+ };
171
+ this.getSelectionStart = () => {
172
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
173
+ return __classPrivateFieldGet(this, _Input_input, "f").selectionStart;
174
+ };
175
+ this.getSelectionEnd = () => {
176
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
177
+ return __classPrivateFieldGet(this, _Input_input, "f").selectionEnd;
178
+ };
179
+ this.setRangeText = (replacement, start, end, selectionMode) => {
180
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
181
+ __classPrivateFieldGet(this, _Input_input, "f").setRangeText(replacement, start, end, selectionMode);
182
+ if (this.value !== __classPrivateFieldGet(this, _Input_input, "f").value) {
183
+ this.value = __classPrivateFieldGet(this, _Input_input, "f").value;
184
+ this.inputEmitter.emit();
185
+ this.changeEmitter.emit();
186
+ }
187
+ };
188
+ this.setSelectionRange = (start, end, direction) => {
189
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
190
+ __classPrivateFieldGet(this, _Input_input, "f").setSelectionRange(start, end, direction);
191
+ };
192
+ this.stepDown = (n) => {
193
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
194
+ __classPrivateFieldGet(this, _Input_input, "f").stepDown(n);
195
+ };
196
+ this.stepUp = (n) => {
197
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
198
+ __classPrivateFieldGet(this, _Input_input, "f").stepUp(n);
199
+ };
200
+ this.showPicker = () => {
201
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
202
+ __classPrivateFieldGet(this, _Input_input, "f").showPicker();
203
+ };
204
+ _Input_ref.set(this, (input) => {
205
+ __classPrivateFieldSet(this, _Input_input, input, "f");
206
+ });
207
+ _Input_getFiles.set(this, () => {
208
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
209
+ return __classPrivateFieldGet(this, _Input_input, "f").files;
210
+ });
211
+ _Input_onBlur.set(this, (event) => {
212
+ this.blurEmitter.emit(pickFocusEventAttributes(event));
213
+ });
214
+ _Input_onCancel.set(this, () => {
215
+ this.cancelEmitter.emit();
216
+ });
217
+ _Input_onChange.set(this, () => {
218
+ this.changeEmitter.emit();
219
+ });
220
+ _Input_onClear.set(this, () => {
221
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
222
+ __classPrivateFieldGet(this, _Input_input, "f").value = '';
223
+ __classPrivateFieldGet(this, _Input_onInput, "f").call(this, new InputEvent('input', { inputType: 'deleteContent' }));
224
+ });
225
+ _Input_onFocus.set(this, (event) => {
226
+ this.focusEmitter.emit(pickFocusEventAttributes(event));
227
+ });
228
+ _Input_onInput.set(this, (event) => {
229
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
230
+ this.value = __classPrivateFieldGet(this, _Input_input, "f").value;
231
+ this.inputEmitter.emit(pickInputEventAttributes(event));
232
+ });
233
+ }
234
+ onClick(event) {
235
+ if (__classPrivateFieldGet(this, _Input_instances, "a", _Input_computedDisabled_get))
236
+ event.stopImmediatePropagation();
237
+ }
238
+ onKeydown(event) {
239
+ if (__classPrivateFieldGet(this, _Input_instances, "a", _Input_computedDisabled_get)) {
240
+ event.stopImmediatePropagation();
241
+ return;
242
+ }
243
+ if (event.key === 'Enter' && this.internals.form) {
244
+ this.internals.form.requestSubmit();
245
+ event.preventDefault();
246
+ }
247
+ }
248
+ disabledChanged() {
249
+ if (__classPrivateFieldGet(this, _Input_instances, "a", _Input_computedDisabled_get))
250
+ // eslint-disable-next-line unicorn/no-null
251
+ this.internals.setFormValue(null);
252
+ else
253
+ this.internals.setFormValue(__classPrivateFieldGet(this, _Input_instances, "a", _Input_computedValue_get));
254
+ }
255
+ selectionDirectionChanged() {
256
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
257
+ __classPrivateFieldGet(this, _Input_input, "f").selectionDirection = this.selectionDirection;
258
+ }
259
+ selectionEndChanged() {
260
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
261
+ __classPrivateFieldGet(this, _Input_input, "f").selectionEnd = this.selectionEnd;
262
+ }
263
+ selectionStartChanged() {
264
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
265
+ __classPrivateFieldGet(this, _Input_input, "f").selectionStart = this.selectionStart;
266
+ }
267
+ tabindexChanged(newValue) {
268
+ const parsedValue = Number.parseInt(newValue, 10);
269
+ this.tabIndex =
270
+ parsedValue === 0 || Number.isNaN(parsedValue) ? undefined : parsedValue;
271
+ }
272
+ validationChanged() {
273
+ if (!__classPrivateFieldGet(this, _Input_input, "f"))
274
+ return;
275
+ if (__classPrivateFieldGet(this, _Input_input, "f").max !== this.max && this.max !== undefined)
276
+ __classPrivateFieldGet(this, _Input_input, "f").max = this.max.toString();
277
+ if (this.maxLength !== undefined)
278
+ __classPrivateFieldGet(this, _Input_input, "f").maxLength = this.maxLength;
279
+ if (__classPrivateFieldGet(this, _Input_input, "f").min !== this.min && this.min !== undefined)
280
+ __classPrivateFieldGet(this, _Input_input, "f").min = this.min.toString();
281
+ if (this.minLength !== undefined)
282
+ __classPrivateFieldGet(this, _Input_input, "f").minLength = this.minLength;
283
+ if (this.pattern !== undefined)
284
+ __classPrivateFieldGet(this, _Input_input, "f").pattern = this.pattern;
285
+ __classPrivateFieldGet(this, _Input_input, "f").required = this.required ?? false;
286
+ if (__classPrivateFieldGet(this, _Input_input, "f").step !== this.step && this.step !== undefined)
287
+ __classPrivateFieldGet(this, _Input_input, "f").step = this.step.toString();
288
+ if (this.type !== undefined)
289
+ __classPrivateFieldGet(this, _Input_input, "f").type = this.type;
290
+ // eslint-disable-next-line unicorn/no-null
291
+ if (this.type !== 'file' && this.value != null)
292
+ __classPrivateFieldGet(this, _Input_input, "f").value = this.value.toString();
293
+ const { valid } = __classPrivateFieldGet(this, _Input_input, "f").validity;
294
+ if (valid)
295
+ this.internals.setValidity(NO_ERROR_FLAGS, undefined, __classPrivateFieldGet(this, _Input_input, "f"));
296
+ else
297
+ this.internals.setValidity(__classPrivateFieldGet(this, _Input_input, "f").validity, __classPrivateFieldGet(this, _Input_input, "f").validationMessage, __classPrivateFieldGet(this, _Input_input, "f"));
298
+ }
299
+ valueChanged() {
300
+ if (!__classPrivateFieldGet(this, _Input_instances, "a", _Input_computedDisabled_get))
301
+ this.internals.setFormValue(__classPrivateFieldGet(this, _Input_instances, "a", _Input_computedValue_get));
302
+ }
303
+ componentWillLoad() {
304
+ __classPrivateFieldGet(this, _Input_instances, "m", _Input_defineGetter).call(this, 'form', () => this.internals.form);
305
+ __classPrivateFieldGet(this, _Input_instances, "m", _Input_defineGetter).call(this, 'willValidate', () => this.internals.willValidate);
306
+ __classPrivateFieldGet(this, _Input_instances, "m", _Input_defineGetter).call(this, 'validity', () => this.internals.validity);
307
+ __classPrivateFieldGet(this, _Input_instances, "m", _Input_defineGetter).call(this, 'validationMessage', () => this.internals.validationMessage);
308
+ __classPrivateFieldGet(this, _Input_instances, "m", _Input_defineGetter).call(this, 'files', __classPrivateFieldGet(this, _Input_getFiles, "f"));
309
+ __classPrivateFieldGet(this, _Input_instances, "m", _Input_defineGetter).call(this, 'labels', () => this.internals.labels);
310
+ __classPrivateFieldSet(this, _Input_inheritedAttributes, inheritAriaAttributes(this.host), "f");
311
+ this.tabindexChanged(this.host.getAttribute('tabindex') ?? '0');
312
+ }
313
+ componentDidLoad() {
314
+ invariant(__classPrivateFieldGet(this, _Input_input, "f"));
315
+ this.validationChanged();
316
+ this.valueChanged();
317
+ // FIXME: This event is supported by the native `<input>` element but not
318
+ // recognized by Stencil's type definitions, so it needs to be manually
319
+ // bound here.
320
+ __classPrivateFieldGet(this, _Input_input, "f").addEventListener('cancel', __classPrivateFieldGet(this, _Input_onCancel, "f"));
321
+ }
322
+ disconnectedCallback() {
323
+ if (__classPrivateFieldGet(this, _Input_input, "f"))
324
+ __classPrivateFieldGet(this, _Input_input, "f").removeEventListener('cancel', __classPrivateFieldGet(this, _Input_onCancel, "f"));
325
+ }
326
+ render() {
327
+ const hasValue = this.value !== null && this.value !== undefined && this.value !== '';
328
+ const isSearchType = this.type === 'search';
329
+ const shouldShowClearButton = isSearchType && hasValue;
330
+ const shouldShowSearchIcon = isSearchType && this.noIcon === false;
331
+ const shouldHideIcon = !isSearchType && this.noIcon === true;
332
+ const shouldRemoveSearchPadding = isSearchType && this.noIcon === true;
333
+ return (h("div", { key: '1896729930a4fad1d75e2ecb44fd73c450a046e9', class: "qds-container" }, h("input", { key: '496c8f82b467f762e869b4f9730806231f7cd6ad', accept: this.accept, autoCapitalize: this.host.autocapitalize, autoComplete: this.autoComplete,
334
+ // eslint-disable-next-line jsx-a11y/no-autofocus
335
+ autoFocus: this.host.autofocus, capture: this.capture, class: {
336
+ 'qds-search-padding': shouldRemoveSearchPadding,
337
+ 'qds-input': true,
338
+ 'qds-hide': shouldHideIcon,
339
+ 'qds-padding': shouldHideIcon,
340
+ }, "data-size": __classPrivateFieldGet(this, _Input_instances, "a", _Input_computedSize_get), disabled: this.disabled, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, max: this.max, maxLength: this.maxLength, min: this.min, minLength: this.minLength, multiple: this.multiple, onBlur: __classPrivateFieldGet(this, _Input_onBlur, "f"), onChange: __classPrivateFieldGet(this, _Input_onChange, "f"), onFocus: __classPrivateFieldGet(this, _Input_onFocus, "f"), onInput: __classPrivateFieldGet(this, _Input_onInput, "f"), placeholder: this.placeholder, ref: __classPrivateFieldGet(this, _Input_ref, "f"), spellcheck: this.host.spellcheck, step: this.step, tabIndex: __classPrivateFieldGet(this, _Input_instances, "a", _Input_computedDisabled_get) ? undefined : this.tabIndex, type: this.type, ...__classPrivateFieldGet(this, _Input_inheritedAttributes, "f") }), h("div", { key: '4fb72502435349071f8c43222f51b34ede2151b9', class: "qds-focus-ring" }), __classPrivateFieldGet(this, _Input_instances, "a", _Input_computedIconName_get) && (h("div", { key: '3ee0c7c55a1bb74eb802db9e11786d799c39bf52', class: {
341
+ 'qds-icon-container': true,
342
+ 'no-padding': shouldRemoveSearchPadding,
343
+ } }, shouldShowClearButton && (h("qds-button", { key: 'ebb601275245ac08328e30a4b37f1c14f4b41ea0', class: {
344
+ 'qds-icon': true,
345
+ 'qds-hide': !hasValue,
346
+ }, disabled: this.disabled, iconLibrary: "core", iconName: "clear", iconOnly: true, importance: "subdued", onClick: __classPrivateFieldGet(this, _Input_onClear, "f"), size: "small", text: "clear input" })), __classPrivateFieldGet(this, _Input_instances, "a", _Input_hasIcon_get) && (h("qds-icon", { key: 'e343dcff629da268d611ee78a7a8ee90f957aa11', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet(this, _Input_instances, "a", _Input_computedSize_get), library: "core", name: __classPrivateFieldGet(this, _Input_instances, "a", _Input_computedIconName_get) })), __classPrivateFieldGet(this, _Input_instances, "a", _Input_hasInteractiveIcon_get) && (h("qds-button", { key: '4963e7f006cc65254da5d52a2570aea71cf7048a', class: "qds-icon", disabled: this.disabled, iconLibrary: "core", iconName: __classPrivateFieldGet(this, _Input_instances, "a", _Input_computedIconName_get), iconOnly: true, importance: "subdued", onClick: this.showPicker, size: "small", text: this.type ?? '' })), shouldShowSearchIcon ? (h("qds-icon", { "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet(this, _Input_instances, "a", _Input_computedSize_get), library: "core", name: __classPrivateFieldGet(this, _Input_instances, "a", _Input_computedIconName_get) })) : (h("div", null))))));
347
+ }
348
+ static get delegatesFocus() { return true; }
349
+ static get formAssociated() { return true; }
350
+ get host() { return this; }
351
+ static get watchers() { return {
352
+ "disabled": ["disabledChanged"],
353
+ "selectionDirection": ["selectionDirectionChanged"],
354
+ "selectionEnd": ["selectionEndChanged"],
355
+ "selectionStart": ["selectionStartChanged"],
356
+ "tabindex": ["tabindexChanged"],
357
+ "max": ["validationChanged"],
358
+ "maxLength": ["validationChanged"],
359
+ "min": ["validationChanged"],
360
+ "minLength": ["validationChanged"],
361
+ "pattern": ["validationChanged"],
362
+ "required": ["validationChanged"],
363
+ "step": ["validationChanged"],
364
+ "type": ["validationChanged"],
365
+ "value": ["validationChanged", "valueChanged"]
366
+ }; }
367
+ static get style() { return QdsInputStyle0; }
368
+ }, [81, "qds-input", {
369
+ "noIcon": [4, "no-icon"],
370
+ "size": [1],
371
+ "accept": [1],
372
+ "autoComplete": [1, "autocomplete"],
373
+ "capture": [1],
374
+ "disabled": [4],
375
+ "enterkeyhint": [1],
376
+ "files": [16],
377
+ "form": [1],
378
+ "inputmode": [1],
379
+ "labels": [16],
380
+ "max": [8],
381
+ "maxLength": [2, "maxlength"],
382
+ "min": [8],
383
+ "minLength": [2, "minlength"],
384
+ "multiple": [4],
385
+ "name": [1],
386
+ "pattern": [1],
387
+ "placeholder": [1],
388
+ "required": [4],
389
+ "selectionDirection": [1025, "selection-direction"],
390
+ "selectionEnd": [1026, "selection-end"],
391
+ "selectionStart": [1026, "selection-start"],
392
+ "step": [8],
393
+ "type": [1],
394
+ "validationMessage": [1, "validation-message"],
395
+ "validity": [16],
396
+ "value": [1032],
397
+ "willValidate": [4, "will-validate"],
398
+ "tabIndex": [32]
399
+ }, [[0, "click", "onClick"], [0, "keydown", "onKeydown"]], {
400
+ "disabled": ["disabledChanged"],
401
+ "selectionDirection": ["selectionDirectionChanged"],
402
+ "selectionEnd": ["selectionEndChanged"],
403
+ "selectionStart": ["selectionStartChanged"],
404
+ "tabindex": ["tabindexChanged"],
405
+ "max": ["validationChanged"],
406
+ "maxLength": ["validationChanged"],
407
+ "min": ["validationChanged"],
408
+ "minLength": ["validationChanged"],
409
+ "pattern": ["validationChanged"],
410
+ "required": ["validationChanged"],
411
+ "step": ["validationChanged"],
412
+ "type": ["validationChanged"],
413
+ "value": ["validationChanged", "valueChanged"]
414
+ }]);
415
+ _Input_inheritedAttributes = new WeakMap(), _Input_input = new WeakMap(), _Input_ref = new WeakMap(), _Input_getFiles = new WeakMap(), _Input_onBlur = new WeakMap(), _Input_onCancel = new WeakMap(), _Input_onChange = new WeakMap(), _Input_onClear = new WeakMap(), _Input_onFocus = new WeakMap(), _Input_onInput = new WeakMap(), _Input_instances = new WeakSet(), _Input_computedDisabled_get = function _Input_computedDisabled_get() {
416
+ return this.host.matches(':disabled') || (this.disabled ?? false);
417
+ }, _Input_computedIconName_get = function _Input_computedIconName_get() {
418
+ switch (this.type) {
419
+ case 'date':
420
+ case 'datetime-local':
421
+ case 'email':
422
+ case 'month':
423
+ case 'search':
424
+ case 'tel':
425
+ case 'time':
426
+ case 'url':
427
+ case 'week': {
428
+ return `input-${this.type}`;
429
+ }
430
+ default: {
431
+ return undefined;
432
+ }
433
+ }
434
+ }, _Input_computedSize_get = function _Input_computedSize_get() {
435
+ switch (this.size) {
436
+ case 'standard':
437
+ case 'small':
438
+ case 'large': {
439
+ return this.size;
440
+ }
441
+ default: {
442
+ return 'standard';
443
+ }
444
+ }
445
+ }, _Input_computedValue_get = function _Input_computedValue_get() {
446
+ if (typeof this.value === 'number')
447
+ return this.value.toString();
448
+ // eslint-disable-next-line unicorn/no-null
449
+ return this.value === undefined ? null : this.value;
450
+ }, _Input_hasIcon_get = function _Input_hasIcon_get() {
451
+ return (typeof this.type === 'string' &&
452
+ ['email', 'tel', 'url'].includes(this.type));
453
+ }, _Input_hasInteractiveIcon_get = function _Input_hasInteractiveIcon_get() {
454
+ return (typeof this.type === 'string' &&
455
+ ['month', 'time', 'date', 'datetime-local', 'week'].includes(this.type));
456
+ }, _Input_defineGetter = function _Input_defineGetter(p, get) {
457
+ Object.defineProperty(this.host, p, { enumerable: true, get });
458
+ };
225
459
  function defineCustomElement$1() {
226
- if (typeof customElements === "undefined") {
227
- return;
228
- }
229
- const components = ["qds-input"];
230
- components.forEach(tagName => { switch (tagName) {
231
- case "qds-input":
232
- if (!customElements.get(tagName)) {
233
- customElements.define(tagName, Input);
234
- }
235
- break;
236
- } });
460
+ if (typeof customElements === "undefined") {
461
+ return;
462
+ }
463
+ const components = ["qds-input", "qds-badge-counter", "qds-badge-indicator", "qds-button", "qds-icon", "qds-tooltip"];
464
+ components.forEach(tagName => { switch (tagName) {
465
+ case "qds-input":
466
+ if (!customElements.get(tagName)) {
467
+ customElements.define(tagName, Input);
468
+ }
469
+ break;
470
+ case "qds-badge-counter":
471
+ if (!customElements.get(tagName)) {
472
+ defineCustomElement$6();
473
+ }
474
+ break;
475
+ case "qds-badge-indicator":
476
+ if (!customElements.get(tagName)) {
477
+ defineCustomElement$5();
478
+ }
479
+ break;
480
+ case "qds-button":
481
+ if (!customElements.get(tagName)) {
482
+ defineCustomElement$4();
483
+ }
484
+ break;
485
+ case "qds-icon":
486
+ if (!customElements.get(tagName)) {
487
+ defineCustomElement$3();
488
+ }
489
+ break;
490
+ case "qds-tooltip":
491
+ if (!customElements.get(tagName)) {
492
+ defineCustomElement$2();
493
+ }
494
+ break;
495
+ } });
237
496
  }
238
497
 
239
498
  const QdsInput = Input;