@siemens/ix 0.0.0-20240522074328 → 0.0.0-pr-1318-20240627080522

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 (1382) hide show
  1. package/components/a11y.js +3 -2
  2. package/components/a11y.js.map +1 -1
  3. package/components/application-header.js +12 -4
  4. package/components/application-header.js.map +1 -1
  5. package/components/avatar.js +6 -1
  6. package/components/avatar.js.map +1 -1
  7. package/components/breadcrumb-item.js +1 -1
  8. package/components/breadcrumb-item.js.map +1 -1
  9. package/components/button.js +1 -1
  10. package/components/button.js.map +1 -1
  11. package/components/card-accordion.js +1 -1
  12. package/components/card-accordion.js.map +1 -1
  13. package/components/card-content.js +2 -2
  14. package/components/card-content.js.map +1 -1
  15. package/components/card-title.js +1 -1
  16. package/components/card.js +1 -1
  17. package/components/card.js.map +1 -1
  18. package/components/col.js +1 -1
  19. package/components/col.js.map +1 -1
  20. package/components/date-picker.js +5 -5
  21. package/components/date-picker.js.map +1 -1
  22. package/components/date-time-card.js +3 -3
  23. package/components/date-time-card.js.map +1 -1
  24. package/components/divider.js +1 -1
  25. package/components/dropdown-item.js +4 -4
  26. package/components/dropdown-item.js.map +1 -1
  27. package/components/dropdown.js +17 -10
  28. package/components/dropdown.js.map +1 -1
  29. package/components/field-label.js +127 -0
  30. package/components/field-label.js.map +1 -0
  31. package/components/field-wrapper.js +97 -0
  32. package/components/field-wrapper.js.map +1 -0
  33. package/components/filter-chip.js +2 -2
  34. package/components/filter-chip.js.map +1 -1
  35. package/components/group-context-menu.js +1 -1
  36. package/components/group-item.js +3 -3
  37. package/components/group-item.js.map +1 -1
  38. package/components/helper-text-util.js +48 -0
  39. package/components/helper-text-util.js.map +1 -0
  40. package/components/icon-button.js +2 -2
  41. package/components/icon-button.js.map +1 -1
  42. package/components/index.js +19 -4
  43. package/components/index.js.map +1 -1
  44. package/components/ix-action-card.js +1 -1
  45. package/components/ix-action-card.js.map +1 -1
  46. package/components/ix-application-sidebar.js +2 -2
  47. package/components/ix-application-sidebar.js.map +1 -1
  48. package/components/ix-application-switch-modal.js +2 -2
  49. package/components/ix-application-switch-modal.js.map +1 -1
  50. package/components/ix-application.js +4 -4
  51. package/components/ix-application.js.map +1 -1
  52. package/components/ix-basic-navigation.js +3 -3
  53. package/components/ix-basic-navigation.js.map +1 -1
  54. package/components/ix-blind.js +1 -1
  55. package/components/ix-blind.js.map +1 -1
  56. package/components/ix-breadcrumb.js +3 -3
  57. package/components/ix-breadcrumb.js.map +1 -1
  58. package/components/ix-card-list.js +5 -5
  59. package/components/ix-card-list.js.map +1 -1
  60. package/components/ix-category-filter.js +8 -5
  61. package/components/ix-category-filter.js.map +1 -1
  62. package/components/ix-checkbox-group.d.ts +11 -0
  63. package/components/ix-checkbox-group.js +105 -0
  64. package/components/ix-checkbox-group.js.map +1 -0
  65. package/components/ix-checkbox.d.ts +11 -0
  66. package/components/ix-checkbox.js +141 -0
  67. package/components/ix-checkbox.js.map +1 -0
  68. package/components/ix-chip.js +5 -5
  69. package/components/ix-chip.js.map +1 -1
  70. package/components/ix-content.js +4 -4
  71. package/components/ix-content.js.map +1 -1
  72. package/components/ix-css-grid-item.js +1 -1
  73. package/components/ix-custom-field.d.ts +11 -0
  74. package/components/ix-custom-field.js +116 -0
  75. package/components/ix-custom-field.js.map +1 -0
  76. package/components/ix-date-dropdown.js +4 -4
  77. package/components/ix-date-dropdown.js.map +1 -1
  78. package/components/{ix-form-field.d.ts → ix-date-field.d.ts} +4 -4
  79. package/components/ix-date-field.js +351 -0
  80. package/components/ix-date-field.js.map +1 -0
  81. package/components/ix-datetime-picker.js +2 -2
  82. package/components/ix-datetime-picker.js.map +1 -1
  83. package/components/ix-drawer.js +3 -3
  84. package/components/ix-drawer.js.map +1 -1
  85. package/components/ix-dropdown-button.js +3 -3
  86. package/components/ix-dropdown-button.js.map +1 -1
  87. package/components/ix-dropdown-header.js +2 -2
  88. package/components/ix-dropdown-header.js.map +1 -1
  89. package/components/ix-dropdown-quick-actions.js +1 -1
  90. package/components/ix-empty-state.js +2 -2
  91. package/components/ix-empty-state.js.map +1 -1
  92. package/components/ix-event-list-item.js +5 -5
  93. package/components/ix-event-list-item.js.map +1 -1
  94. package/components/ix-event-list.js +3 -3
  95. package/components/ix-event-list.js.map +1 -1
  96. package/components/ix-expanding-search.js +5 -5
  97. package/components/ix-expanding-search.js.map +1 -1
  98. package/components/ix-field-label.d.ts +11 -0
  99. package/components/ix-field-label.js +8 -0
  100. package/components/ix-field-label.js.map +1 -0
  101. package/components/ix-field-wrapper.d.ts +11 -0
  102. package/components/ix-field-wrapper.js +8 -0
  103. package/components/ix-field-wrapper.js.map +1 -0
  104. package/components/ix-flip-tile-content.js +1 -1
  105. package/components/ix-flip-tile.js +5 -5
  106. package/components/ix-flip-tile.js.map +1 -1
  107. package/components/ix-group.js +8 -8
  108. package/components/ix-helper-text.d.ts +11 -0
  109. package/components/ix-helper-text.js +97 -0
  110. package/components/ix-helper-text.js.map +1 -0
  111. package/components/ix-icon-toggle-button.js +2 -2
  112. package/components/ix-icon-toggle-button.js.map +1 -1
  113. package/components/ix-input-group.js +2 -2
  114. package/components/ix-input-group.js.map +1 -1
  115. package/components/ix-key-value-list.js +1 -1
  116. package/components/ix-key-value.js +1 -1
  117. package/components/ix-key-value.js.map +1 -1
  118. package/components/ix-kpi.js +4 -4
  119. package/components/ix-kpi.js.map +1 -1
  120. package/components/ix-layout-form.d.ts +11 -0
  121. package/components/ix-layout-form.js +113 -0
  122. package/components/ix-layout-form.js.map +1 -0
  123. package/components/ix-link-button.js +3 -3
  124. package/components/ix-map-navigation.js +3 -3
  125. package/components/ix-map-navigation.js.map +1 -1
  126. package/components/ix-menu-about-item.js +1 -1
  127. package/components/ix-menu-about-news.js +5 -5
  128. package/components/ix-menu-about-news.js.map +1 -1
  129. package/components/ix-menu-about.js +1 -1
  130. package/components/ix-menu-avatar.js +3 -3
  131. package/components/ix-menu-avatar.js.map +1 -1
  132. package/components/ix-menu-category.js +9 -6
  133. package/components/ix-menu-category.js.map +1 -1
  134. package/components/ix-menu-settings-item.js +1 -1
  135. package/components/ix-menu.js +12 -12
  136. package/components/ix-menu.js.map +1 -1
  137. package/components/ix-message-bar.js +2 -2
  138. package/components/ix-message-bar.js.map +1 -1
  139. package/components/ix-modal-example.js +1 -1
  140. package/components/ix-modal-footer.js +2 -2
  141. package/components/ix-modal-footer.js.map +1 -1
  142. package/components/ix-modal-loading.js +1 -1
  143. package/components/ix-modal.js +3 -3
  144. package/components/ix-number-field.d.ts +11 -0
  145. package/components/ix-number-field.js +217 -0
  146. package/components/ix-number-field.js.map +1 -0
  147. package/components/ix-pagination.js +35 -17
  148. package/components/ix-pagination.js.map +1 -1
  149. package/components/ix-pane-layout.js +2 -2
  150. package/components/ix-pane-layout.js.map +1 -1
  151. package/components/ix-pane.js +7 -7
  152. package/components/ix-pane.js.map +1 -1
  153. package/components/ix-pill.js +5 -5
  154. package/components/ix-pill.js.map +1 -1
  155. package/components/ix-playground-internal.js +1 -1
  156. package/components/ix-playground-internal.js.map +1 -1
  157. package/components/ix-push-card.js +1 -1
  158. package/components/ix-radio-group.d.ts +11 -0
  159. package/components/ix-radio-group.js +169 -0
  160. package/components/ix-radio-group.js.map +1 -0
  161. package/components/ix-radio.d.ts +11 -0
  162. package/components/ix-radio.js +115 -0
  163. package/components/ix-radio.js.map +1 -0
  164. package/components/ix-slider.js +7 -7
  165. package/components/ix-slider.js.map +1 -1
  166. package/components/ix-split-button-item.js +1 -1
  167. package/components/ix-split-button.js +4 -2
  168. package/components/ix-split-button.js.map +1 -1
  169. package/components/ix-text-field.d.ts +11 -0
  170. package/components/ix-text-field.js +223 -0
  171. package/components/ix-text-field.js.map +1 -0
  172. package/components/ix-textarea-field.d.ts +11 -0
  173. package/components/ix-textarea-field.js +177 -0
  174. package/components/ix-textarea-field.js.map +1 -0
  175. package/components/ix-tile.js +5 -5
  176. package/components/ix-tile.js.map +1 -1
  177. package/components/ix-toast-container.js +3 -3
  178. package/components/ix-toast-container.js.map +1 -1
  179. package/components/ix-toggle-button.js +3 -3
  180. package/components/ix-toggle-button.js.map +1 -1
  181. package/components/ix-toggle.js +43 -5
  182. package/components/ix-toggle.js.map +1 -1
  183. package/components/ix-tree.js +1 -1
  184. package/components/ix-upload.js +4 -4
  185. package/components/ix-upload.js.map +1 -1
  186. package/components/ix-validation-tooltip.js +2 -2
  187. package/components/ix-workflow-step.js +5 -5
  188. package/components/ix-workflow-step.js.map +1 -1
  189. package/components/ix-workflow-steps.js +2 -2
  190. package/components/ix-workflow-steps.js.map +1 -1
  191. package/components/layout-grid.js +2 -2
  192. package/components/make-ref.js +5 -0
  193. package/components/make-ref.js.map +1 -1
  194. package/components/map-navigation-overlay.js +3 -3
  195. package/components/map-navigation-overlay.js.map +1 -1
  196. package/components/menu-avatar-item.js +2 -2
  197. package/components/menu-avatar-item.js.map +1 -1
  198. package/components/menu-expand-icon.js +2 -2
  199. package/components/menu-expand-icon.js.map +1 -1
  200. package/components/menu-item.js +4 -4
  201. package/components/menu-item.js.map +1 -1
  202. package/components/menu-tabs-fc.js +2 -2
  203. package/components/menu-tabs-fc.js.map +1 -1
  204. package/components/modal-content.js +2 -2
  205. package/components/modal-content.js.map +1 -1
  206. package/components/modal-header.js +2 -2
  207. package/components/modal-header.js.map +1 -1
  208. package/components/row.js +1 -1
  209. package/components/select-item.js +1 -1
  210. package/components/select.js +172 -58
  211. package/components/select.js.map +1 -1
  212. package/components/spinner.js +2 -2
  213. package/components/spinner.js.map +1 -1
  214. package/components/tab-item.js +4 -4
  215. package/components/tab-item.js.map +1 -1
  216. package/components/tabs.js +3 -3
  217. package/components/tabs.js.map +1 -1
  218. package/components/text-field.util.js +167 -0
  219. package/components/text-field.util.js.map +1 -0
  220. package/components/time-picker.js +4 -4
  221. package/components/time-picker.js.map +1 -1
  222. package/components/toast.js +3 -3
  223. package/components/toast.js.map +1 -1
  224. package/components/tooltip.js +7 -7
  225. package/components/tooltip.js.map +1 -1
  226. package/components/tree-item.js +5 -5
  227. package/components/tree-item.js.map +1 -1
  228. package/components/typography.js +1 -1
  229. package/components/typography.js.map +1 -1
  230. package/components/validation.js +112 -0
  231. package/components/validation.js.map +1 -0
  232. package/dist/cjs/{a11y-d3ce56d1.js → a11y-32046b56.js} +4 -3
  233. package/dist/cjs/a11y-32046b56.js.map +1 -0
  234. package/dist/cjs/app-globals-5cfdf2a0.js.map +1 -1
  235. package/dist/cjs/{base-button-7c45a6c4.js → base-button-16d4fadf.js} +2 -2
  236. package/dist/cjs/{base-button-7c45a6c4.js.map → base-button-16d4fadf.js.map} +1 -1
  237. package/dist/cjs/{base-icon-button-ac2fcf4b.js → base-icon-button-aba2ddbf.js} +3 -3
  238. package/dist/cjs/{base-icon-button-ac2fcf4b.js.map → base-icon-button-aba2ddbf.js.map} +1 -1
  239. package/dist/cjs/dropdown-controller-403dc7fa.js +147 -0
  240. package/dist/cjs/dropdown-controller-403dc7fa.js.map +1 -0
  241. package/dist/cjs/helper-text-util-9f617ef2.js +40 -0
  242. package/dist/cjs/helper-text-util-9f617ef2.js.map +1 -0
  243. package/dist/cjs/index-0f6297c8.js +2044 -0
  244. package/dist/cjs/index-0f6297c8.js.map +1 -0
  245. package/dist/cjs/index-762a29a3.js +24 -0
  246. package/dist/cjs/index-762a29a3.js.map +1 -0
  247. package/dist/cjs/index.cjs.js +16 -0
  248. package/dist/cjs/index.cjs.js.map +1 -1
  249. package/dist/cjs/ix-action-card.cjs.entry.js +2 -2
  250. package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
  251. package/dist/cjs/ix-application-header.cjs.entry.js +13 -5
  252. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  253. package/dist/cjs/ix-application-sidebar.cjs.entry.js +3 -3
  254. package/dist/cjs/ix-application-sidebar.cjs.entry.js.map +1 -1
  255. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +3 -3
  256. package/dist/cjs/ix-application-switch-modal.cjs.entry.js.map +1 -1
  257. package/dist/cjs/ix-application.cjs.entry.js +5 -5
  258. package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
  259. package/dist/cjs/ix-avatar_2.cjs.entry.js +11 -6
  260. package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
  261. package/dist/cjs/ix-basic-navigation.cjs.entry.js +4 -4
  262. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  263. package/dist/cjs/ix-blind.cjs.entry.js +3 -3
  264. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  265. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +4 -4
  266. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
  267. package/dist/cjs/ix-breadcrumb.cjs.entry.js +5 -5
  268. package/dist/cjs/ix-breadcrumb.cjs.entry.js.map +1 -1
  269. package/dist/cjs/ix-button.cjs.entry.js +3 -3
  270. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  271. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +3 -3
  272. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  273. package/dist/cjs/ix-card-list.cjs.entry.js +6 -6
  274. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
  275. package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
  276. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  277. package/dist/cjs/ix-category-filter.cjs.entry.js +10 -7
  278. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  279. package/dist/cjs/ix-checkbox-group.cjs.entry.js +56 -0
  280. package/dist/cjs/ix-checkbox-group.cjs.entry.js.map +1 -0
  281. package/dist/cjs/ix-checkbox.cjs.entry.js +114 -0
  282. package/dist/cjs/ix-checkbox.cjs.entry.js.map +1 -0
  283. package/dist/cjs/ix-chip.cjs.entry.js +6 -6
  284. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  285. package/dist/cjs/ix-col_4.cjs.entry.js +11 -11
  286. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  287. package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
  288. package/dist/cjs/ix-content.cjs.entry.js +5 -5
  289. package/dist/cjs/ix-content.cjs.entry.js.map +1 -1
  290. package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
  291. package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
  292. package/dist/cjs/ix-custom-field.cjs.entry.js +65 -0
  293. package/dist/cjs/ix-custom-field.cjs.entry.js.map +1 -0
  294. package/dist/cjs/ix-date-dropdown.cjs.entry.js +5 -5
  295. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  296. package/dist/cjs/ix-date-field.cjs.entry.js +255 -0
  297. package/dist/cjs/ix-date-field.cjs.entry.js.map +1 -0
  298. package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -3
  299. package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
  300. package/dist/cjs/ix-datetime-picker.cjs.entry.js +3 -3
  301. package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
  302. package/dist/cjs/ix-divider.cjs.entry.js +2 -2
  303. package/dist/cjs/ix-drawer.cjs.entry.js +4 -4
  304. package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
  305. package/dist/cjs/ix-dropdown-button.cjs.entry.js +4 -4
  306. package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
  307. package/dist/cjs/ix-dropdown-header.cjs.entry.js +3 -3
  308. package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -1
  309. package/dist/cjs/ix-dropdown-item.cjs.entry.js +5 -5
  310. package/dist/cjs/ix-dropdown-item.cjs.entry.js.map +1 -1
  311. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
  312. package/dist/cjs/ix-dropdown.cjs.entry.js +28 -160
  313. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  314. package/dist/cjs/ix-empty-state.cjs.entry.js +3 -3
  315. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  316. package/dist/cjs/ix-event-list-item.cjs.entry.js +7 -7
  317. package/dist/cjs/ix-event-list-item.cjs.entry.js.map +1 -1
  318. package/dist/cjs/ix-event-list.cjs.entry.js +4 -4
  319. package/dist/cjs/ix-event-list.cjs.entry.js.map +1 -1
  320. package/dist/cjs/ix-expanding-search.cjs.entry.js +6 -6
  321. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  322. package/dist/cjs/{ix-tooltip.cjs.entry.js → ix-field-label_3.cjs.entry.js} +151 -10
  323. package/dist/cjs/ix-field-label_3.cjs.entry.js.map +1 -0
  324. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +4 -4
  325. package/dist/cjs/ix-filter-chip_2.cjs.entry.js.map +1 -1
  326. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
  327. package/dist/cjs/ix-flip-tile.cjs.entry.js +6 -6
  328. package/dist/cjs/ix-flip-tile.cjs.entry.js.map +1 -1
  329. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +5 -5
  330. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  331. package/dist/cjs/ix-group.cjs.entry.js +9 -9
  332. package/dist/cjs/ix-helper-text.cjs.entry.js +70 -0
  333. package/dist/cjs/ix-helper-text.cjs.entry.js.map +1 -0
  334. package/dist/cjs/ix-icon-button_2.cjs.entry.js +8 -8
  335. package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
  336. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +6 -6
  337. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
  338. package/dist/cjs/ix-input-group.cjs.entry.js +3 -3
  339. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  340. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  341. package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
  342. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  343. package/dist/cjs/ix-kpi.cjs.entry.js +5 -5
  344. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  345. package/dist/cjs/ix-layout-form.cjs.entry.js +94 -0
  346. package/dist/cjs/ix-layout-form.cjs.entry.js.map +1 -0
  347. package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
  348. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +4 -4
  349. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js.map +1 -1
  350. package/dist/cjs/ix-map-navigation.cjs.entry.js +4 -4
  351. package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
  352. package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
  353. package/dist/cjs/ix-menu-about-news.cjs.entry.js +6 -6
  354. package/dist/cjs/ix-menu-about-news.cjs.entry.js.map +1 -1
  355. package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
  356. package/dist/cjs/ix-menu-avatar.cjs.entry.js +4 -4
  357. package/dist/cjs/ix-menu-avatar.cjs.entry.js.map +1 -1
  358. package/dist/cjs/ix-menu-category.cjs.entry.js +10 -7
  359. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
  360. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +5 -5
  361. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
  362. package/dist/cjs/ix-menu-item.cjs.entry.js +6 -6
  363. package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
  364. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
  365. package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
  366. package/dist/cjs/ix-menu.cjs.entry.js +13 -13
  367. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  368. package/dist/cjs/ix-message-bar.cjs.entry.js +3 -3
  369. package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
  370. package/dist/cjs/ix-modal-content_2.cjs.entry.js +5 -5
  371. package/dist/cjs/ix-modal-content_2.cjs.entry.js.map +1 -1
  372. package/dist/cjs/ix-modal-example.cjs.entry.js +2 -2
  373. package/dist/cjs/ix-modal-footer.cjs.entry.js +3 -3
  374. package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -1
  375. package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
  376. package/dist/cjs/ix-modal.cjs.entry.js +6 -6
  377. package/dist/cjs/ix-number-field.cjs.entry.js +148 -0
  378. package/dist/cjs/ix-number-field.cjs.entry.js.map +1 -0
  379. package/dist/cjs/ix-pagination.cjs.entry.js +6 -6
  380. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  381. package/dist/cjs/ix-pane-layout.cjs.entry.js +3 -3
  382. package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
  383. package/dist/cjs/ix-pane.cjs.entry.js +8 -8
  384. package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
  385. package/dist/cjs/ix-pill.cjs.entry.js +6 -6
  386. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  387. package/dist/cjs/ix-playground-internal.cjs.entry.js +2 -2
  388. package/dist/cjs/ix-playground-internal.cjs.entry.js.map +1 -1
  389. package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
  390. package/dist/cjs/ix-radio-group.cjs.entry.js +116 -0
  391. package/dist/cjs/ix-radio-group.cjs.entry.js.map +1 -0
  392. package/dist/cjs/ix-radio.cjs.entry.js +96 -0
  393. package/dist/cjs/ix-radio.cjs.entry.js.map +1 -0
  394. package/dist/cjs/ix-select.cjs.entry.js +126 -46
  395. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  396. package/dist/cjs/ix-slider.cjs.entry.js +10 -10
  397. package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
  398. package/dist/cjs/ix-split-button-item.cjs.entry.js +3 -3
  399. package/dist/cjs/ix-split-button.cjs.entry.js +4 -3
  400. package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
  401. package/dist/cjs/ix-tab-item_2.cjs.entry.js +8 -8
  402. package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
  403. package/dist/cjs/ix-text-field.cjs.entry.js +151 -0
  404. package/dist/cjs/ix-text-field.cjs.entry.js.map +1 -0
  405. package/dist/cjs/ix-textarea-field.cjs.entry.js +118 -0
  406. package/dist/cjs/ix-textarea-field.cjs.entry.js.map +1 -0
  407. package/dist/cjs/ix-tile.cjs.entry.js +6 -6
  408. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  409. package/dist/cjs/ix-time-picker.cjs.entry.js +5 -5
  410. package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
  411. package/dist/cjs/ix-toast-container.cjs.entry.js +4 -4
  412. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  413. package/dist/cjs/ix-toast.cjs.entry.js +4 -4
  414. package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
  415. package/dist/cjs/ix-toggle-button.cjs.entry.js +6 -6
  416. package/dist/cjs/ix-toggle-button.cjs.entry.js.map +1 -1
  417. package/dist/cjs/ix-toggle.cjs.entry.js +42 -5
  418. package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
  419. package/dist/cjs/ix-tree-item.cjs.entry.js +6 -6
  420. package/dist/cjs/ix-tree-item.cjs.entry.js.map +1 -1
  421. package/dist/cjs/ix-tree.cjs.entry.js +2 -2
  422. package/dist/cjs/ix-typography.cjs.entry.js +2 -2
  423. package/dist/cjs/ix-typography.cjs.entry.js.map +1 -1
  424. package/dist/cjs/ix-upload.cjs.entry.js +5 -5
  425. package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
  426. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
  427. package/dist/cjs/ix-workflow-step.cjs.entry.js +6 -6
  428. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  429. package/dist/cjs/ix-workflow-steps.cjs.entry.js +3 -3
  430. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  431. package/dist/cjs/{listener-d27acb41.js → listener-0881dc51.js} +2 -2
  432. package/dist/cjs/{listener-d27acb41.js.map → listener-0881dc51.js.map} +1 -1
  433. package/dist/cjs/loader.cjs.js +2 -2
  434. package/dist/cjs/{make-ref-c25629b7.js → make-ref-01530e5a.js} +6 -1
  435. package/dist/cjs/make-ref-01530e5a.js.map +1 -0
  436. package/dist/cjs/{menu-tabs-fc-194c3ba9.js → menu-tabs-fc-f6b706e3.js} +4 -4
  437. package/dist/cjs/{menu-tabs-fc-194c3ba9.js.map → menu-tabs-fc-f6b706e3.js.map} +1 -1
  438. package/dist/cjs/siemens-ix.cjs.js +10 -10
  439. package/dist/cjs/siemens-ix.cjs.js.map +1 -1
  440. package/dist/cjs/text-field.util-d7c5c1cd.js +179 -0
  441. package/dist/cjs/text-field.util-d7c5c1cd.js.map +1 -0
  442. package/dist/cjs/validation-c5a41d68.js +117 -0
  443. package/dist/cjs/validation-c5a41d68.js.map +1 -0
  444. package/dist/collection/collection-manifest.json +15 -3
  445. package/dist/collection/components/action-card/action-card.css +6 -0
  446. package/dist/collection/components/action-card/action-card.js +1 -1
  447. package/dist/collection/components/application/application.css +6 -0
  448. package/dist/collection/components/application/application.js +3 -3
  449. package/dist/collection/components/application-header/application-header.css +6 -0
  450. package/dist/collection/components/application-header/application-header.js +11 -3
  451. package/dist/collection/components/application-header/application-header.js.map +1 -1
  452. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.css +6 -0
  453. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
  454. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  455. package/dist/collection/components/application-sidebar/application-sidebar.css +7 -2
  456. package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
  457. package/dist/collection/components/avatar/avatar.js +6 -1
  458. package/dist/collection/components/avatar/avatar.js.map +1 -1
  459. package/dist/collection/components/basic-navigation/basic-navigation.css +6 -0
  460. package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
  461. package/dist/collection/components/blind/blind.css +6 -0
  462. package/dist/collection/components/blind/blind.js +1 -1
  463. package/dist/collection/components/breadcrumb/breadcrumb.css +6 -0
  464. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  465. package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +18 -0
  466. package/dist/collection/components/button/button.css +6 -0
  467. package/dist/collection/components/button/button.js +1 -1
  468. package/dist/collection/components/card/card.css +6 -0
  469. package/dist/collection/components/card/card.js +1 -1
  470. package/dist/collection/components/card-accordion/card-accordion.css +6 -0
  471. package/dist/collection/components/card-accordion/card-accordion.js +1 -1
  472. package/dist/collection/components/card-content/card-content.css +7 -2
  473. package/dist/collection/components/card-content/card-content.js +1 -1
  474. package/dist/collection/components/card-list/card-list.css +6 -0
  475. package/dist/collection/components/card-list/card-list.js +4 -4
  476. package/dist/collection/components/card-title/card-title.js +1 -1
  477. package/dist/collection/components/category-filter/category-filter.css +132 -16
  478. package/dist/collection/components/category-filter/category-filter.js +7 -4
  479. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  480. package/dist/collection/components/checkbox/checkbox.css +437 -0
  481. package/dist/collection/components/checkbox/checkbox.js +323 -0
  482. package/dist/collection/components/checkbox/checkbox.js.map +1 -0
  483. package/dist/collection/components/checkbox/tests/checkbox.ct.js +52 -0
  484. package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +1 -0
  485. package/dist/collection/components/checkbox-group/checkbox-group.css +35 -0
  486. package/dist/collection/components/checkbox-group/checkbox-group.js +173 -0
  487. package/dist/collection/components/checkbox-group/checkbox-group.js.map +1 -0
  488. package/dist/collection/components/chip/chip.css +38 -8
  489. package/dist/collection/components/chip/chip.js +4 -4
  490. package/dist/collection/components/chip/test/chip.ct.js +32 -0
  491. package/dist/collection/components/chip/test/chip.ct.js.map +1 -0
  492. package/dist/collection/components/col/col.css +7 -2
  493. package/dist/collection/components/col/col.js +4 -4
  494. package/dist/collection/components/content/content.css +6 -0
  495. package/dist/collection/components/content/content.js +3 -3
  496. package/dist/collection/components/content-header/content-header.js +1 -1
  497. package/dist/collection/components/css-grid/css-grid-item.js +1 -1
  498. package/dist/collection/components/css-grid/css-grid.js +1 -1
  499. package/dist/collection/components/custom-field/custom-field.css +11 -0
  500. package/dist/collection/components/custom-field/custom-field.js +216 -0
  501. package/dist/collection/components/custom-field/custom-field.js.map +1 -0
  502. package/dist/collection/components/custom-field/tests/custom-field.ct.js +68 -0
  503. package/dist/collection/components/custom-field/tests/custom-field.ct.js.map +1 -0
  504. package/dist/collection/components/date-dropdown/date-dropdown.css +6 -0
  505. package/dist/collection/components/date-dropdown/date-dropdown.js +6 -6
  506. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  507. package/dist/collection/components/date-field/date-field.css +938 -0
  508. package/dist/collection/components/date-field/date-field.js +696 -0
  509. package/dist/collection/components/date-field/date-field.js.map +1 -0
  510. package/dist/collection/components/date-field/tests/date-field.ct.js +114 -0
  511. package/dist/collection/components/date-field/tests/date-field.ct.js.map +1 -0
  512. package/dist/collection/components/date-picker/date-picker.css +6 -0
  513. package/dist/collection/components/date-picker/date-picker.js +7 -7
  514. package/dist/collection/components/date-time-card/date-time-card.css +6 -0
  515. package/dist/collection/components/date-time-card/date-time-card.js +7 -8
  516. package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
  517. package/dist/collection/components/datetime-picker/datetime-picker.css +6 -0
  518. package/dist/collection/components/datetime-picker/datetime-picker.js +3 -3
  519. package/dist/collection/components/divider/divider.js +1 -1
  520. package/dist/collection/components/drawer/drawer.css +6 -0
  521. package/dist/collection/components/drawer/drawer.js +2 -2
  522. package/dist/collection/components/dropdown/dropdown-controller.js +4 -0
  523. package/dist/collection/components/dropdown/dropdown-controller.js.map +1 -1
  524. package/dist/collection/components/dropdown/dropdown.css +6 -0
  525. package/dist/collection/components/dropdown/dropdown.js +11 -8
  526. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  527. package/dist/collection/components/dropdown/test/dropdown.ct.js +18 -0
  528. package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
  529. package/dist/collection/components/dropdown-button/dropdown-button.css +6 -0
  530. package/dist/collection/components/dropdown-button/dropdown-button.ct.js +23 -0
  531. package/dist/collection/components/dropdown-button/dropdown-button.ct.js.map +1 -0
  532. package/dist/collection/components/dropdown-button/dropdown-button.js +3 -3
  533. package/dist/collection/components/dropdown-header/dropdown-header.css +6 -0
  534. package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
  535. package/dist/collection/components/dropdown-item/dropdown-item.css +6 -0
  536. package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
  537. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  538. package/dist/collection/components/empty-state/empty-state.css +6 -0
  539. package/dist/collection/components/empty-state/empty-state.js +2 -2
  540. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  541. package/dist/collection/components/event-list/event-list.css +6 -0
  542. package/dist/collection/components/event-list/event-list.js +2 -2
  543. package/dist/collection/components/event-list-item/event-list-item.css +6 -0
  544. package/dist/collection/components/event-list-item/event-list-item.js +4 -4
  545. package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
  546. package/dist/collection/components/expanding-search/expanding-search.css +6 -0
  547. package/dist/collection/components/expanding-search/expanding-search.js +4 -4
  548. package/dist/collection/components/field-label/field-label.css +14 -0
  549. package/dist/collection/components/field-label/field-label.js +173 -0
  550. package/dist/collection/components/field-label/field-label.js.map +1 -0
  551. package/dist/collection/components/field-label/tests/field-label.ct.js +70 -0
  552. package/dist/collection/components/field-label/tests/field-label.ct.js.map +1 -0
  553. package/dist/collection/components/field-wrapper/field-wrapper.css +71 -0
  554. package/dist/collection/components/field-wrapper/field-wrapper.js +309 -0
  555. package/dist/collection/components/field-wrapper/field-wrapper.js.map +1 -0
  556. package/dist/collection/components/field-wrapper/helper-text-util.js +26 -0
  557. package/dist/collection/components/field-wrapper/helper-text-util.js.map +1 -0
  558. package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js +63 -0
  559. package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js.map +1 -0
  560. package/dist/collection/components/filter-chip/filter-chip.css +6 -0
  561. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  562. package/dist/collection/components/flip-tile/flip-tile.css +6 -0
  563. package/dist/collection/components/flip-tile/flip-tile.js +4 -4
  564. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  565. package/dist/collection/components/grid/layout-grid.js +2 -2
  566. package/dist/collection/components/group/group-context-menu.js +1 -1
  567. package/dist/collection/components/group/group.js +8 -8
  568. package/dist/collection/components/group-item/group-item.css +6 -0
  569. package/dist/collection/components/group-item/group-item.js +2 -2
  570. package/dist/collection/components/helper-text/helper-text.css +34 -0
  571. package/dist/collection/components/helper-text/helper-text.js +179 -0
  572. package/dist/collection/components/helper-text/helper-text.js.map +1 -0
  573. package/dist/collection/components/icon-button/icon-button.css +12 -0
  574. package/dist/collection/components/icon-button/icon-button.js +2 -2
  575. package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +12 -0
  576. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
  577. package/dist/collection/components/input-group/input-group.css +6 -0
  578. package/dist/collection/components/input-group/input-group.js +1 -1
  579. package/dist/collection/components/key-value/key-value.js +2 -2
  580. package/dist/collection/components/key-value/key-value.js.map +1 -1
  581. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  582. package/dist/collection/components/kpi/kpi.css +6 -0
  583. package/dist/collection/components/kpi/kpi.js +3 -3
  584. package/dist/collection/components/layout-form/layout-form.css +15 -0
  585. package/dist/collection/components/layout-form/layout-form.js +126 -0
  586. package/dist/collection/components/layout-form/layout-form.js.map +1 -0
  587. package/dist/collection/components/link-button/link-button.js +3 -3
  588. package/dist/collection/components/map-navigation/map-navigation.css +6 -0
  589. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  590. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +6 -0
  591. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  592. package/dist/collection/components/menu/menu-expand-icon.css +6 -0
  593. package/dist/collection/components/menu/menu-expand-icon.js +1 -1
  594. package/dist/collection/components/menu/menu.css +7 -1
  595. package/dist/collection/components/menu/menu.js +11 -11
  596. package/dist/collection/components/menu/menu.js.map +1 -1
  597. package/dist/collection/components/menu-about/menu-about.js +1 -1
  598. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  599. package/dist/collection/components/menu-about-news/menu-about-news.css +6 -0
  600. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  601. package/dist/collection/components/menu-avatar/menu-avatar.css +6 -0
  602. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  603. package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +6 -0
  604. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  605. package/dist/collection/components/menu-category/menu-category.css +6 -0
  606. package/dist/collection/components/menu-category/menu-category.js +8 -5
  607. package/dist/collection/components/menu-category/menu-category.js.map +1 -1
  608. package/dist/collection/components/menu-item/menu-item.css +0 -3
  609. package/dist/collection/components/menu-item/menu-item.js +3 -3
  610. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  611. package/dist/collection/components/menu-settings/menu-settings.css +6 -0
  612. package/dist/collection/components/menu-settings/menu-settings.js +1 -1
  613. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  614. package/dist/collection/components/message-bar/message-bar.css +6 -0
  615. package/dist/collection/components/message-bar/message-bar.js +1 -1
  616. package/dist/collection/components/modal/modal.js +4 -4
  617. package/dist/collection/components/modal-content/modal-content.css +6 -0
  618. package/dist/collection/components/modal-content/modal-content.js +1 -1
  619. package/dist/collection/components/modal-footer/modal-footer.css +6 -0
  620. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  621. package/dist/collection/components/modal-header/modal-header.css +6 -0
  622. package/dist/collection/components/modal-header/modal-header.js +1 -1
  623. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  624. package/dist/collection/components/pagination/pagination.css +20 -0
  625. package/dist/collection/components/pagination/pagination.js +2 -2
  626. package/dist/collection/components/pane/pane.css +9 -0
  627. package/dist/collection/components/pane/pane.js +12 -12
  628. package/dist/collection/components/pane-layout/pane-layout.css +6 -0
  629. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  630. package/dist/collection/components/pill/pill.css +38 -7
  631. package/dist/collection/components/pill/pill.js +4 -4
  632. package/dist/collection/components/playground/example-modal.js +1 -1
  633. package/dist/collection/components/playground/playground.js +3 -3
  634. package/dist/collection/components/playground/playground.js.map +1 -1
  635. package/dist/collection/components/push-card/push-card.js +2 -2
  636. package/dist/collection/components/radio/radio.css +428 -0
  637. package/dist/collection/components/radio/radio.js +276 -0
  638. package/dist/collection/components/radio/radio.js.map +1 -0
  639. package/dist/collection/components/radio/test/radio.ct.js +36 -0
  640. package/dist/collection/components/radio/test/radio.ct.js.map +1 -0
  641. package/dist/collection/components/radio-group/radio-group.css +35 -0
  642. package/dist/collection/components/radio-group/radio-group.js +296 -0
  643. package/dist/collection/components/radio-group/radio-group.js.map +1 -0
  644. package/dist/collection/components/radio-group/test/radio-group.ct.js +99 -0
  645. package/dist/collection/components/radio-group/test/radio-group.ct.js.map +1 -0
  646. package/dist/collection/components/row/row.js +1 -1
  647. package/dist/collection/components/select/select.css +58 -0
  648. package/dist/collection/components/select/select.js +392 -46
  649. package/dist/collection/components/select/select.js.map +1 -1
  650. package/dist/collection/components/select/test/select.ct.js +130 -44
  651. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  652. package/dist/collection/components/select-item/select-item.js +1 -1
  653. package/dist/collection/components/slider/slider.css +6 -0
  654. package/dist/collection/components/slider/slider.js +7 -7
  655. package/dist/collection/components/spinner/spinner.css +30 -0
  656. package/dist/collection/components/spinner/spinner.js +1 -1
  657. package/dist/collection/components/split-button/split-button.css +6 -0
  658. package/dist/collection/components/split-button/split-button.js +30 -2
  659. package/dist/collection/components/split-button/split-button.js.map +1 -1
  660. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  661. package/dist/collection/components/tab-item/tab-item.css +13 -13
  662. package/dist/collection/components/tab-item/tab-item.js +4 -4
  663. package/dist/collection/components/tabs/tabs.css +6 -0
  664. package/dist/collection/components/tabs/tabs.js +2 -2
  665. package/dist/collection/components/text-field/input.fc.js +38 -0
  666. package/dist/collection/components/text-field/input.fc.js.map +1 -0
  667. package/dist/collection/components/{form-field/form-field.css → text-field/number-field.css} +236 -7
  668. package/dist/collection/components/text-field/number-field.js +586 -0
  669. package/dist/collection/components/text-field/number-field.js.map +1 -0
  670. package/dist/collection/components/text-field/tests/form-ready.ct.js +63 -0
  671. package/dist/collection/components/text-field/tests/form-ready.ct.js.map +1 -0
  672. package/dist/collection/components/text-field/text-field.animation.js +36 -0
  673. package/dist/collection/components/text-field/text-field.animation.js.map +1 -0
  674. package/dist/collection/components/text-field/text-field.css +899 -0
  675. package/dist/collection/components/text-field/text-field.js +594 -0
  676. package/dist/collection/components/text-field/text-field.js.map +1 -0
  677. package/dist/collection/components/text-field/text-field.util.js +93 -0
  678. package/dist/collection/components/text-field/text-field.util.js.map +1 -0
  679. package/dist/collection/components/text-field/textarea-field.css +550 -0
  680. package/dist/collection/components/text-field/textarea-field.js +595 -0
  681. package/dist/collection/components/text-field/textarea-field.js.map +1 -0
  682. package/dist/collection/components/tile/tile.css +6 -0
  683. package/dist/collection/components/tile/tile.js +4 -4
  684. package/dist/collection/components/time-picker/time-picker.css +86 -5
  685. package/dist/collection/components/time-picker/time-picker.js +4 -4
  686. package/dist/collection/components/toast/styles/toast-container.css +6 -0
  687. package/dist/collection/components/toast/toast-container.js +3 -3
  688. package/dist/collection/components/toast/toast.css +6 -0
  689. package/dist/collection/components/toast/toast.js +2 -2
  690. package/dist/collection/components/toggle/test/toggle.ct.js +24 -1
  691. package/dist/collection/components/toggle/test/toggle.ct.js.map +1 -1
  692. package/dist/collection/components/toggle/toggle.css +138 -1
  693. package/dist/collection/components/toggle/toggle.js +157 -2
  694. package/dist/collection/components/toggle/toggle.js.map +1 -1
  695. package/dist/collection/components/toggle-button/toggle-button.css +6 -0
  696. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  697. package/dist/collection/components/tooltip/tooltip.css +2 -2
  698. package/dist/collection/components/tooltip/tooltip.js +6 -6
  699. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  700. package/dist/collection/components/tree/tree.js +1 -1
  701. package/dist/collection/components/tree-item/tree-item.css +6 -0
  702. package/dist/collection/components/tree-item/tree-item.js +4 -4
  703. package/dist/collection/components/typography/typography.css +7 -2
  704. package/dist/collection/components/typography/typography.js +5 -5
  705. package/dist/collection/components/upload/upload.css +6 -0
  706. package/dist/collection/components/upload/upload.js +3 -3
  707. package/dist/collection/components/utils/a11y.js +3 -2
  708. package/dist/collection/components/utils/a11y.js.map +1 -1
  709. package/dist/collection/components/utils/attributes.js +25 -0
  710. package/dist/collection/components/utils/attributes.js.map +1 -0
  711. package/dist/collection/components/utils/field/index.js +9 -0
  712. package/dist/collection/components/utils/field/index.js.map +1 -0
  713. package/dist/collection/components/utils/field/validation.js +108 -0
  714. package/dist/collection/components/utils/field/validation.js.map +1 -0
  715. package/dist/collection/components/utils/make-ref.js +5 -0
  716. package/dist/collection/components/utils/make-ref.js.map +1 -1
  717. package/dist/collection/components/utils/testing/index.js +9 -0
  718. package/dist/collection/components/utils/testing/index.js.map +1 -0
  719. package/dist/collection/components/utils/uuid.js +16 -0
  720. package/dist/collection/components/utils/uuid.js.map +1 -0
  721. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  722. package/dist/collection/components/workflow-step/workflow-step.css +6 -0
  723. package/dist/collection/components/workflow-step/workflow-step.js +4 -4
  724. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  725. package/dist/collection/components/workflow-steps/workflow-steps.css +6 -0
  726. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  727. package/dist/collection/index.js +6 -0
  728. package/dist/collection/index.js.map +1 -1
  729. package/dist/collection/tests/form-fields/form-fields.e2e.js +57 -0
  730. package/dist/collection/tests/form-fields/form-fields.e2e.js.map +1 -0
  731. package/dist/collection/tests/panes/panes.e2e.js +5 -0
  732. package/dist/collection/tests/panes/panes.e2e.js.map +1 -1
  733. package/dist/collection/tests/utils/test/index.js +11 -0
  734. package/dist/collection/tests/utils/test/index.js.map +1 -1
  735. package/dist/esm/{a11y-d5444a76.js → a11y-13dedaef.js} +4 -3
  736. package/dist/esm/a11y-13dedaef.js.map +1 -0
  737. package/dist/esm/app-globals-0cd07cd9.js.map +1 -1
  738. package/dist/esm/{base-button-3ac703a7.js → base-button-ea06697f.js} +2 -2
  739. package/dist/esm/{base-button-3ac703a7.js.map → base-button-ea06697f.js.map} +1 -1
  740. package/dist/esm/{base-icon-button-59eb1fe5.js → base-icon-button-c64fdb50.js} +3 -3
  741. package/dist/esm/{base-icon-button-59eb1fe5.js.map → base-icon-button-c64fdb50.js.map} +1 -1
  742. package/dist/esm/dropdown-controller-d6d8b14a.js +143 -0
  743. package/dist/esm/dropdown-controller-d6d8b14a.js.map +1 -0
  744. package/dist/esm/helper-text-util-3dd33b44.js +38 -0
  745. package/dist/esm/helper-text-util-3dd33b44.js.map +1 -0
  746. package/dist/esm/index-9103b14c.js +2012 -0
  747. package/dist/esm/index-9103b14c.js.map +1 -0
  748. package/dist/esm/index-f51bf247.js +14 -0
  749. package/dist/esm/index-f51bf247.js.map +1 -0
  750. package/dist/esm/index.js +16 -1
  751. package/dist/esm/index.js.map +1 -1
  752. package/dist/esm/ix-action-card.entry.js +2 -2
  753. package/dist/esm/ix-action-card.entry.js.map +1 -1
  754. package/dist/esm/ix-application-header.entry.js +13 -5
  755. package/dist/esm/ix-application-header.entry.js.map +1 -1
  756. package/dist/esm/ix-application-sidebar.entry.js +3 -3
  757. package/dist/esm/ix-application-sidebar.entry.js.map +1 -1
  758. package/dist/esm/ix-application-switch-modal.entry.js +3 -3
  759. package/dist/esm/ix-application-switch-modal.entry.js.map +1 -1
  760. package/dist/esm/ix-application.entry.js +5 -5
  761. package/dist/esm/ix-application.entry.js.map +1 -1
  762. package/dist/esm/ix-avatar_2.entry.js +11 -6
  763. package/dist/esm/ix-avatar_2.entry.js.map +1 -1
  764. package/dist/esm/ix-basic-navigation.entry.js +4 -4
  765. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  766. package/dist/esm/ix-blind.entry.js +3 -3
  767. package/dist/esm/ix-blind.entry.js.map +1 -1
  768. package/dist/esm/ix-breadcrumb-item.entry.js +4 -4
  769. package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
  770. package/dist/esm/ix-breadcrumb.entry.js +5 -5
  771. package/dist/esm/ix-breadcrumb.entry.js.map +1 -1
  772. package/dist/esm/ix-button.entry.js +3 -3
  773. package/dist/esm/ix-button.entry.js.map +1 -1
  774. package/dist/esm/ix-card-accordion_2.entry.js +3 -3
  775. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  776. package/dist/esm/ix-card-list.entry.js +6 -6
  777. package/dist/esm/ix-card-list.entry.js.map +1 -1
  778. package/dist/esm/ix-card_2.entry.js +4 -4
  779. package/dist/esm/ix-card_2.entry.js.map +1 -1
  780. package/dist/esm/ix-category-filter.entry.js +10 -7
  781. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  782. package/dist/esm/ix-checkbox-group.entry.js +52 -0
  783. package/dist/esm/ix-checkbox-group.entry.js.map +1 -0
  784. package/dist/esm/ix-checkbox.entry.js +110 -0
  785. package/dist/esm/ix-checkbox.entry.js.map +1 -0
  786. package/dist/esm/ix-chip.entry.js +6 -6
  787. package/dist/esm/ix-chip.entry.js.map +1 -1
  788. package/dist/esm/ix-col_4.entry.js +11 -11
  789. package/dist/esm/ix-col_4.entry.js.map +1 -1
  790. package/dist/esm/ix-content-header.entry.js +1 -1
  791. package/dist/esm/ix-content.entry.js +5 -5
  792. package/dist/esm/ix-content.entry.js.map +1 -1
  793. package/dist/esm/ix-css-grid-item.entry.js +2 -2
  794. package/dist/esm/ix-css-grid.entry.js +1 -1
  795. package/dist/esm/ix-custom-field.entry.js +61 -0
  796. package/dist/esm/ix-custom-field.entry.js.map +1 -0
  797. package/dist/esm/ix-date-dropdown.entry.js +5 -5
  798. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  799. package/dist/esm/ix-date-field.entry.js +251 -0
  800. package/dist/esm/ix-date-field.entry.js.map +1 -0
  801. package/dist/esm/ix-date-time-card.entry.js +3 -3
  802. package/dist/esm/ix-date-time-card.entry.js.map +1 -1
  803. package/dist/esm/ix-datetime-picker.entry.js +3 -3
  804. package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
  805. package/dist/esm/ix-divider.entry.js +2 -2
  806. package/dist/esm/ix-drawer.entry.js +4 -4
  807. package/dist/esm/ix-drawer.entry.js.map +1 -1
  808. package/dist/esm/ix-dropdown-button.entry.js +4 -4
  809. package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
  810. package/dist/esm/ix-dropdown-header.entry.js +3 -3
  811. package/dist/esm/ix-dropdown-header.entry.js.map +1 -1
  812. package/dist/esm/ix-dropdown-item.entry.js +5 -5
  813. package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
  814. package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
  815. package/dist/esm/ix-dropdown.entry.js +14 -146
  816. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  817. package/dist/esm/ix-empty-state.entry.js +3 -3
  818. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  819. package/dist/esm/ix-event-list-item.entry.js +7 -7
  820. package/dist/esm/ix-event-list-item.entry.js.map +1 -1
  821. package/dist/esm/ix-event-list.entry.js +4 -4
  822. package/dist/esm/ix-event-list.entry.js.map +1 -1
  823. package/dist/esm/ix-expanding-search.entry.js +6 -6
  824. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  825. package/dist/esm/{ix-tooltip.entry.js → ix-field-label_3.entry.js} +150 -11
  826. package/dist/esm/ix-field-label_3.entry.js.map +1 -0
  827. package/dist/esm/ix-filter-chip_2.entry.js +4 -4
  828. package/dist/esm/ix-filter-chip_2.entry.js.map +1 -1
  829. package/dist/esm/ix-flip-tile-content.entry.js +2 -2
  830. package/dist/esm/ix-flip-tile.entry.js +6 -6
  831. package/dist/esm/ix-flip-tile.entry.js.map +1 -1
  832. package/dist/esm/ix-group-context-menu_2.entry.js +5 -5
  833. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  834. package/dist/esm/ix-group.entry.js +9 -9
  835. package/dist/esm/ix-helper-text.entry.js +66 -0
  836. package/dist/esm/ix-helper-text.entry.js.map +1 -0
  837. package/dist/esm/ix-icon-button_2.entry.js +8 -8
  838. package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
  839. package/dist/esm/ix-icon-toggle-button.entry.js +6 -6
  840. package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
  841. package/dist/esm/ix-input-group.entry.js +3 -3
  842. package/dist/esm/ix-input-group.entry.js.map +1 -1
  843. package/dist/esm/ix-key-value-list.entry.js +2 -2
  844. package/dist/esm/ix-key-value.entry.js +2 -2
  845. package/dist/esm/ix-key-value.entry.js.map +1 -1
  846. package/dist/esm/ix-kpi.entry.js +5 -5
  847. package/dist/esm/ix-kpi.entry.js.map +1 -1
  848. package/dist/esm/ix-layout-form.entry.js +90 -0
  849. package/dist/esm/ix-layout-form.entry.js.map +1 -0
  850. package/dist/esm/ix-link-button.entry.js +4 -4
  851. package/dist/esm/ix-map-navigation-overlay.entry.js +4 -4
  852. package/dist/esm/ix-map-navigation-overlay.entry.js.map +1 -1
  853. package/dist/esm/ix-map-navigation.entry.js +4 -4
  854. package/dist/esm/ix-map-navigation.entry.js.map +1 -1
  855. package/dist/esm/ix-menu-about-item.entry.js +2 -2
  856. package/dist/esm/ix-menu-about-news.entry.js +6 -6
  857. package/dist/esm/ix-menu-about-news.entry.js.map +1 -1
  858. package/dist/esm/ix-menu-about.entry.js +3 -3
  859. package/dist/esm/ix-menu-avatar.entry.js +4 -4
  860. package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
  861. package/dist/esm/ix-menu-category.entry.js +10 -7
  862. package/dist/esm/ix-menu-category.entry.js.map +1 -1
  863. package/dist/esm/ix-menu-expand-icon.entry.js +5 -5
  864. package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
  865. package/dist/esm/ix-menu-item.entry.js +6 -6
  866. package/dist/esm/ix-menu-item.entry.js.map +1 -1
  867. package/dist/esm/ix-menu-settings-item.entry.js +2 -2
  868. package/dist/esm/ix-menu-settings.entry.js +2 -2
  869. package/dist/esm/ix-menu.entry.js +13 -13
  870. package/dist/esm/ix-menu.entry.js.map +1 -1
  871. package/dist/esm/ix-message-bar.entry.js +3 -3
  872. package/dist/esm/ix-message-bar.entry.js.map +1 -1
  873. package/dist/esm/ix-modal-content_2.entry.js +5 -5
  874. package/dist/esm/ix-modal-content_2.entry.js.map +1 -1
  875. package/dist/esm/ix-modal-example.entry.js +2 -2
  876. package/dist/esm/ix-modal-footer.entry.js +3 -3
  877. package/dist/esm/ix-modal-footer.entry.js.map +1 -1
  878. package/dist/esm/ix-modal-loading.entry.js +2 -2
  879. package/dist/esm/ix-modal.entry.js +6 -6
  880. package/dist/esm/ix-number-field.entry.js +144 -0
  881. package/dist/esm/ix-number-field.entry.js.map +1 -0
  882. package/dist/esm/ix-pagination.entry.js +6 -6
  883. package/dist/esm/ix-pagination.entry.js.map +1 -1
  884. package/dist/esm/ix-pane-layout.entry.js +3 -3
  885. package/dist/esm/ix-pane-layout.entry.js.map +1 -1
  886. package/dist/esm/ix-pane.entry.js +8 -8
  887. package/dist/esm/ix-pane.entry.js.map +1 -1
  888. package/dist/esm/ix-pill.entry.js +6 -6
  889. package/dist/esm/ix-pill.entry.js.map +1 -1
  890. package/dist/esm/ix-playground-internal.entry.js +2 -2
  891. package/dist/esm/ix-playground-internal.entry.js.map +1 -1
  892. package/dist/esm/ix-push-card.entry.js +2 -2
  893. package/dist/esm/ix-radio-group.entry.js +112 -0
  894. package/dist/esm/ix-radio-group.entry.js.map +1 -0
  895. package/dist/esm/ix-radio.entry.js +92 -0
  896. package/dist/esm/ix-radio.entry.js.map +1 -0
  897. package/dist/esm/ix-select.entry.js +126 -46
  898. package/dist/esm/ix-select.entry.js.map +1 -1
  899. package/dist/esm/ix-slider.entry.js +10 -10
  900. package/dist/esm/ix-slider.entry.js.map +1 -1
  901. package/dist/esm/ix-split-button-item.entry.js +3 -3
  902. package/dist/esm/ix-split-button.entry.js +4 -3
  903. package/dist/esm/ix-split-button.entry.js.map +1 -1
  904. package/dist/esm/ix-tab-item_2.entry.js +8 -8
  905. package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
  906. package/dist/esm/ix-text-field.entry.js +147 -0
  907. package/dist/esm/ix-text-field.entry.js.map +1 -0
  908. package/dist/esm/ix-textarea-field.entry.js +114 -0
  909. package/dist/esm/ix-textarea-field.entry.js.map +1 -0
  910. package/dist/esm/ix-tile.entry.js +6 -6
  911. package/dist/esm/ix-tile.entry.js.map +1 -1
  912. package/dist/esm/ix-time-picker.entry.js +5 -5
  913. package/dist/esm/ix-time-picker.entry.js.map +1 -1
  914. package/dist/esm/ix-toast-container.entry.js +4 -4
  915. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  916. package/dist/esm/ix-toast.entry.js +4 -4
  917. package/dist/esm/ix-toast.entry.js.map +1 -1
  918. package/dist/esm/ix-toggle-button.entry.js +6 -6
  919. package/dist/esm/ix-toggle-button.entry.js.map +1 -1
  920. package/dist/esm/ix-toggle.entry.js +42 -5
  921. package/dist/esm/ix-toggle.entry.js.map +1 -1
  922. package/dist/esm/ix-tree-item.entry.js +6 -6
  923. package/dist/esm/ix-tree-item.entry.js.map +1 -1
  924. package/dist/esm/ix-tree.entry.js +2 -2
  925. package/dist/esm/ix-typography.entry.js +2 -2
  926. package/dist/esm/ix-typography.entry.js.map +1 -1
  927. package/dist/esm/ix-upload.entry.js +5 -5
  928. package/dist/esm/ix-upload.entry.js.map +1 -1
  929. package/dist/esm/ix-validation-tooltip.entry.js +3 -3
  930. package/dist/esm/ix-workflow-step.entry.js +6 -6
  931. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  932. package/dist/esm/ix-workflow-steps.entry.js +3 -3
  933. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  934. package/dist/esm/{listener-b87c1f3d.js → listener-98571ba8.js} +2 -2
  935. package/dist/esm/{listener-b87c1f3d.js.map → listener-98571ba8.js.map} +1 -1
  936. package/dist/esm/loader.js +3 -3
  937. package/dist/esm/{make-ref-c80046bf.js → make-ref-6b3b4e16.js} +6 -1
  938. package/dist/esm/make-ref-6b3b4e16.js.map +1 -0
  939. package/dist/esm/{menu-tabs-fc-c72e41b6.js → menu-tabs-fc-7ec1fb5d.js} +4 -4
  940. package/dist/esm/{menu-tabs-fc-c72e41b6.js.map → menu-tabs-fc-7ec1fb5d.js.map} +1 -1
  941. package/dist/esm/siemens-ix.js +11 -11
  942. package/dist/esm/siemens-ix.js.map +1 -1
  943. package/dist/esm/text-field.util-6a84bffd.js +167 -0
  944. package/dist/esm/text-field.util-6a84bffd.js.map +1 -0
  945. package/dist/esm/validation-9db7dfa3.js +112 -0
  946. package/dist/esm/validation-9db7dfa3.js.map +1 -0
  947. package/dist/siemens-ix/index.esm.js +1 -1
  948. package/dist/siemens-ix/index.esm.js.map +1 -1
  949. package/dist/siemens-ix/p-02ed5606.entry.js +2 -0
  950. package/dist/siemens-ix/{p-4290098e.entry.js.map → p-02ed5606.entry.js.map} +1 -1
  951. package/dist/siemens-ix/p-0681f4d8.entry.js +2 -0
  952. package/dist/siemens-ix/{p-cbbe9dee.entry.js.map → p-0681f4d8.entry.js.map} +1 -1
  953. package/dist/siemens-ix/p-06965e5f.entry.js +2 -0
  954. package/dist/siemens-ix/{p-aa58d9d7.entry.js.map → p-06965e5f.entry.js.map} +1 -1
  955. package/dist/siemens-ix/p-08215ad3.entry.js +2 -0
  956. package/dist/siemens-ix/p-08215ad3.entry.js.map +1 -0
  957. package/dist/siemens-ix/p-0bed10af.entry.js +2 -0
  958. package/dist/siemens-ix/p-0d907964.entry.js +2 -0
  959. package/dist/siemens-ix/p-0dfc3b80.entry.js +2 -0
  960. package/dist/siemens-ix/p-104097fb.entry.js +2 -0
  961. package/dist/siemens-ix/{p-33538474.entry.js.map → p-104097fb.entry.js.map} +1 -1
  962. package/dist/siemens-ix/p-15a5bc5a.entry.js +2 -0
  963. package/dist/siemens-ix/p-15a5bc5a.entry.js.map +1 -0
  964. package/dist/siemens-ix/p-18d15442.entry.js +2 -0
  965. package/dist/siemens-ix/{p-add5b76c.entry.js.map → p-18d15442.entry.js.map} +1 -1
  966. package/dist/siemens-ix/p-1df98c59.entry.js +2 -0
  967. package/dist/siemens-ix/{p-8d156396.entry.js.map → p-1df98c59.entry.js.map} +1 -1
  968. package/dist/siemens-ix/p-1ec8d2b9.entry.js +2 -0
  969. package/dist/siemens-ix/{p-d08cbeaf.entry.js.map → p-1ec8d2b9.entry.js.map} +1 -1
  970. package/dist/siemens-ix/p-1f771917.entry.js +2 -0
  971. package/dist/siemens-ix/{p-c1bd5d78.entry.js.map → p-1f771917.entry.js.map} +1 -1
  972. package/dist/siemens-ix/{p-ced10144.js → p-224ebf90.js} +2 -2
  973. package/dist/siemens-ix/p-235c14ca.js.map +1 -1
  974. package/dist/siemens-ix/p-2442ad01.entry.js +2 -0
  975. package/dist/siemens-ix/{p-902d1046.entry.js.map → p-2442ad01.entry.js.map} +1 -1
  976. package/dist/siemens-ix/p-277980fa.entry.js +2 -0
  977. package/dist/siemens-ix/p-277980fa.entry.js.map +1 -0
  978. package/dist/siemens-ix/{p-418959d3.entry.js → p-293dd6d1.entry.js} +2 -2
  979. package/dist/siemens-ix/p-35690183.entry.js +2 -0
  980. package/dist/siemens-ix/{p-96d2d21f.entry.js.map → p-35690183.entry.js.map} +1 -1
  981. package/dist/siemens-ix/{p-114bb49b.entry.js → p-35fa9e1a.entry.js} +2 -2
  982. package/dist/siemens-ix/p-36c0f378.js +2 -0
  983. package/dist/siemens-ix/p-36c0f378.js.map +1 -0
  984. package/dist/siemens-ix/p-3730ac72.entry.js +2 -0
  985. package/dist/siemens-ix/{p-b475f567.entry.js.map → p-3730ac72.entry.js.map} +1 -1
  986. package/dist/siemens-ix/p-3782e028.js +2 -0
  987. package/dist/siemens-ix/p-3782e028.js.map +1 -0
  988. package/dist/siemens-ix/{p-e07d2623.js → p-37ca7ed4.js} +2 -2
  989. package/dist/siemens-ix/{p-e07d2623.js.map → p-37ca7ed4.js.map} +1 -1
  990. package/dist/siemens-ix/p-399bb0ce.entry.js +2 -0
  991. package/dist/siemens-ix/p-3a5f7b61.entry.js +2 -0
  992. package/dist/siemens-ix/{p-0a1bfcfc.entry.js.map → p-3a5f7b61.entry.js.map} +1 -1
  993. package/dist/siemens-ix/p-3b38f812.entry.js +2 -0
  994. package/dist/siemens-ix/{p-bdc57334.entry.js.map → p-3b38f812.entry.js.map} +1 -1
  995. package/dist/siemens-ix/p-3de71a19.entry.js +2 -0
  996. package/dist/siemens-ix/{p-75548c73.entry.js.map → p-3de71a19.entry.js.map} +1 -1
  997. package/dist/siemens-ix/p-4017727a.entry.js +2 -0
  998. package/dist/siemens-ix/p-4017727a.entry.js.map +1 -0
  999. package/dist/siemens-ix/p-42c66a44.js +2 -0
  1000. package/dist/siemens-ix/p-42c66a44.js.map +1 -0
  1001. package/dist/siemens-ix/p-4a335b55.entry.js +2 -0
  1002. package/dist/siemens-ix/p-4a335b55.entry.js.map +1 -0
  1003. package/dist/siemens-ix/p-4b69ab0d.entry.js +2 -0
  1004. package/dist/siemens-ix/{p-a617e605.entry.js.map → p-4b69ab0d.entry.js.map} +1 -1
  1005. package/dist/siemens-ix/p-504f43d4.entry.js +2 -0
  1006. package/dist/siemens-ix/{p-23dd21b3.entry.js.map → p-504f43d4.entry.js.map} +1 -1
  1007. package/dist/siemens-ix/p-50cae62d.entry.js +2 -0
  1008. package/dist/siemens-ix/p-53e62b51.entry.js +2 -0
  1009. package/dist/siemens-ix/p-56d01130.entry.js +2 -0
  1010. package/dist/siemens-ix/p-56d01130.entry.js.map +1 -0
  1011. package/dist/siemens-ix/p-576b09c9.entry.js +2 -0
  1012. package/dist/siemens-ix/{p-9dabe2f7.entry.js.map → p-576b09c9.entry.js.map} +1 -1
  1013. package/dist/siemens-ix/p-5924a783.entry.js +2 -0
  1014. package/dist/siemens-ix/{p-2c6a35db.entry.js.map → p-5924a783.entry.js.map} +1 -1
  1015. package/dist/siemens-ix/p-5a6d8b69.entry.js +2 -0
  1016. package/dist/siemens-ix/p-5a6d8b69.entry.js.map +1 -0
  1017. package/dist/siemens-ix/p-5bf40a9f.entry.js +2 -0
  1018. package/dist/siemens-ix/p-5eb935a3.entry.js +2 -0
  1019. package/dist/siemens-ix/p-5eb935a3.entry.js.map +1 -0
  1020. package/dist/siemens-ix/p-61265df9.entry.js +2 -0
  1021. package/dist/siemens-ix/{p-784fe260.entry.js.map → p-61265df9.entry.js.map} +1 -1
  1022. package/dist/siemens-ix/{p-01a8adf1.entry.js → p-628c8612.entry.js} +2 -2
  1023. package/dist/siemens-ix/p-628f031a.entry.js +2 -0
  1024. package/dist/siemens-ix/{p-021e1084.entry.js.map → p-628f031a.entry.js.map} +1 -1
  1025. package/dist/siemens-ix/p-6bd0ba14.entry.js +2 -0
  1026. package/dist/siemens-ix/p-6bd0ba14.entry.js.map +1 -0
  1027. package/dist/siemens-ix/p-6c412b52.entry.js +2 -0
  1028. package/dist/siemens-ix/{p-90c55341.entry.js.map → p-6c412b52.entry.js.map} +1 -1
  1029. package/dist/siemens-ix/p-6ca97a73.entry.js +2 -0
  1030. package/dist/siemens-ix/{p-3b8e4fe5.entry.js.map → p-6ca97a73.entry.js.map} +1 -1
  1031. package/dist/siemens-ix/p-6f83793b.entry.js +2 -0
  1032. package/dist/siemens-ix/p-6f83793b.entry.js.map +1 -0
  1033. package/dist/siemens-ix/p-70a7bd22.entry.js +2 -0
  1034. package/dist/siemens-ix/p-70a7bd22.entry.js.map +1 -0
  1035. package/dist/siemens-ix/p-724b98ce.entry.js +2 -0
  1036. package/dist/siemens-ix/{p-b24beb48.entry.js.map → p-724b98ce.entry.js.map} +1 -1
  1037. package/dist/siemens-ix/p-73e0eb40.entry.js +2 -0
  1038. package/dist/siemens-ix/p-73e0eb40.entry.js.map +1 -0
  1039. package/dist/siemens-ix/p-75c61fbf.entry.js +2 -0
  1040. package/dist/siemens-ix/{p-e0cab820.entry.js.map → p-75c61fbf.entry.js.map} +1 -1
  1041. package/dist/siemens-ix/p-781a1922.entry.js +2 -0
  1042. package/dist/siemens-ix/{p-b944d015.entry.js.map → p-781a1922.entry.js.map} +1 -1
  1043. package/dist/siemens-ix/p-787293f4.entry.js +2 -0
  1044. package/dist/siemens-ix/{p-e678bfc5.entry.js.map → p-787293f4.entry.js.map} +1 -1
  1045. package/dist/siemens-ix/p-79c848ec.entry.js +2 -0
  1046. package/dist/siemens-ix/{p-ecd3b070.entry.js.map → p-79c848ec.entry.js.map} +1 -1
  1047. package/dist/siemens-ix/p-7f4b78e5.js +2 -0
  1048. package/dist/siemens-ix/p-7f4b78e5.js.map +1 -0
  1049. package/dist/siemens-ix/{p-08a5d45b.entry.js → p-80051a81.entry.js} +2 -2
  1050. package/dist/siemens-ix/{p-08a5d45b.entry.js.map → p-80051a81.entry.js.map} +1 -1
  1051. package/dist/siemens-ix/{p-a6fbea5b.entry.js → p-815dd9a1.entry.js} +2 -2
  1052. package/dist/siemens-ix/p-83b8b502.entry.js +2 -0
  1053. package/dist/siemens-ix/{p-3b8ff673.entry.js.map → p-83b8b502.entry.js.map} +1 -1
  1054. package/dist/siemens-ix/p-846cf6d2.entry.js +2 -0
  1055. package/dist/siemens-ix/p-846cf6d2.entry.js.map +1 -0
  1056. package/dist/siemens-ix/{p-330343e7.entry.js → p-86b46723.entry.js} +2 -2
  1057. package/dist/siemens-ix/{p-330343e7.entry.js.map → p-86b46723.entry.js.map} +1 -1
  1058. package/dist/siemens-ix/{p-2637665e.entry.js → p-87d7aaf9.entry.js} +2 -2
  1059. package/dist/siemens-ix/{p-4cf6e817.entry.js → p-8a9fc2f0.entry.js} +2 -2
  1060. package/dist/siemens-ix/{p-4cf6e817.entry.js.map → p-8a9fc2f0.entry.js.map} +1 -1
  1061. package/dist/siemens-ix/{p-306c5ab2.entry.js → p-8d737a35.entry.js} +2 -2
  1062. package/dist/siemens-ix/{p-306c5ab2.entry.js.map → p-8d737a35.entry.js.map} +1 -1
  1063. package/dist/siemens-ix/{p-f2a81e70.entry.js → p-8dcf30ce.entry.js} +2 -2
  1064. package/dist/siemens-ix/{p-30e8a26a.entry.js → p-8e10d2f2.entry.js} +2 -2
  1065. package/dist/siemens-ix/p-9010831e.entry.js +2 -0
  1066. package/dist/siemens-ix/p-9010831e.entry.js.map +1 -0
  1067. package/dist/siemens-ix/p-921c59c4.entry.js +2 -0
  1068. package/dist/siemens-ix/{p-18a1c4dd.entry.js.map → p-921c59c4.entry.js.map} +1 -1
  1069. package/dist/siemens-ix/p-934ae9a0.entry.js +2 -0
  1070. package/dist/siemens-ix/{p-5f08da2c.entry.js.map → p-934ae9a0.entry.js.map} +1 -1
  1071. package/dist/siemens-ix/{p-6e1fdc40.entry.js → p-9569e1a2.entry.js} +2 -2
  1072. package/dist/siemens-ix/{p-6e1fdc40.entry.js.map → p-9569e1a2.entry.js.map} +1 -1
  1073. package/dist/siemens-ix/p-97f475db.entry.js +2 -0
  1074. package/dist/siemens-ix/{p-f23e0121.entry.js.map → p-97f475db.entry.js.map} +1 -1
  1075. package/dist/siemens-ix/p-9840f086.entry.js +2 -0
  1076. package/dist/siemens-ix/{p-84b3b311.entry.js.map → p-9840f086.entry.js.map} +1 -1
  1077. package/dist/siemens-ix/p-9cc0d11b.entry.js +2 -0
  1078. package/dist/siemens-ix/{p-ed2ec72f.entry.js.map → p-9cc0d11b.entry.js.map} +1 -1
  1079. package/dist/siemens-ix/{p-0b7741b7.entry.js → p-9ec92185.entry.js} +2 -2
  1080. package/dist/siemens-ix/p-9ec92185.entry.js.map +1 -0
  1081. package/dist/siemens-ix/p-a9b0c087.entry.js +2 -0
  1082. package/dist/siemens-ix/p-aae05303.entry.js +2 -0
  1083. package/dist/siemens-ix/{p-ee20d08c.entry.js.map → p-aae05303.entry.js.map} +1 -1
  1084. package/dist/siemens-ix/p-ac05950c.entry.js +2 -0
  1085. package/dist/siemens-ix/{p-ec741c06.entry.js.map → p-ac05950c.entry.js.map} +1 -1
  1086. package/dist/siemens-ix/p-ac6c6d3f.entry.js +2 -0
  1087. package/dist/siemens-ix/p-ac6c6d3f.entry.js.map +1 -0
  1088. package/dist/siemens-ix/p-aca94a5e.entry.js +2 -0
  1089. package/dist/siemens-ix/p-aca94a5e.entry.js.map +1 -0
  1090. package/dist/siemens-ix/p-ae7fdfa6.entry.js +2 -0
  1091. package/dist/siemens-ix/{p-cf546284.entry.js.map → p-ae7fdfa6.entry.js.map} +1 -1
  1092. package/dist/siemens-ix/p-b0fe18f7.entry.js +2 -0
  1093. package/dist/siemens-ix/p-b0fe18f7.entry.js.map +1 -0
  1094. package/dist/siemens-ix/p-b5c4fd55.entry.js +2 -0
  1095. package/dist/siemens-ix/{p-ca65a043.entry.js.map → p-b5c4fd55.entry.js.map} +1 -1
  1096. package/dist/siemens-ix/p-b6c0dfb5.entry.js +2 -0
  1097. package/dist/siemens-ix/{p-04a362da.entry.js.map → p-b6c0dfb5.entry.js.map} +1 -1
  1098. package/dist/siemens-ix/p-b789e0e7.entry.js +2 -0
  1099. package/dist/siemens-ix/{p-6eb4eefc.entry.js.map → p-b789e0e7.entry.js.map} +1 -1
  1100. package/dist/siemens-ix/p-b8ed7953.entry.js +2 -0
  1101. package/dist/siemens-ix/{p-b35a627a.entry.js.map → p-b8ed7953.entry.js.map} +1 -1
  1102. package/dist/siemens-ix/{p-2c14670e.entry.js → p-b973db5e.entry.js} +2 -2
  1103. package/dist/siemens-ix/p-b973db5e.entry.js.map +1 -0
  1104. package/dist/siemens-ix/p-b9b59a08.entry.js +2 -0
  1105. package/dist/siemens-ix/p-b9b59a08.entry.js.map +1 -0
  1106. package/dist/siemens-ix/p-bc1e92ac.js +2 -0
  1107. package/dist/siemens-ix/p-bd24bbde.entry.js +2 -0
  1108. package/dist/siemens-ix/{p-2c14670e.entry.js.map → p-bd24bbde.entry.js.map} +1 -1
  1109. package/dist/siemens-ix/p-c3db120e.entry.js +2 -0
  1110. package/dist/siemens-ix/p-c66e4a5f.entry.js +2 -0
  1111. package/dist/siemens-ix/p-c6dcff7e.entry.js +2 -0
  1112. package/dist/siemens-ix/{p-e2464e13.entry.js.map → p-c6dcff7e.entry.js.map} +1 -1
  1113. package/dist/siemens-ix/p-c71d1690.entry.js +2 -0
  1114. package/dist/siemens-ix/p-c71d1690.entry.js.map +1 -0
  1115. package/dist/siemens-ix/p-cce7a3d5.js +2 -0
  1116. package/dist/siemens-ix/p-cce7a3d5.js.map +1 -0
  1117. package/dist/siemens-ix/p-ce8a0611.entry.js +2 -0
  1118. package/dist/siemens-ix/p-ce8a0611.entry.js.map +1 -0
  1119. package/dist/siemens-ix/p-cf65d3b6.entry.js +2 -0
  1120. package/dist/siemens-ix/p-cf65d3b6.entry.js.map +1 -0
  1121. package/dist/siemens-ix/p-cfcd2bd3.entry.js +2 -0
  1122. package/dist/siemens-ix/{p-4d57ca67.entry.js.map → p-cfcd2bd3.entry.js.map} +1 -1
  1123. package/dist/siemens-ix/p-d7131f75.entry.js +2 -0
  1124. package/dist/siemens-ix/{p-a147b152.entry.js.map → p-d7131f75.entry.js.map} +1 -1
  1125. package/dist/siemens-ix/p-da8517ed.js +2 -0
  1126. package/dist/siemens-ix/p-da8517ed.js.map +1 -0
  1127. package/dist/siemens-ix/p-dde0af66.entry.js +2 -0
  1128. package/dist/siemens-ix/{p-abb29515.entry.js.map → p-dde0af66.entry.js.map} +1 -1
  1129. package/dist/siemens-ix/p-dead9c8e.js +2 -0
  1130. package/dist/siemens-ix/p-dead9c8e.js.map +1 -0
  1131. package/dist/siemens-ix/p-e1bd7b4f.entry.js +2 -0
  1132. package/dist/siemens-ix/p-e1bd7b4f.entry.js.map +1 -0
  1133. package/dist/siemens-ix/{p-fb55854a.entry.js → p-e5218382.entry.js} +2 -2
  1134. package/dist/siemens-ix/p-e5218382.entry.js.map +1 -0
  1135. package/dist/siemens-ix/{p-9dc3e182.entry.js → p-e72dfb3c.entry.js} +2 -2
  1136. package/dist/siemens-ix/p-ec0806c3.entry.js +2 -0
  1137. package/dist/siemens-ix/{p-a3ad98bc.entry.js.map → p-ec0806c3.entry.js.map} +1 -1
  1138. package/dist/siemens-ix/p-ed991838.js +2 -0
  1139. package/dist/siemens-ix/p-edd99767.entry.js +2 -0
  1140. package/dist/siemens-ix/p-edd99767.entry.js.map +1 -0
  1141. package/dist/siemens-ix/p-ef6171a2.entry.js +2 -0
  1142. package/dist/siemens-ix/p-f0bbd496.entry.js +2 -0
  1143. package/dist/siemens-ix/{p-e4e24f59.entry.js.map → p-f0bbd496.entry.js.map} +1 -1
  1144. package/dist/siemens-ix/p-f22e4bb2.entry.js +2 -0
  1145. package/dist/siemens-ix/p-f22e4bb2.entry.js.map +1 -0
  1146. package/dist/siemens-ix/p-f37ac17d.entry.js +2 -0
  1147. package/dist/siemens-ix/{p-18a27007.entry.js.map → p-f37ac17d.entry.js.map} +1 -1
  1148. package/dist/siemens-ix/p-f3c3366d.entry.js +2 -0
  1149. package/dist/siemens-ix/p-f86a894a.js +3 -0
  1150. package/dist/siemens-ix/p-f86a894a.js.map +1 -0
  1151. package/dist/siemens-ix/p-fad5daa1.entry.js +2 -0
  1152. package/dist/siemens-ix/{p-bd576793.entry.js.map → p-fad5daa1.entry.js.map} +1 -1
  1153. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  1154. package/dist/siemens-ix/siemens-ix.css +760 -157
  1155. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  1156. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  1157. package/dist/siemens-ix/theme/classic-dark.css +1 -1
  1158. package/dist/siemens-ix/theme/classic-light.css +1 -1
  1159. package/dist/types/components/application-header/application-header.d.ts +2 -0
  1160. package/dist/types/components/avatar/avatar.d.ts +2 -0
  1161. package/dist/types/components/checkbox/checkbox.d.ts +61 -0
  1162. package/dist/types/components/checkbox/tests/checkbox.ct.d.ts +1 -0
  1163. package/dist/types/components/checkbox-group/checkbox-group.d.ts +40 -0
  1164. package/dist/types/components/chip/test/chip.ct.d.ts +1 -0
  1165. package/dist/types/components/custom-field/custom-field.d.ts +46 -0
  1166. package/dist/types/components/custom-field/tests/custom-field.ct.d.ts +1 -0
  1167. package/dist/types/components/date-field/date-field.d.ts +127 -0
  1168. package/dist/types/components/date-field/tests/date-field.ct.d.ts +1 -0
  1169. package/dist/types/components/date-time-card/date-time-card.d.ts +1 -1
  1170. package/dist/types/components/dropdown/dropdown-controller.d.ts +1 -0
  1171. package/dist/types/components/dropdown-button/dropdown-button.ct.d.ts +1 -0
  1172. package/dist/types/components/field-label/field-label.d.ts +27 -0
  1173. package/dist/types/components/field-label/tests/field-label.ct.d.ts +1 -0
  1174. package/dist/types/components/field-wrapper/field-wrapper.d.ts +64 -0
  1175. package/dist/types/components/field-wrapper/helper-text-util.d.ts +11 -0
  1176. package/dist/types/components/field-wrapper/tests/field-wrapper.ct.d.ts +1 -0
  1177. package/dist/types/components/helper-text/helper-text.d.ts +37 -0
  1178. package/dist/types/components/layout-form/layout-form.d.ts +22 -0
  1179. package/dist/types/components/radio/radio.d.ts +53 -0
  1180. package/dist/types/components/radio/test/radio.ct.d.ts +1 -0
  1181. package/dist/types/components/radio-group/radio-group.d.ts +60 -0
  1182. package/dist/types/components/radio-group/test/radio-group.ct.d.ts +1 -0
  1183. package/dist/types/components/select/select.d.ts +84 -4
  1184. package/dist/types/components/split-button/split-button.d.ts +6 -0
  1185. package/dist/types/components/text-field/input.fc.d.ts +50 -0
  1186. package/dist/types/components/text-field/number-field.d.ts +117 -0
  1187. package/dist/types/components/text-field/tests/form-ready.ct.d.ts +1 -0
  1188. package/dist/types/components/text-field/text-field.animation.d.ts +1 -0
  1189. package/dist/types/components/text-field/text-field.d.ts +119 -0
  1190. package/dist/types/components/text-field/text-field.util.d.ts +13 -0
  1191. package/dist/types/components/text-field/textarea-field.d.ts +127 -0
  1192. package/dist/types/components/toggle/toggle.d.ts +29 -1
  1193. package/dist/types/components/utils/a11y.d.ts +5 -5
  1194. package/dist/types/components/utils/attributes.d.ts +2 -0
  1195. package/dist/types/components/utils/field/index.d.ts +60 -0
  1196. package/dist/types/components/utils/field/validation.d.ts +15 -0
  1197. package/dist/types/components/utils/testing/index.d.ts +0 -0
  1198. package/dist/types/components/utils/uuid.d.ts +1 -0
  1199. package/dist/types/components/workflow-step/workflow-step.d.ts +1 -1
  1200. package/dist/types/components.d.ts +1741 -47
  1201. package/dist/types/index.d.ts +1 -0
  1202. package/dist/types/tests/utils/test/index.d.ts +3 -0
  1203. package/hydrate/index.d.ts +218 -0
  1204. package/hydrate/index.js +43475 -0
  1205. package/hydrate/package.json +6 -0
  1206. package/package.json +6 -5
  1207. package/scss/components/form/_input.scss +56 -5
  1208. package/scss/mixins/_field.scss +18 -0
  1209. package/scss/mixins/_scrollbar.scss +7 -0
  1210. package/scss/mixins/validation/_form-component.scss +63 -0
  1211. package/scss/theme/classic-dark/_border.scss +1 -1
  1212. package/scss/theme/classic-dark/_borderRadius.scss +1 -1
  1213. package/scss/theme/classic-dark/_borderWidth.scss +1 -1
  1214. package/scss/theme/classic-dark/_boxShadow.scss +1 -1
  1215. package/scss/theme/classic-dark/_color.scss +320 -62
  1216. package/scss/theme/classic-dark/_fontFamilies.scss +1 -1
  1217. package/scss/theme/classic-dark/_fontSizes.scss +1 -1
  1218. package/scss/theme/classic-dark/_fontWeights.scss +1 -1
  1219. package/scss/theme/classic-dark/_index.scss +1 -1
  1220. package/scss/theme/classic-dark/_letterSpacing.scss +1 -1
  1221. package/scss/theme/classic-dark/_lineHeights.scss +1 -1
  1222. package/scss/theme/classic-dark/_other.scss +1 -1
  1223. package/scss/theme/classic-dark/_sizing.scss +1 -1
  1224. package/scss/theme/classic-dark/_spacing.scss +1 -1
  1225. package/scss/theme/classic-dark/_typography.scss +1 -1
  1226. package/scss/theme/classic-light/_border.scss +1 -1
  1227. package/scss/theme/classic-light/_borderRadius.scss +1 -1
  1228. package/scss/theme/classic-light/_borderWidth.scss +1 -1
  1229. package/scss/theme/classic-light/_boxShadow.scss +1 -1
  1230. package/scss/theme/classic-light/_color.scss +320 -62
  1231. package/scss/theme/classic-light/_fontFamilies.scss +1 -1
  1232. package/scss/theme/classic-light/_fontSizes.scss +1 -1
  1233. package/scss/theme/classic-light/_fontWeights.scss +1 -1
  1234. package/scss/theme/classic-light/_index.scss +1 -1
  1235. package/scss/theme/classic-light/_letterSpacing.scss +1 -1
  1236. package/scss/theme/classic-light/_lineHeights.scss +1 -1
  1237. package/scss/theme/classic-light/_other.scss +1 -1
  1238. package/scss/theme/classic-light/_sizing.scss +1 -1
  1239. package/scss/theme/classic-light/_spacing.scss +1 -1
  1240. package/scss/theme/classic-light/_typography.scss +1 -1
  1241. package/components/ix-form-field.js +0 -44
  1242. package/components/ix-form-field.js.map +0 -1
  1243. package/dist/cjs/a11y-d3ce56d1.js.map +0 -1
  1244. package/dist/cjs/index-c6f0ac73.js +0 -2688
  1245. package/dist/cjs/index-c6f0ac73.js.map +0 -1
  1246. package/dist/cjs/ix-form-field.cjs.entry.js +0 -28
  1247. package/dist/cjs/ix-form-field.cjs.entry.js.map +0 -1
  1248. package/dist/cjs/ix-tooltip.cjs.entry.js.map +0 -1
  1249. package/dist/cjs/make-ref-c25629b7.js.map +0 -1
  1250. package/dist/collection/components/form-field/form-field.js +0 -56
  1251. package/dist/collection/components/form-field/form-field.js.map +0 -1
  1252. package/dist/esm/a11y-d5444a76.js.map +0 -1
  1253. package/dist/esm/index-f18c5ad1.js +0 -2656
  1254. package/dist/esm/index-f18c5ad1.js.map +0 -1
  1255. package/dist/esm/ix-form-field.entry.js +0 -24
  1256. package/dist/esm/ix-form-field.entry.js.map +0 -1
  1257. package/dist/esm/ix-tooltip.entry.js.map +0 -1
  1258. package/dist/esm/make-ref-c80046bf.js.map +0 -1
  1259. package/dist/siemens-ix/p-01b8b98c.entry.js +0 -2
  1260. package/dist/siemens-ix/p-01b8b98c.entry.js.map +0 -1
  1261. package/dist/siemens-ix/p-021e1084.entry.js +0 -2
  1262. package/dist/siemens-ix/p-04a362da.entry.js +0 -2
  1263. package/dist/siemens-ix/p-0a1bfcfc.entry.js +0 -2
  1264. package/dist/siemens-ix/p-0b7741b7.entry.js.map +0 -1
  1265. package/dist/siemens-ix/p-0fee2dd5.entry.js +0 -2
  1266. package/dist/siemens-ix/p-0fee2dd5.entry.js.map +0 -1
  1267. package/dist/siemens-ix/p-10f86b92.entry.js +0 -2
  1268. package/dist/siemens-ix/p-10f86b92.entry.js.map +0 -1
  1269. package/dist/siemens-ix/p-18a1c4dd.entry.js +0 -2
  1270. package/dist/siemens-ix/p-18a27007.entry.js +0 -2
  1271. package/dist/siemens-ix/p-1cc910b7.entry.js +0 -2
  1272. package/dist/siemens-ix/p-213f16d5.entry.js +0 -2
  1273. package/dist/siemens-ix/p-213f16d5.entry.js.map +0 -1
  1274. package/dist/siemens-ix/p-23dd21b3.entry.js +0 -2
  1275. package/dist/siemens-ix/p-2459f98f.entry.js +0 -2
  1276. package/dist/siemens-ix/p-2459f98f.entry.js.map +0 -1
  1277. package/dist/siemens-ix/p-26e9d40e.js +0 -3
  1278. package/dist/siemens-ix/p-26e9d40e.js.map +0 -1
  1279. package/dist/siemens-ix/p-2c6a35db.entry.js +0 -2
  1280. package/dist/siemens-ix/p-2f4e6ac1.entry.js +0 -2
  1281. package/dist/siemens-ix/p-2f4e6ac1.entry.js.map +0 -1
  1282. package/dist/siemens-ix/p-33538474.entry.js +0 -2
  1283. package/dist/siemens-ix/p-3b8e4fe5.entry.js +0 -2
  1284. package/dist/siemens-ix/p-3b8ff673.entry.js +0 -2
  1285. package/dist/siemens-ix/p-4290098e.entry.js +0 -2
  1286. package/dist/siemens-ix/p-43a58a77.entry.js +0 -2
  1287. package/dist/siemens-ix/p-43a58a77.entry.js.map +0 -1
  1288. package/dist/siemens-ix/p-4d57ca67.entry.js +0 -2
  1289. package/dist/siemens-ix/p-4f8ac3bf.js +0 -2
  1290. package/dist/siemens-ix/p-4f8ac3bf.js.map +0 -1
  1291. package/dist/siemens-ix/p-4fd11865.entry.js +0 -2
  1292. package/dist/siemens-ix/p-52bb526e.entry.js +0 -2
  1293. package/dist/siemens-ix/p-56bbdae4.entry.js +0 -2
  1294. package/dist/siemens-ix/p-5d582c48.entry.js +0 -2
  1295. package/dist/siemens-ix/p-5f08da2c.entry.js +0 -2
  1296. package/dist/siemens-ix/p-601cfc6a.entry.js +0 -2
  1297. package/dist/siemens-ix/p-601cfc6a.entry.js.map +0 -1
  1298. package/dist/siemens-ix/p-64c3fa3d.js +0 -2
  1299. package/dist/siemens-ix/p-64c3fa3d.js.map +0 -1
  1300. package/dist/siemens-ix/p-678d821f.entry.js +0 -2
  1301. package/dist/siemens-ix/p-6ea6396e.entry.js +0 -2
  1302. package/dist/siemens-ix/p-6ea6396e.entry.js.map +0 -1
  1303. package/dist/siemens-ix/p-6eb4eefc.entry.js +0 -2
  1304. package/dist/siemens-ix/p-75548c73.entry.js +0 -2
  1305. package/dist/siemens-ix/p-784fe260.entry.js +0 -2
  1306. package/dist/siemens-ix/p-8362e966.js +0 -2
  1307. package/dist/siemens-ix/p-84b3b311.entry.js +0 -2
  1308. package/dist/siemens-ix/p-890d74cd.entry.js +0 -2
  1309. package/dist/siemens-ix/p-8d156396.entry.js +0 -2
  1310. package/dist/siemens-ix/p-902d1046.entry.js +0 -2
  1311. package/dist/siemens-ix/p-90c55341.entry.js +0 -2
  1312. package/dist/siemens-ix/p-96d2d21f.entry.js +0 -2
  1313. package/dist/siemens-ix/p-9dabe2f7.entry.js +0 -2
  1314. package/dist/siemens-ix/p-a147b152.entry.js +0 -2
  1315. package/dist/siemens-ix/p-a35d02ea.entry.js +0 -2
  1316. package/dist/siemens-ix/p-a3ad98bc.entry.js +0 -2
  1317. package/dist/siemens-ix/p-a617e605.entry.js +0 -2
  1318. package/dist/siemens-ix/p-a8838a77.js +0 -2
  1319. package/dist/siemens-ix/p-a9d1ab94.entry.js +0 -2
  1320. package/dist/siemens-ix/p-a9d1ab94.entry.js.map +0 -1
  1321. package/dist/siemens-ix/p-aa58d9d7.entry.js +0 -2
  1322. package/dist/siemens-ix/p-abb29515.entry.js +0 -2
  1323. package/dist/siemens-ix/p-add5b76c.entry.js +0 -2
  1324. package/dist/siemens-ix/p-b24beb48.entry.js +0 -2
  1325. package/dist/siemens-ix/p-b32c2183.entry.js +0 -2
  1326. package/dist/siemens-ix/p-b35a627a.entry.js +0 -2
  1327. package/dist/siemens-ix/p-b475f567.entry.js +0 -2
  1328. package/dist/siemens-ix/p-b7a8f2d5.entry.js +0 -2
  1329. package/dist/siemens-ix/p-b944d015.entry.js +0 -2
  1330. package/dist/siemens-ix/p-bc5d33ce.entry.js +0 -2
  1331. package/dist/siemens-ix/p-bc5d33ce.entry.js.map +0 -1
  1332. package/dist/siemens-ix/p-bd576793.entry.js +0 -2
  1333. package/dist/siemens-ix/p-bdc57334.entry.js +0 -2
  1334. package/dist/siemens-ix/p-c1bd5d78.entry.js +0 -2
  1335. package/dist/siemens-ix/p-c3939d35.entry.js +0 -2
  1336. package/dist/siemens-ix/p-ca65a043.entry.js +0 -2
  1337. package/dist/siemens-ix/p-cbbe9dee.entry.js +0 -2
  1338. package/dist/siemens-ix/p-ccf1bd22.entry.js +0 -2
  1339. package/dist/siemens-ix/p-cf546284.entry.js +0 -2
  1340. package/dist/siemens-ix/p-d08cbeaf.entry.js +0 -2
  1341. package/dist/siemens-ix/p-d3f26126.entry.js +0 -2
  1342. package/dist/siemens-ix/p-d3f26126.entry.js.map +0 -1
  1343. package/dist/siemens-ix/p-d600ea55.entry.js +0 -2
  1344. package/dist/siemens-ix/p-d600ea55.entry.js.map +0 -1
  1345. package/dist/siemens-ix/p-d6a094cf.entry.js +0 -2
  1346. package/dist/siemens-ix/p-d6a094cf.entry.js.map +0 -1
  1347. package/dist/siemens-ix/p-def8b3a4.entry.js +0 -2
  1348. package/dist/siemens-ix/p-def8b3a4.entry.js.map +0 -1
  1349. package/dist/siemens-ix/p-e0cab820.entry.js +0 -2
  1350. package/dist/siemens-ix/p-e2464e13.entry.js +0 -2
  1351. package/dist/siemens-ix/p-e4e24f59.entry.js +0 -2
  1352. package/dist/siemens-ix/p-e678bfc5.entry.js +0 -2
  1353. package/dist/siemens-ix/p-ec741c06.entry.js +0 -2
  1354. package/dist/siemens-ix/p-ecd3b070.entry.js +0 -2
  1355. package/dist/siemens-ix/p-ed2ec72f.entry.js +0 -2
  1356. package/dist/siemens-ix/p-ee20d08c.entry.js +0 -2
  1357. package/dist/siemens-ix/p-f23e0121.entry.js +0 -2
  1358. package/dist/siemens-ix/p-fb55854a.entry.js.map +0 -1
  1359. package/dist/types/components/form-field/form-field.d.ts +0 -10
  1360. /package/dist/siemens-ix/{p-1cc910b7.entry.js.map → p-0bed10af.entry.js.map} +0 -0
  1361. /package/dist/siemens-ix/{p-5d582c48.entry.js.map → p-0d907964.entry.js.map} +0 -0
  1362. /package/dist/siemens-ix/{p-b7a8f2d5.entry.js.map → p-0dfc3b80.entry.js.map} +0 -0
  1363. /package/dist/siemens-ix/{p-ced10144.js.map → p-224ebf90.js.map} +0 -0
  1364. /package/dist/siemens-ix/{p-418959d3.entry.js.map → p-293dd6d1.entry.js.map} +0 -0
  1365. /package/dist/siemens-ix/{p-114bb49b.entry.js.map → p-35fa9e1a.entry.js.map} +0 -0
  1366. /package/dist/siemens-ix/{p-890d74cd.entry.js.map → p-399bb0ce.entry.js.map} +0 -0
  1367. /package/dist/siemens-ix/{p-a35d02ea.entry.js.map → p-50cae62d.entry.js.map} +0 -0
  1368. /package/dist/siemens-ix/{p-c3939d35.entry.js.map → p-53e62b51.entry.js.map} +0 -0
  1369. /package/dist/siemens-ix/{p-56bbdae4.entry.js.map → p-5bf40a9f.entry.js.map} +0 -0
  1370. /package/dist/siemens-ix/{p-01a8adf1.entry.js.map → p-628c8612.entry.js.map} +0 -0
  1371. /package/dist/siemens-ix/{p-a6fbea5b.entry.js.map → p-815dd9a1.entry.js.map} +0 -0
  1372. /package/dist/siemens-ix/{p-2637665e.entry.js.map → p-87d7aaf9.entry.js.map} +0 -0
  1373. /package/dist/siemens-ix/{p-f2a81e70.entry.js.map → p-8dcf30ce.entry.js.map} +0 -0
  1374. /package/dist/siemens-ix/{p-30e8a26a.entry.js.map → p-8e10d2f2.entry.js.map} +0 -0
  1375. /package/dist/siemens-ix/{p-52bb526e.entry.js.map → p-a9b0c087.entry.js.map} +0 -0
  1376. /package/dist/siemens-ix/{p-a8838a77.js.map → p-bc1e92ac.js.map} +0 -0
  1377. /package/dist/siemens-ix/{p-4fd11865.entry.js.map → p-c3db120e.entry.js.map} +0 -0
  1378. /package/dist/siemens-ix/{p-ccf1bd22.entry.js.map → p-c66e4a5f.entry.js.map} +0 -0
  1379. /package/dist/siemens-ix/{p-9dc3e182.entry.js.map → p-e72dfb3c.entry.js.map} +0 -0
  1380. /package/dist/siemens-ix/{p-8362e966.js.map → p-ed991838.js.map} +0 -0
  1381. /package/dist/siemens-ix/{p-678d821f.entry.js.map → p-ef6171a2.entry.js.map} +0 -0
  1382. /package/dist/siemens-ix/{p-b32c2183.entry.js.map → p-f3c3366d.entry.js.map} +0 -0
@@ -1,2656 +0,0 @@
1
- const NAMESPACE = 'siemens-ix';
2
-
3
- /**
4
- * Virtual DOM patching algorithm based on Snabbdom by
5
- * Simon Friis Vindum (@paldepind)
6
- * Licensed under the MIT License
7
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
- *
9
- * Modified for Stencil's renderer and slot projection
10
- */
11
- let scopeId;
12
- let hostTagName;
13
- let useNativeShadowDom = false;
14
- let isSvgMode = false;
15
- let queuePending = false;
16
- const createTime = (fnName, tagName = '') => {
17
- {
18
- return () => {
19
- return;
20
- };
21
- }
22
- };
23
- const uniqueTime = (key, measureText) => {
24
- {
25
- return () => {
26
- return;
27
- };
28
- }
29
- };
30
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
31
- /**
32
- * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
33
- *
34
- * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
35
- * support as of Stencil v4.
36
- */
37
- const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
38
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
39
- /**
40
- * Default style mode id
41
- */
42
- /**
43
- * Reusable empty obj/array
44
- * Don't add values to these!!
45
- */
46
- const EMPTY_OBJ = {};
47
- /**
48
- * Namespaces
49
- */
50
- const SVG_NS = 'http://www.w3.org/2000/svg';
51
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
52
- const isDef = (v) => v != null;
53
- /**
54
- * Check whether a value is a 'complex type', defined here as an object or a
55
- * function.
56
- *
57
- * @param o the value to check
58
- * @returns whether it's a complex type or not
59
- */
60
- const isComplexType = (o) => {
61
- // https://jsperf.com/typeof-fn-object/5
62
- o = typeof o;
63
- return o === 'object' || o === 'function';
64
- };
65
- /**
66
- * Helper method for querying a `meta` tag that contains a nonce value
67
- * out of a DOM's head.
68
- *
69
- * @param doc The DOM containing the `head` to query against
70
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
71
- * exists or the tag has no content.
72
- */
73
- function queryNonceMetaTagContent(doc) {
74
- var _a, _b, _c;
75
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
76
- }
77
- /**
78
- * Production h() function based on Preact by
79
- * Jason Miller (@developit)
80
- * Licensed under the MIT License
81
- * https://github.com/developit/preact/blob/master/LICENSE
82
- *
83
- * Modified for Stencil's compiler and vdom
84
- */
85
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
86
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
87
- const h = (nodeName, vnodeData, ...children) => {
88
- let child = null;
89
- let key = null;
90
- let simple = false;
91
- let lastSimple = false;
92
- const vNodeChildren = [];
93
- const walk = (c) => {
94
- for (let i = 0; i < c.length; i++) {
95
- child = c[i];
96
- if (Array.isArray(child)) {
97
- walk(child);
98
- }
99
- else if (child != null && typeof child !== 'boolean') {
100
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
101
- child = String(child);
102
- }
103
- if (simple && lastSimple) {
104
- // If the previous child was simple (string), we merge both
105
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
106
- }
107
- else {
108
- // Append a new vNode, if it's text, we create a text vNode
109
- vNodeChildren.push(simple ? newVNode(null, child) : child);
110
- }
111
- lastSimple = simple;
112
- }
113
- }
114
- };
115
- walk(children);
116
- if (vnodeData) {
117
- if (vnodeData.key) {
118
- key = vnodeData.key;
119
- }
120
- // normalize class / className attributes
121
- {
122
- const classData = vnodeData.className || vnodeData.class;
123
- if (classData) {
124
- vnodeData.class =
125
- typeof classData !== 'object'
126
- ? classData
127
- : Object.keys(classData)
128
- .filter((k) => classData[k])
129
- .join(' ');
130
- }
131
- }
132
- }
133
- if (typeof nodeName === 'function') {
134
- // nodeName is a functional component
135
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
136
- }
137
- const vnode = newVNode(nodeName, null);
138
- vnode.$attrs$ = vnodeData;
139
- if (vNodeChildren.length > 0) {
140
- vnode.$children$ = vNodeChildren;
141
- }
142
- {
143
- vnode.$key$ = key;
144
- }
145
- return vnode;
146
- };
147
- /**
148
- * A utility function for creating a virtual DOM node from a tag and some
149
- * possible text content.
150
- *
151
- * @param tag the tag for this element
152
- * @param text possible text content for the node
153
- * @returns a newly-minted virtual DOM node
154
- */
155
- const newVNode = (tag, text) => {
156
- const vnode = {
157
- $flags$: 0,
158
- $tag$: tag,
159
- $text$: text,
160
- $elm$: null,
161
- $children$: null,
162
- };
163
- {
164
- vnode.$attrs$ = null;
165
- }
166
- {
167
- vnode.$key$ = null;
168
- }
169
- return vnode;
170
- };
171
- const Host = {};
172
- /**
173
- * Check whether a given node is a Host node or not
174
- *
175
- * @param node the virtual DOM node to check
176
- * @returns whether it's a Host node or not
177
- */
178
- const isHost = (node) => node && node.$tag$ === Host;
179
- /**
180
- * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
181
- *
182
- * Note that these functions convert from {@link d.VNode} to
183
- * {@link d.ChildNode} to give functional component developers a friendly
184
- * interface.
185
- */
186
- const vdomFnUtils = {
187
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
188
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
189
- };
190
- /**
191
- * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
192
- * friendlier public interface (hence, 'convertToPublic').
193
- *
194
- * @param node the virtual DOM node to convert
195
- * @returns a converted child node
196
- */
197
- const convertToPublic = (node) => ({
198
- vattrs: node.$attrs$,
199
- vchildren: node.$children$,
200
- vkey: node.$key$,
201
- vname: node.$name$,
202
- vtag: node.$tag$,
203
- vtext: node.$text$,
204
- });
205
- /**
206
- * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
207
- * order to use the resulting object in the virtual DOM. The initial object was
208
- * likely created as part of presenting a public API, so converting it back
209
- * involved making it 'private' again (hence, `convertToPrivate`).
210
- *
211
- * @param node the child node to convert
212
- * @returns a converted virtual DOM node
213
- */
214
- const convertToPrivate = (node) => {
215
- if (typeof node.vtag === 'function') {
216
- const vnodeData = Object.assign({}, node.vattrs);
217
- if (node.vkey) {
218
- vnodeData.key = node.vkey;
219
- }
220
- if (node.vname) {
221
- vnodeData.name = node.vname;
222
- }
223
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
224
- }
225
- const vnode = newVNode(node.vtag, node.vtext);
226
- vnode.$attrs$ = node.vattrs;
227
- vnode.$children$ = node.vchildren;
228
- vnode.$key$ = node.vkey;
229
- vnode.$name$ = node.vname;
230
- return vnode;
231
- };
232
- /**
233
- * Parse a new property value for a given property type.
234
- *
235
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
236
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
237
- * 1. `any`, the type given to `propValue` in the function signature
238
- * 2. the type stored from `propType`.
239
- *
240
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
241
- *
242
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
243
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
244
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
245
- * ```tsx
246
- * <my-cmp prop-val={0}></my-cmp>
247
- * ```
248
- *
249
- * HTML prop values on the other hand, will always a string
250
- *
251
- * @param propValue the new value to coerce to some type
252
- * @param propType the type of the prop, expressed as a binary number
253
- * @returns the parsed/coerced value
254
- */
255
- const parsePropertyValue = (propValue, propType) => {
256
- // ensure this value is of the correct prop type
257
- if (propValue != null && !isComplexType(propValue)) {
258
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
259
- // per the HTML spec, any string value means it is a boolean true value
260
- // but we'll cheat here and say that the string "false" is the boolean false
261
- return propValue === 'false' ? false : propValue === '' || !!propValue;
262
- }
263
- if (propType & 2 /* MEMBER_FLAGS.Number */) {
264
- // force it to be a number
265
- return parseFloat(propValue);
266
- }
267
- if (propType & 1 /* MEMBER_FLAGS.String */) {
268
- // could have been passed as a number or boolean
269
- // but we still want it as a string
270
- return String(propValue);
271
- }
272
- // redundant return here for better minification
273
- return propValue;
274
- }
275
- // not sure exactly what type we want
276
- // so no need to change to a different type
277
- return propValue;
278
- };
279
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
280
- const createEvent = (ref, name, flags) => {
281
- const elm = getElement(ref);
282
- return {
283
- emit: (detail) => {
284
- return emitEvent(elm, name, {
285
- bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
286
- composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
287
- cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
288
- detail,
289
- });
290
- },
291
- };
292
- };
293
- /**
294
- * Helper function to create & dispatch a custom Event on a provided target
295
- * @param elm the target of the Event
296
- * @param name the name to give the custom Event
297
- * @param opts options for configuring a custom Event
298
- * @returns the custom Event
299
- */
300
- const emitEvent = (elm, name, opts) => {
301
- const ev = plt.ce(name, opts);
302
- elm.dispatchEvent(ev);
303
- return ev;
304
- };
305
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
306
- const registerStyle = (scopeId, cssText, allowCS) => {
307
- let style = styles.get(scopeId);
308
- if (supportsConstructableStylesheets && allowCS) {
309
- style = (style || new CSSStyleSheet());
310
- if (typeof style === 'string') {
311
- style = cssText;
312
- }
313
- else {
314
- style.replaceSync(cssText);
315
- }
316
- }
317
- else {
318
- style = cssText;
319
- }
320
- styles.set(scopeId, style);
321
- };
322
- const addStyle = (styleContainerNode, cmpMeta, mode) => {
323
- var _a;
324
- const scopeId = getScopeId(cmpMeta);
325
- const style = styles.get(scopeId);
326
- // if an element is NOT connected then getRootNode() will return the wrong root node
327
- // so the fallback is to always use the document for the root node in those cases
328
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
329
- if (style) {
330
- if (typeof style === 'string') {
331
- styleContainerNode = styleContainerNode.head || styleContainerNode;
332
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
333
- let styleElm;
334
- if (!appliedStyles) {
335
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
336
- }
337
- if (!appliedStyles.has(scopeId)) {
338
- {
339
- styleElm = doc.createElement('style');
340
- styleElm.innerHTML = style;
341
- // Apply CSP nonce to the style tag if it exists
342
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
343
- if (nonce != null) {
344
- styleElm.setAttribute('nonce', nonce);
345
- }
346
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
347
- }
348
- // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
349
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
350
- styleElm.innerHTML += SLOT_FB_CSS;
351
- }
352
- if (appliedStyles) {
353
- appliedStyles.add(scopeId);
354
- }
355
- }
356
- }
357
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
358
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
359
- }
360
- }
361
- return scopeId;
362
- };
363
- const attachStyles = (hostRef) => {
364
- const cmpMeta = hostRef.$cmpMeta$;
365
- const elm = hostRef.$hostElement$;
366
- const flags = cmpMeta.$flags$;
367
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
368
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
369
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
370
- // only required when we're NOT using native shadow dom (slot)
371
- // or this browser doesn't support native shadow dom
372
- // and this host element was NOT created with SSR
373
- // let's pick out the inner content for slot projection
374
- // create a node to represent where the original
375
- // content was first placed, which is useful later on
376
- // DOM WRITE!!
377
- elm['s-sc'] = scopeId;
378
- elm.classList.add(scopeId + '-h');
379
- if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
380
- elm.classList.add(scopeId + '-s');
381
- }
382
- }
383
- endAttachStyles();
384
- };
385
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
386
- /**
387
- * Production setAccessor() function based on Preact by
388
- * Jason Miller (@developit)
389
- * Licensed under the MIT License
390
- * https://github.com/developit/preact/blob/master/LICENSE
391
- *
392
- * Modified for Stencil's compiler and vdom
393
- */
394
- /**
395
- * When running a VDom render set properties present on a VDom node onto the
396
- * corresponding HTML element.
397
- *
398
- * Note that this function has special functionality for the `class`,
399
- * `style`, `key`, and `ref` attributes, as well as event handlers (like
400
- * `onClick`, etc). All others are just passed through as-is.
401
- *
402
- * @param elm the HTMLElement onto which attributes should be set
403
- * @param memberName the name of the attribute to set
404
- * @param oldValue the old value for the attribute
405
- * @param newValue the new value for the attribute
406
- * @param isSvg whether we're in an svg context or not
407
- * @param flags bitflags for Vdom variables
408
- */
409
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
- if (oldValue !== newValue) {
411
- let isProp = isMemberInElement(elm, memberName);
412
- let ln = memberName.toLowerCase();
413
- if (memberName === 'class') {
414
- const classList = elm.classList;
415
- const oldClasses = parseClassList(oldValue);
416
- const newClasses = parseClassList(newValue);
417
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
418
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
419
- }
420
- else if (memberName === 'style') {
421
- // update style attribute, css properties and values
422
- {
423
- for (const prop in oldValue) {
424
- if (!newValue || newValue[prop] == null) {
425
- if (prop.includes('-')) {
426
- elm.style.removeProperty(prop);
427
- }
428
- else {
429
- elm.style[prop] = '';
430
- }
431
- }
432
- }
433
- }
434
- for (const prop in newValue) {
435
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
436
- if (prop.includes('-')) {
437
- elm.style.setProperty(prop, newValue[prop]);
438
- }
439
- else {
440
- elm.style[prop] = newValue[prop];
441
- }
442
- }
443
- }
444
- }
445
- else if (memberName === 'key')
446
- ;
447
- else if (memberName === 'ref') {
448
- // minifier will clean this up
449
- if (newValue) {
450
- newValue(elm);
451
- }
452
- }
453
- else if ((!isProp ) &&
454
- memberName[0] === 'o' &&
455
- memberName[1] === 'n') {
456
- // Event Handlers
457
- // so if the member name starts with "on" and the 3rd characters is
458
- // a capital letter, and it's not already a member on the element,
459
- // then we're assuming it's an event listener
460
- if (memberName[2] === '-') {
461
- // on- prefixed events
462
- // allows to be explicit about the dom event to listen without any magic
463
- // under the hood:
464
- // <my-cmp on-click> // listens for "click"
465
- // <my-cmp on-Click> // listens for "Click"
466
- // <my-cmp on-ionChange> // listens for "ionChange"
467
- // <my-cmp on-EVENTS> // listens for "EVENTS"
468
- memberName = memberName.slice(3);
469
- }
470
- else if (isMemberInElement(win, ln)) {
471
- // standard event
472
- // the JSX attribute could have been "onMouseOver" and the
473
- // member name "onmouseover" is on the window's prototype
474
- // so let's add the listener "mouseover", which is all lowercased
475
- memberName = ln.slice(2);
476
- }
477
- else {
478
- // custom event
479
- // the JSX attribute could have been "onMyCustomEvent"
480
- // so let's trim off the "on" prefix and lowercase the first character
481
- // and add the listener "myCustomEvent"
482
- // except for the first character, we keep the event name case
483
- memberName = ln[2] + memberName.slice(3);
484
- }
485
- if (oldValue || newValue) {
486
- // Need to account for "capture" events.
487
- // If the event name ends with "Capture", we'll update the name to remove
488
- // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
489
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
490
- // Make sure we only replace the last instance of "Capture"
491
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
492
- if (oldValue) {
493
- plt.rel(elm, memberName, oldValue, capture);
494
- }
495
- if (newValue) {
496
- plt.ael(elm, memberName, newValue, capture);
497
- }
498
- }
499
- }
500
- else {
501
- // Set property if it exists and it's not a SVG
502
- const isComplex = isComplexType(newValue);
503
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
504
- try {
505
- if (!elm.tagName.includes('-')) {
506
- const n = newValue == null ? '' : newValue;
507
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
508
- if (memberName === 'list') {
509
- isProp = false;
510
- }
511
- else if (oldValue == null || elm[memberName] != n) {
512
- elm[memberName] = n;
513
- }
514
- }
515
- else {
516
- elm[memberName] = newValue;
517
- }
518
- }
519
- catch (e) {
520
- /**
521
- * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
522
- */
523
- }
524
- }
525
- /**
526
- * Need to manually update attribute if:
527
- * - memberName is not an attribute
528
- * - if we are rendering the host element in order to reflect attribute
529
- * - if it's a SVG, since properties might not work in <svg>
530
- * - if the newValue is null/undefined or 'false'.
531
- */
532
- let xlink = false;
533
- {
534
- if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
535
- memberName = ln;
536
- xlink = true;
537
- }
538
- }
539
- if (newValue == null || newValue === false) {
540
- if (newValue !== false || elm.getAttribute(memberName) === '') {
541
- if (xlink) {
542
- elm.removeAttributeNS(XLINK_NS, memberName);
543
- }
544
- else {
545
- elm.removeAttribute(memberName);
546
- }
547
- }
548
- }
549
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
550
- newValue = newValue === true ? '' : newValue;
551
- if (xlink) {
552
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
553
- }
554
- else {
555
- elm.setAttribute(memberName, newValue);
556
- }
557
- }
558
- }
559
- }
560
- };
561
- const parseClassListRegex = /\s/;
562
- /**
563
- * Parsed a string of classnames into an array
564
- * @param value className string, e.g. "foo bar baz"
565
- * @returns list of classes, e.g. ["foo", "bar", "baz"]
566
- */
567
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
568
- const CAPTURE_EVENT_SUFFIX = 'Capture';
569
- const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
570
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
571
- // if the element passed in is a shadow root, which is a document fragment
572
- // then we want to be adding attrs/props to the shadow root's "host" element
573
- // if it's not a shadow root, then we add attrs/props to the same element
574
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
575
- ? newVnode.$elm$.host
576
- : newVnode.$elm$;
577
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
578
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
579
- {
580
- // remove attributes no longer present on the vnode by setting them to undefined
581
- for (memberName in oldVnodeAttrs) {
582
- if (!(memberName in newVnodeAttrs)) {
583
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
584
- }
585
- }
586
- }
587
- // add new & update changed attributes
588
- for (memberName in newVnodeAttrs) {
589
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
590
- }
591
- };
592
- /**
593
- * Create a DOM Node corresponding to one of the children of a given VNode.
594
- *
595
- * @param oldParentVNode the parent VNode from the previous render
596
- * @param newParentVNode the parent VNode from the current render
597
- * @param childIndex the index of the VNode, in the _new_ parent node's
598
- * children, for which we will create a new DOM node
599
- * @param parentElm the parent DOM node which our new node will be a child of
600
- * @returns the newly created node
601
- */
602
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
603
- // tslint:disable-next-line: prefer-const
604
- const newVNode = newParentVNode.$children$[childIndex];
605
- let i = 0;
606
- let elm;
607
- let childNode;
608
- if (newVNode.$text$ !== null) {
609
- // create text node
610
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
611
- }
612
- else {
613
- if (!isSvgMode) {
614
- isSvgMode = newVNode.$tag$ === 'svg';
615
- }
616
- // create element
617
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
618
- );
619
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
620
- isSvgMode = false;
621
- }
622
- // add css classes, attrs, props, listeners, etc.
623
- {
624
- updateElement(null, newVNode, isSvgMode);
625
- }
626
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
627
- // if there is a scopeId and this is the initial render
628
- // then let's add the scopeId as a css class
629
- elm.classList.add((elm['s-si'] = scopeId));
630
- }
631
- if (newVNode.$children$) {
632
- for (i = 0; i < newVNode.$children$.length; ++i) {
633
- // create the node
634
- childNode = createElm(oldParentVNode, newVNode, i);
635
- // return node could have been null
636
- if (childNode) {
637
- // append our new node
638
- elm.appendChild(childNode);
639
- }
640
- }
641
- }
642
- {
643
- if (newVNode.$tag$ === 'svg') {
644
- // Only reset the SVG context when we're exiting <svg> element
645
- isSvgMode = false;
646
- }
647
- else if (elm.tagName === 'foreignObject') {
648
- // Reenter SVG context when we're exiting <foreignObject> element
649
- isSvgMode = true;
650
- }
651
- }
652
- }
653
- // This needs to always happen so we can hide nodes that are projected
654
- // to another component but don't end up in a slot
655
- elm['s-hn'] = hostTagName;
656
- return elm;
657
- };
658
- /**
659
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
660
- * add them to the DOM in the appropriate place.
661
- *
662
- * @param parentElm the DOM node which should be used as a parent for the new
663
- * DOM nodes
664
- * @param before a child of the `parentElm` which the new children should be
665
- * inserted before (optional)
666
- * @param parentVNode the parent virtual DOM node
667
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
668
- * @param startIdx the index in the child virtual DOM nodes at which to start
669
- * creating DOM nodes (inclusive)
670
- * @param endIdx the index in the child virtual DOM nodes at which to stop
671
- * creating DOM nodes (inclusive)
672
- */
673
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
674
- let containerElm = (parentElm);
675
- let childNode;
676
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
677
- containerElm = containerElm.shadowRoot;
678
- }
679
- for (; startIdx <= endIdx; ++startIdx) {
680
- if (vnodes[startIdx]) {
681
- childNode = createElm(null, parentVNode, startIdx);
682
- if (childNode) {
683
- vnodes[startIdx].$elm$ = childNode;
684
- containerElm.insertBefore(childNode, before);
685
- }
686
- }
687
- }
688
- };
689
- /**
690
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
691
- * This can be used to, for instance, clean up after a list of children which
692
- * should no longer be shown.
693
- *
694
- * This function also handles some of Stencil's slot relocation logic.
695
- *
696
- * @param vnodes a list of virtual DOM nodes to remove
697
- * @param startIdx the index at which to start removing nodes (inclusive)
698
- * @param endIdx the index at which to stop removing nodes (inclusive)
699
- */
700
- const removeVnodes = (vnodes, startIdx, endIdx) => {
701
- for (let index = startIdx; index <= endIdx; ++index) {
702
- const vnode = vnodes[index];
703
- if (vnode) {
704
- const elm = vnode.$elm$;
705
- nullifyVNodeRefs(vnode);
706
- if (elm) {
707
- // remove the vnode's element from the dom
708
- elm.remove();
709
- }
710
- }
711
- }
712
- };
713
- /**
714
- * Reconcile the children of a new VNode with the children of an old VNode by
715
- * traversing the two collections of children, identifying nodes that are
716
- * conserved or changed, calling out to `patch` to make any necessary
717
- * updates to the DOM, and rearranging DOM nodes as needed.
718
- *
719
- * The algorithm for reconciling children works by analyzing two 'windows' onto
720
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
721
- * 'windows' by storing start and end indices and references to the
722
- * corresponding array entries. Initially the two 'windows' are basically equal
723
- * to the entire array, but we progressively narrow the windows until there are
724
- * no children left to update by doing the following:
725
- *
726
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
727
- * that if we have an initial array like the following we'll end up dealing
728
- * only with a window bounded by the highlighted elements:
729
- *
730
- * [null, null, VNode1 , ... , VNode2, null, null]
731
- * ^^^^^^ ^^^^^^
732
- *
733
- * 2. Check to see if the elements at the head and tail positions are equal
734
- * across the windows. This will basically detect elements which haven't
735
- * been added, removed, or changed position, i.e. if you had the following
736
- * VNode elements (represented as HTML):
737
- *
738
- * oldVNode: `<div><p><span>HEY</span></p></div>`
739
- * newVNode: `<div><p><span>THERE</span></p></div>`
740
- *
741
- * Then when comparing the children of the `<div>` tag we check the equality
742
- * of the VNodes corresponding to the `<p>` tags and, since they are the
743
- * same tag in the same position, we'd be able to avoid completely
744
- * re-rendering the subtree under them with a new DOM element and would just
745
- * call out to `patch` to handle reconciling their children and so on.
746
- *
747
- * 3. Check, for both windows, to see if the element at the beginning of the
748
- * window corresponds to the element at the end of the other window. This is
749
- * a heuristic which will let us identify _some_ situations in which
750
- * elements have changed position, for instance it _should_ detect that the
751
- * children nodes themselves have not changed but merely moved in the
752
- * following example:
753
- *
754
- * oldVNode: `<div><element-one /><element-two /></div>`
755
- * newVNode: `<div><element-two /><element-one /></div>`
756
- *
757
- * If we find cases like this then we also need to move the concrete DOM
758
- * elements corresponding to the moved children to write the re-order to the
759
- * DOM.
760
- *
761
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
762
- * nodes in the old children which have the same key as the first element in
763
- * our window on the new children. If we find such a node we handle calling
764
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
765
- * what we find.
766
- *
767
- * Finally, once we've narrowed our 'windows' to the point that either of them
768
- * collapse (i.e. they have length 0) we then handle any remaining VNode
769
- * insertion or deletion that needs to happen to get a DOM state that correctly
770
- * reflects the new child VNodes. If, for instance, after our window on the old
771
- * children has collapsed we still have more nodes on the new children that
772
- * we haven't dealt with yet then we need to add them, or if the new children
773
- * collapse but we still have unhandled _old_ children then we need to make
774
- * sure the corresponding DOM nodes are removed.
775
- *
776
- * @param parentElm the node into which the parent VNode is rendered
777
- * @param oldCh the old children of the parent node
778
- * @param newVNode the new VNode which will replace the parent
779
- * @param newCh the new children of the parent node
780
- * @param isInitialRender whether or not this is the first render of the vdom
781
- */
782
- const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
783
- let oldStartIdx = 0;
784
- let newStartIdx = 0;
785
- let idxInOld = 0;
786
- let i = 0;
787
- let oldEndIdx = oldCh.length - 1;
788
- let oldStartVnode = oldCh[0];
789
- let oldEndVnode = oldCh[oldEndIdx];
790
- let newEndIdx = newCh.length - 1;
791
- let newStartVnode = newCh[0];
792
- let newEndVnode = newCh[newEndIdx];
793
- let node;
794
- let elmToMove;
795
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
796
- if (oldStartVnode == null) {
797
- // VNode might have been moved left
798
- oldStartVnode = oldCh[++oldStartIdx];
799
- }
800
- else if (oldEndVnode == null) {
801
- oldEndVnode = oldCh[--oldEndIdx];
802
- }
803
- else if (newStartVnode == null) {
804
- newStartVnode = newCh[++newStartIdx];
805
- }
806
- else if (newEndVnode == null) {
807
- newEndVnode = newCh[--newEndIdx];
808
- }
809
- else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
810
- // if the start nodes are the same then we should patch the new VNode
811
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
812
- // indices to reflect that. We don't need to move any DOM Nodes around
813
- // since things are matched up in order.
814
- patch(oldStartVnode, newStartVnode, isInitialRender);
815
- oldStartVnode = oldCh[++oldStartIdx];
816
- newStartVnode = newCh[++newStartIdx];
817
- }
818
- else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
819
- // likewise, if the end nodes are the same we patch new onto old and
820
- // decrement our end indices, and also likewise in this case we don't
821
- // need to move any DOM Nodes.
822
- patch(oldEndVnode, newEndVnode, isInitialRender);
823
- oldEndVnode = oldCh[--oldEndIdx];
824
- newEndVnode = newCh[--newEndIdx];
825
- }
826
- else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
827
- patch(oldStartVnode, newEndVnode, isInitialRender);
828
- // We need to move the element for `oldStartVnode` into a position which
829
- // will be appropriate for `newEndVnode`. For this we can use
830
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
831
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
832
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
833
- //
834
- // <old-start-node />
835
- // <some-intervening-node />
836
- // <old-end-node />
837
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
838
- // <next-sibling />
839
- //
840
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
841
- // the node for `oldStartVnode` at the end of the children of
842
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
843
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
844
- // append it to the children of the parent element.
845
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
846
- oldStartVnode = oldCh[++oldStartIdx];
847
- newEndVnode = newCh[--newEndIdx];
848
- }
849
- else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
850
- patch(oldEndVnode, newStartVnode, isInitialRender);
851
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
852
- // the same node, so since we're here we know that they are not. Thus we
853
- // can move the element for `oldEndVnode` _before_ the element for
854
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
855
- // future.
856
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
857
- oldEndVnode = oldCh[--oldEndIdx];
858
- newStartVnode = newCh[++newStartIdx];
859
- }
860
- else {
861
- // Here we do some checks to match up old and new nodes based on the
862
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
863
- // in the JSX for a DOM element in the implementation of a Stencil
864
- // component.
865
- //
866
- // First we check to see if there are any nodes in the array of old
867
- // children which have the same key as the first node in the new
868
- // children.
869
- idxInOld = -1;
870
- {
871
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
872
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
873
- idxInOld = i;
874
- break;
875
- }
876
- }
877
- }
878
- if (idxInOld >= 0) {
879
- // We found a node in the old children which matches up with the first
880
- // node in the new children! So let's deal with that
881
- elmToMove = oldCh[idxInOld];
882
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
883
- // the tag doesn't match so we'll need a new DOM element
884
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
885
- }
886
- else {
887
- patch(elmToMove, newStartVnode, isInitialRender);
888
- // invalidate the matching old node so that we won't try to update it
889
- // again later on
890
- oldCh[idxInOld] = undefined;
891
- node = elmToMove.$elm$;
892
- }
893
- newStartVnode = newCh[++newStartIdx];
894
- }
895
- else {
896
- // We either didn't find an element in the old children that matches
897
- // the key of the first new child OR the build is not using `key`
898
- // attributes at all. In either case we need to create a new element
899
- // for the new node.
900
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
901
- newStartVnode = newCh[++newStartIdx];
902
- }
903
- if (node) {
904
- // if we created a new node then handle inserting it to the DOM
905
- {
906
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
907
- }
908
- }
909
- }
910
- }
911
- if (oldStartIdx > oldEndIdx) {
912
- // we have some more new nodes to add which don't match up with old nodes
913
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
914
- }
915
- else if (newStartIdx > newEndIdx) {
916
- // there are nodes in the `oldCh` array which no longer correspond to nodes
917
- // in the new array, so lets remove them (which entails cleaning up the
918
- // relevant DOM nodes)
919
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
920
- }
921
- };
922
- /**
923
- * Compare two VNodes to determine if they are the same
924
- *
925
- * **NB**: This function is an equality _heuristic_ based on the available
926
- * information set on the two VNodes and can be misleading under certain
927
- * circumstances. In particular, if the two nodes do not have `key` attrs
928
- * (available under `$key$` on VNodes) then the function falls back on merely
929
- * checking that they have the same tag.
930
- *
931
- * So, in other words, if `key` attrs are not set on VNodes which may be
932
- * changing order within a `children` array or something along those lines then
933
- * we could obtain a false negative and then have to do needless re-rendering
934
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
935
- *
936
- * @param leftVNode the first VNode to check
937
- * @param rightVNode the second VNode to check
938
- * @param isInitialRender whether or not this is the first render of the vdom
939
- * @returns whether they're equal or not
940
- */
941
- const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
942
- // compare if two vnode to see if they're "technically" the same
943
- // need to have the same element tag, and same key to be the same
944
- if (leftVNode.$tag$ === rightVNode.$tag$) {
945
- // this will be set if JSX tags in the build have `key` attrs set on them
946
- // we only want to check this if we're not on the first render since on
947
- // first render `leftVNode.$key$` will always be `null`, so we can be led
948
- // astray and, for instance, accidentally delete a DOM node that we want to
949
- // keep around.
950
- if (!isInitialRender) {
951
- return leftVNode.$key$ === rightVNode.$key$;
952
- }
953
- return true;
954
- }
955
- return false;
956
- };
957
- /**
958
- * Handle reconciling an outdated VNode with a new one which corresponds to
959
- * it. This function handles flushing updates to the DOM and reconciling the
960
- * children of the two nodes (if any).
961
- *
962
- * @param oldVNode an old VNode whose DOM element and children we want to update
963
- * @param newVNode a new VNode representing an updated version of the old one
964
- * @param isInitialRender whether or not this is the first render of the vdom
965
- */
966
- const patch = (oldVNode, newVNode, isInitialRender = false) => {
967
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
968
- const oldChildren = oldVNode.$children$;
969
- const newChildren = newVNode.$children$;
970
- const tag = newVNode.$tag$;
971
- const text = newVNode.$text$;
972
- if (text === null) {
973
- {
974
- // test if we're rendering an svg element, or still rendering nodes inside of one
975
- // only add this to the when the compiler sees we're using an svg somewhere
976
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
977
- }
978
- {
979
- if (tag === 'slot' && !useNativeShadowDom) ;
980
- else {
981
- // either this is the first render of an element OR it's an update
982
- // AND we already know it's possible it could have changed
983
- // this updates the element's css classes, attrs, props, listeners, etc.
984
- updateElement(oldVNode, newVNode, isSvgMode);
985
- }
986
- }
987
- if (oldChildren !== null && newChildren !== null) {
988
- // looks like there's child vnodes for both the old and new vnodes
989
- // so we need to call `updateChildren` to reconcile them
990
- updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
991
- }
992
- else if (newChildren !== null) {
993
- // no old child vnodes, but there are new child vnodes to add
994
- if (oldVNode.$text$ !== null) {
995
- // the old vnode was text, so be sure to clear it out
996
- elm.textContent = '';
997
- }
998
- // add the new vnode children
999
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1000
- }
1001
- else if (oldChildren !== null) {
1002
- // no new child vnodes, but there are old child vnodes to remove
1003
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1004
- }
1005
- if (isSvgMode && tag === 'svg') {
1006
- isSvgMode = false;
1007
- }
1008
- }
1009
- else if (oldVNode.$text$ !== text) {
1010
- // update the text content for the text only vnode
1011
- // and also only if the text is different than before
1012
- elm.data = text;
1013
- }
1014
- };
1015
- /**
1016
- * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
1017
- * are slot fallbacks nodes.
1018
- *
1019
- * A slot fallback node should be visible by default. Then, it should be
1020
- * conditionally hidden if:
1021
- *
1022
- * - it has a sibling with a `slot` property set to its slot name or if
1023
- * - it is a default fallback slot node, in which case we hide if it has any
1024
- * content
1025
- *
1026
- * @param elm the element of interest
1027
- */
1028
- const updateFallbackSlotVisibility = (elm) => {
1029
- const childNodes = elm.childNodes;
1030
- for (const childNode of childNodes) {
1031
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1032
- if (childNode['s-sr']) {
1033
- // this is a slot fallback node
1034
- // get the slot name for this slot reference node
1035
- const slotName = childNode['s-sn'];
1036
- // by default always show a fallback slot node
1037
- // then hide it if there are other slots in the light dom
1038
- childNode.hidden = false;
1039
- // we need to check all of its sibling nodes in order to see if
1040
- // `childNode` should be hidden
1041
- for (const siblingNode of childNodes) {
1042
- // Don't check the node against itself
1043
- if (siblingNode !== childNode) {
1044
- if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
1045
- // this sibling node is from a different component OR is a named
1046
- // fallback slot node
1047
- if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1048
- (slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
1049
- childNode.hidden = true;
1050
- break;
1051
- }
1052
- }
1053
- else {
1054
- // this is a default fallback slot node
1055
- // any element or text node (with content)
1056
- // should hide the default fallback slot node
1057
- if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1058
- (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
1059
- childNode.hidden = true;
1060
- break;
1061
- }
1062
- }
1063
- }
1064
- }
1065
- }
1066
- // keep drilling down
1067
- updateFallbackSlotVisibility(childNode);
1068
- }
1069
- }
1070
- };
1071
- /**
1072
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1073
- * them with `null`. This signals that the DOM element corresponding to the VDom
1074
- * node has been removed from the DOM.
1075
- *
1076
- * @param vNode a virtual DOM node
1077
- */
1078
- const nullifyVNodeRefs = (vNode) => {
1079
- {
1080
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1081
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1082
- }
1083
- };
1084
- /**
1085
- * The main entry point for Stencil's virtual DOM-based rendering engine
1086
- *
1087
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1088
- * function will handle creating a virtual DOM tree with a single root, patching
1089
- * the current virtual DOM tree onto an old one (if any), dealing with slot
1090
- * relocation, and reflecting attributes.
1091
- *
1092
- * @param hostRef data needed to root and render the virtual DOM tree, such as
1093
- * the DOM node into which it should be rendered.
1094
- * @param renderFnResults the virtual DOM nodes to be rendered
1095
- * @param isInitialLoad whether or not this is the first call after page load
1096
- */
1097
- const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1098
- const hostElm = hostRef.$hostElement$;
1099
- const cmpMeta = hostRef.$cmpMeta$;
1100
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1101
- // if `renderFnResults` is a Host node then we can use it directly. If not,
1102
- // we need to call `h` again to wrap the children of our component in a
1103
- // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1104
- // implicitly that the top-level vdom node is 1) an only child and 2)
1105
- // contains attrs that need to be set on the host element.
1106
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1107
- hostTagName = hostElm.tagName;
1108
- if (cmpMeta.$attrsToReflect$) {
1109
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1110
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1111
- }
1112
- // On the first render and *only* on the first render we want to check for
1113
- // any attributes set on the host element which are also set on the vdom
1114
- // node. If we find them, we override the value on the VDom node attrs with
1115
- // the value from the host element, which allows developers building apps
1116
- // with Stencil components to override e.g. the `role` attribute on a
1117
- // component even if it's already set on the `Host`.
1118
- if (isInitialLoad && rootVnode.$attrs$) {
1119
- for (const key of Object.keys(rootVnode.$attrs$)) {
1120
- // We have a special implementation in `setAccessor` for `style` and
1121
- // `class` which reconciles values coming from the VDom with values
1122
- // already present on the DOM element, so we don't want to override those
1123
- // attributes on the VDom tree with values from the host element if they
1124
- // are present.
1125
- //
1126
- // Likewise, `ref` and `key` are special internal values for the Stencil
1127
- // runtime and we don't want to override those either.
1128
- if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1129
- rootVnode.$attrs$[key] = hostElm[key];
1130
- }
1131
- }
1132
- }
1133
- rootVnode.$tag$ = null;
1134
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1135
- hostRef.$vnode$ = rootVnode;
1136
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1137
- {
1138
- scopeId = hostElm['s-sc'];
1139
- }
1140
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1141
- // synchronous patch
1142
- patch(oldVNode, rootVnode, isInitialLoad);
1143
- };
1144
- const attachToAncestor = (hostRef, ancestorComponent) => {
1145
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1146
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1147
- }
1148
- };
1149
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1150
- {
1151
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1152
- }
1153
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1154
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1155
- return;
1156
- }
1157
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1158
- // there is no ancestor component or the ancestor component
1159
- // has already fired off its lifecycle update then
1160
- // fire off the initial update
1161
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1162
- return writeTask(dispatch) ;
1163
- };
1164
- /**
1165
- * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1166
- * component lifecycle methods like `componentWillLoad` as well as
1167
- * {@link updateComponent}, which will kick off the virtual DOM re-render.
1168
- *
1169
- * @param hostRef a reference to a host DOM node
1170
- * @param isInitialLoad whether we're on the initial load or not
1171
- * @returns an empty Promise which is used to enqueue a series of operations for
1172
- * the component
1173
- */
1174
- const dispatchHooks = (hostRef, isInitialLoad) => {
1175
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1176
- const instance = hostRef.$lazyInstance$ ;
1177
- // We're going to use this variable together with `enqueue` to implement a
1178
- // little promise-based queue. We start out with it `undefined`. When we add
1179
- // the first function to the queue we'll set this variable to be that
1180
- // function's return value. When we attempt to add subsequent values to the
1181
- // queue we'll check that value and, if it was a `Promise`, we'll then chain
1182
- // the new function off of that `Promise` using `.then()`. This will give our
1183
- // queue two nice properties:
1184
- //
1185
- // 1. If all functions added to the queue are synchronous they'll be called
1186
- // synchronously right away.
1187
- // 2. If all functions added to the queue are asynchronous they'll all be
1188
- // called in order after `dispatchHooks` exits.
1189
- let maybePromise;
1190
- if (isInitialLoad) {
1191
- {
1192
- hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1193
- if (hostRef.$queuedListeners$) {
1194
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1195
- hostRef.$queuedListeners$ = undefined;
1196
- }
1197
- }
1198
- {
1199
- // If `componentWillLoad` returns a `Promise` then we want to wait on
1200
- // whatever's going on in that `Promise` before we launch into
1201
- // rendering the component, doing other lifecycle stuff, etc. So
1202
- // in that case we assign the returned promise to the variable we
1203
- // declared above to hold a possible 'queueing' Promise
1204
- maybePromise = safeCall(instance, 'componentWillLoad');
1205
- }
1206
- }
1207
- {
1208
- maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
1209
- }
1210
- endSchedule();
1211
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1212
- };
1213
- /**
1214
- * This function uses a Promise to implement a simple first-in, first-out queue
1215
- * of functions to be called.
1216
- *
1217
- * The queue is ordered on the basis of the first argument. If it's
1218
- * `undefined`, then nothing is on the queue yet, so the provided function can
1219
- * be called synchronously (although note that this function may return a
1220
- * `Promise`). The idea is that then the return value of that enqueueing
1221
- * operation is kept around, so that if it was a `Promise` then subsequent
1222
- * functions can be enqueued by calling this function again with that `Promise`
1223
- * as the first argument.
1224
- *
1225
- * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1226
- * @param fn a function to enqueue
1227
- * @returns either a `Promise` or the return value of the provided function
1228
- */
1229
- const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1230
- /**
1231
- * Check that a value is a `Promise`. To check, we first see if the value is an
1232
- * instance of the `Promise` global. In a few circumstances, in particular if
1233
- * the global has been overwritten, this is could be misleading, so we also do
1234
- * a little 'duck typing' check to see if the `.then` property of the value is
1235
- * defined and a function.
1236
- *
1237
- * @param maybePromise it might be a promise!
1238
- * @returns whether it is or not
1239
- */
1240
- const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1241
- (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1242
- /**
1243
- * Update a component given reference to its host elements and so on.
1244
- *
1245
- * @param hostRef an object containing references to the element's host node,
1246
- * VDom nodes, and other metadata
1247
- * @param instance a reference to the underlying host element where it will be
1248
- * rendered
1249
- * @param isInitialLoad whether or not this function is being called as part of
1250
- * the first render cycle
1251
- */
1252
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1253
- var _a;
1254
- const elm = hostRef.$hostElement$;
1255
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1256
- const rc = elm['s-rc'];
1257
- if (isInitialLoad) {
1258
- // DOM WRITE!
1259
- attachStyles(hostRef);
1260
- }
1261
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1262
- {
1263
- callRender(hostRef, instance, elm, isInitialLoad);
1264
- }
1265
- if (rc) {
1266
- // ok, so turns out there are some child host elements
1267
- // waiting on this parent element to load
1268
- // let's fire off all update callbacks waiting
1269
- rc.map((cb) => cb());
1270
- elm['s-rc'] = undefined;
1271
- }
1272
- endRender();
1273
- endUpdate();
1274
- {
1275
- const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1276
- const postUpdate = () => postUpdateComponent(hostRef);
1277
- if (childrenPromises.length === 0) {
1278
- postUpdate();
1279
- }
1280
- else {
1281
- Promise.all(childrenPromises).then(postUpdate);
1282
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1283
- childrenPromises.length = 0;
1284
- }
1285
- }
1286
- };
1287
- /**
1288
- * Handle making the call to the VDom renderer with the proper context given
1289
- * various build variables
1290
- *
1291
- * @param hostRef an object containing references to the element's host node,
1292
- * VDom nodes, and other metadata
1293
- * @param instance a reference to the underlying host element where it will be
1294
- * rendered
1295
- * @param elm the Host element for the component
1296
- * @param isInitialLoad whether or not this function is being called as part of
1297
- * @returns an empty promise
1298
- */
1299
- const callRender = (hostRef, instance, elm, isInitialLoad) => {
1300
- try {
1301
- /**
1302
- * minification optimization: `allRenderFn` is `true` if all components have a `render`
1303
- * method, so we can call the method immediately. If not, check before calling it.
1304
- */
1305
- instance = instance.render() ;
1306
- {
1307
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1308
- }
1309
- {
1310
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1311
- }
1312
- {
1313
- {
1314
- // looks like we've got child nodes to render into this host element
1315
- // or we need to update the css class/attrs on the host element
1316
- // DOM WRITE!
1317
- {
1318
- renderVdom(hostRef, instance, isInitialLoad);
1319
- }
1320
- }
1321
- }
1322
- }
1323
- catch (e) {
1324
- consoleError(e, hostRef.$hostElement$);
1325
- }
1326
- return null;
1327
- };
1328
- const postUpdateComponent = (hostRef) => {
1329
- const tagName = hostRef.$cmpMeta$.$tagName$;
1330
- const elm = hostRef.$hostElement$;
1331
- const endPostUpdate = createTime('postUpdate', tagName);
1332
- const instance = hostRef.$lazyInstance$ ;
1333
- const ancestorComponent = hostRef.$ancestorComponent$;
1334
- {
1335
- safeCall(instance, 'componentDidRender');
1336
- }
1337
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1338
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1339
- {
1340
- // DOM WRITE!
1341
- addHydratedFlag(elm);
1342
- }
1343
- {
1344
- safeCall(instance, 'componentDidLoad');
1345
- }
1346
- endPostUpdate();
1347
- {
1348
- hostRef.$onReadyResolve$(elm);
1349
- if (!ancestorComponent) {
1350
- appDidLoad();
1351
- }
1352
- }
1353
- }
1354
- else {
1355
- endPostUpdate();
1356
- }
1357
- {
1358
- hostRef.$onInstanceResolve$(elm);
1359
- }
1360
- // load events fire from bottom to top
1361
- // the deepest elements load first then bubbles up
1362
- {
1363
- if (hostRef.$onRenderResolve$) {
1364
- hostRef.$onRenderResolve$();
1365
- hostRef.$onRenderResolve$ = undefined;
1366
- }
1367
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1368
- nextTick(() => scheduleUpdate(hostRef, false));
1369
- }
1370
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1371
- }
1372
- // ( •_•)
1373
- // ( •_•)>⌐■-■
1374
- // (⌐■_■)
1375
- };
1376
- const forceUpdate = (ref) => {
1377
- {
1378
- const hostRef = getHostRef(ref);
1379
- const isConnected = hostRef.$hostElement$.isConnected;
1380
- if (isConnected &&
1381
- (hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1382
- scheduleUpdate(hostRef, false);
1383
- }
1384
- // Returns "true" when the forced update was successfully scheduled
1385
- return isConnected;
1386
- }
1387
- };
1388
- const appDidLoad = (who) => {
1389
- // on appload
1390
- // we have finish the first big initial render
1391
- {
1392
- addHydratedFlag(doc.documentElement);
1393
- }
1394
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1395
- };
1396
- /**
1397
- * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1398
- * e.g. custom element node. If a build figures out that e.g. no component
1399
- * has a `componentDidLoad` method, the instance method gets removed from the
1400
- * output bundle and this function returns `undefined`.
1401
- * @param instance any object that may or may not contain methods
1402
- * @param method method name
1403
- * @param arg single arbitrary argument
1404
- * @returns result of method call if it exists, otherwise `undefined`
1405
- */
1406
- const safeCall = (instance, method, arg) => {
1407
- if (instance && instance[method]) {
1408
- try {
1409
- return instance[method](arg);
1410
- }
1411
- catch (e) {
1412
- consoleError(e);
1413
- }
1414
- }
1415
- return undefined;
1416
- };
1417
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1418
- ;
1419
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1420
- const setValue = (ref, propName, newVal, cmpMeta) => {
1421
- // check our new property value against our internal value
1422
- const hostRef = getHostRef(ref);
1423
- const elm = hostRef.$hostElement$ ;
1424
- const oldVal = hostRef.$instanceValues$.get(propName);
1425
- const flags = hostRef.$flags$;
1426
- const instance = hostRef.$lazyInstance$ ;
1427
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1428
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1429
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1430
- const didValueChange = newVal !== oldVal && !areBothNaN;
1431
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1432
- // gadzooks! the property's value has changed!!
1433
- // set our new value!
1434
- hostRef.$instanceValues$.set(propName, newVal);
1435
- if (instance) {
1436
- // get an array of method names of watch functions to call
1437
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1438
- const watchMethods = cmpMeta.$watchers$[propName];
1439
- if (watchMethods) {
1440
- // this instance is watching for when this property changed
1441
- watchMethods.map((watchMethodName) => {
1442
- try {
1443
- // fire off each of the watch methods that are watching this property
1444
- instance[watchMethodName](newVal, oldVal, propName);
1445
- }
1446
- catch (e) {
1447
- consoleError(e, elm);
1448
- }
1449
- });
1450
- }
1451
- }
1452
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1453
- // looks like this value actually changed, so we've got work to do!
1454
- // but only if we've already rendered, otherwise just chill out
1455
- // queue that we need to do an update, but don't worry about queuing
1456
- // up millions cuz this function ensures it only runs once
1457
- scheduleUpdate(hostRef, false);
1458
- }
1459
- }
1460
- }
1461
- };
1462
- /**
1463
- * Attach a series of runtime constructs to a compiled Stencil component
1464
- * constructor, including getters and setters for the `@Prop` and `@State`
1465
- * decorators, callbacks for when attributes change, and so on.
1466
- *
1467
- * @param Cstr the constructor for a component that we need to process
1468
- * @param cmpMeta metadata collected previously about the component
1469
- * @param flags a number used to store a series of bit flags
1470
- * @returns a reference to the same constructor passed in (but now mutated)
1471
- */
1472
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1473
- var _a;
1474
- const prototype = Cstr.prototype;
1475
- if (cmpMeta.$members$) {
1476
- if (Cstr.watchers) {
1477
- cmpMeta.$watchers$ = Cstr.watchers;
1478
- }
1479
- // It's better to have a const than two Object.entries()
1480
- const members = Object.entries(cmpMeta.$members$);
1481
- members.map(([memberName, [memberFlags]]) => {
1482
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1483
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1484
- // proxyComponent - prop
1485
- Object.defineProperty(prototype, memberName, {
1486
- get() {
1487
- // proxyComponent, get value
1488
- return getValue(this, memberName);
1489
- },
1490
- set(newValue) {
1491
- // proxyComponent, set value
1492
- setValue(this, memberName, newValue, cmpMeta);
1493
- },
1494
- configurable: true,
1495
- enumerable: true,
1496
- });
1497
- }
1498
- else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1499
- memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1500
- // proxyComponent - method
1501
- Object.defineProperty(prototype, memberName, {
1502
- value(...args) {
1503
- var _a;
1504
- const ref = getHostRef(this);
1505
- return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1506
- },
1507
- });
1508
- }
1509
- });
1510
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1511
- const attrNameToPropName = new Map();
1512
- prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1513
- plt.jmp(() => {
1514
- var _a;
1515
- const propName = attrNameToPropName.get(attrName);
1516
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1517
- // in the case where an attribute was set inline.
1518
- // ```html
1519
- // <my-component some-attribute="some-value"></my-component>
1520
- // ```
1521
- //
1522
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1523
- // programmatically changes it before it has been upgraded as shown below:
1524
- //
1525
- // ```html
1526
- // <!-- this component has _not_ been upgraded yet -->
1527
- // <my-component id="test" some-attribute="some-value"></my-component>
1528
- // <script>
1529
- // // grab non-upgraded component
1530
- // el = document.querySelector("#test");
1531
- // el.someAttribute = "another-value";
1532
- // // upgrade component
1533
- // customElements.define('my-component', MyComponent);
1534
- // </script>
1535
- // ```
1536
- // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1537
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1538
- // to the value that was set inline i.e. "some-value" from above example. When
1539
- // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1540
- //
1541
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1542
- // by connectedCallback as this attributeChangedCallback will not fire.
1543
- //
1544
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1545
- //
1546
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1547
- // properties here given that this goes against best practices outlined here
1548
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1549
- if (this.hasOwnProperty(propName)) {
1550
- newValue = this[propName];
1551
- delete this[propName];
1552
- }
1553
- else if (prototype.hasOwnProperty(propName) &&
1554
- typeof this[propName] === 'number' &&
1555
- this[propName] == newValue) {
1556
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1557
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1558
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1559
- return;
1560
- }
1561
- else if (propName == null) {
1562
- // At this point we should know this is not a "member", so we can treat it like watching an attribute
1563
- // on a vanilla web component
1564
- const hostRef = getHostRef(this);
1565
- const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1566
- // We only want to trigger the callback(s) if:
1567
- // 1. The instance is ready
1568
- // 2. The watchers are ready
1569
- // 3. The value has changed
1570
- if (flags &&
1571
- !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1572
- flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1573
- newValue !== oldValue) {
1574
- const instance = hostRef.$lazyInstance$ ;
1575
- const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1576
- entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1577
- if (instance[callbackName] != null) {
1578
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1579
- }
1580
- });
1581
- }
1582
- return;
1583
- }
1584
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1585
- });
1586
- };
1587
- // Create an array of attributes to observe
1588
- // This list in comprised of all strings used within a `@Watch()` decorator
1589
- // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1590
- // As such, there is no way to guarantee type-safety here that a user hasn't entered
1591
- // an invalid attribute.
1592
- Cstr.observedAttributes = Array.from(new Set([
1593
- ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1594
- ...members
1595
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1596
- .map(([propName, m]) => {
1597
- var _a;
1598
- const attrName = m[1] || propName;
1599
- attrNameToPropName.set(attrName, propName);
1600
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1601
- (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1602
- }
1603
- return attrName;
1604
- }),
1605
- ]));
1606
- }
1607
- }
1608
- return Cstr;
1609
- };
1610
- /**
1611
- * Initialize a Stencil component given a reference to its host element, its
1612
- * runtime bookkeeping data structure, runtime metadata about the component,
1613
- * and (optionally) an HMR version ID.
1614
- *
1615
- * @param elm a host element
1616
- * @param hostRef the element's runtime bookkeeping object
1617
- * @param cmpMeta runtime metadata for the Stencil component
1618
- * @param hmrVersionId an (optional) HMR version ID
1619
- */
1620
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1621
- let Cstr;
1622
- // initializeComponent
1623
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1624
- // Let the runtime know that the component has been initialized
1625
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1626
- const bundleId = cmpMeta.$lazyBundleId$;
1627
- if (bundleId) {
1628
- // lazy loaded components
1629
- // request the component's implementation to be
1630
- // wired up with the host element
1631
- Cstr = loadModule(cmpMeta);
1632
- if (Cstr.then) {
1633
- // Await creates a micro-task avoid if possible
1634
- const endLoad = uniqueTime();
1635
- Cstr = await Cstr;
1636
- endLoad();
1637
- }
1638
- if (!Cstr.isProxied) {
1639
- // we've never proxied this Constructor before
1640
- // let's add the getters/setters to its prototype before
1641
- // the first time we create an instance of the implementation
1642
- {
1643
- cmpMeta.$watchers$ = Cstr.watchers;
1644
- }
1645
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1646
- Cstr.isProxied = true;
1647
- }
1648
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1649
- // ok, time to construct the instance
1650
- // but let's keep track of when we start and stop
1651
- // so that the getters/setters don't incorrectly step on data
1652
- {
1653
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1654
- }
1655
- // construct the lazy-loaded component implementation
1656
- // passing the hostRef is very important during
1657
- // construction in order to directly wire together the
1658
- // host element and the lazy-loaded instance
1659
- try {
1660
- new Cstr(hostRef);
1661
- }
1662
- catch (e) {
1663
- consoleError(e);
1664
- }
1665
- {
1666
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1667
- }
1668
- {
1669
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1670
- }
1671
- endNewInstance();
1672
- fireConnectedCallback(hostRef.$lazyInstance$);
1673
- }
1674
- else {
1675
- // sync constructor component
1676
- Cstr = elm.constructor;
1677
- // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
1678
- // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
1679
- // Stencil has completed instantiating the component.
1680
- customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
1681
- }
1682
- if (Cstr.style) {
1683
- // this component has styles but we haven't registered them yet
1684
- let style = Cstr.style;
1685
- const scopeId = getScopeId(cmpMeta);
1686
- if (!styles.has(scopeId)) {
1687
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1688
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1689
- endRegisterStyles();
1690
- }
1691
- }
1692
- }
1693
- // we've successfully created a lazy instance
1694
- const ancestorComponent = hostRef.$ancestorComponent$;
1695
- const schedule = () => scheduleUpdate(hostRef, true);
1696
- if (ancestorComponent && ancestorComponent['s-rc']) {
1697
- // this is the initial load and this component it has an ancestor component
1698
- // but the ancestor component has NOT fired its will update lifecycle yet
1699
- // so let's just cool our jets and wait for the ancestor to continue first
1700
- // this will get fired off when the ancestor component
1701
- // finally gets around to rendering its lazy self
1702
- // fire off the initial update
1703
- ancestorComponent['s-rc'].push(schedule);
1704
- }
1705
- else {
1706
- schedule();
1707
- }
1708
- };
1709
- const fireConnectedCallback = (instance) => {
1710
- {
1711
- safeCall(instance, 'connectedCallback');
1712
- }
1713
- };
1714
- const connectedCallback = (elm) => {
1715
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1716
- const hostRef = getHostRef(elm);
1717
- const cmpMeta = hostRef.$cmpMeta$;
1718
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1719
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1720
- // first time this component has connected
1721
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1722
- {
1723
- // find the first ancestor component (if there is one) and register
1724
- // this component as one of the actively loading child components for its ancestor
1725
- let ancestorComponent = elm;
1726
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1727
- // climb up the ancestors looking for the first
1728
- // component that hasn't finished its lifecycle update yet
1729
- if (ancestorComponent['s-p']) {
1730
- // we found this components first ancestor component
1731
- // keep a reference to this component's ancestor component
1732
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1733
- break;
1734
- }
1735
- }
1736
- }
1737
- // Lazy properties
1738
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1739
- if (cmpMeta.$members$) {
1740
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1741
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1742
- const value = elm[memberName];
1743
- delete elm[memberName];
1744
- elm[memberName] = value;
1745
- }
1746
- });
1747
- }
1748
- {
1749
- initializeComponent(elm, hostRef, cmpMeta);
1750
- }
1751
- }
1752
- else {
1753
- // not the first time this has connected
1754
- // reattach any event listeners to the host
1755
- // since they would have been removed when disconnected
1756
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1757
- // fire off connectedCallback() on component instance
1758
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1759
- fireConnectedCallback(hostRef.$lazyInstance$);
1760
- }
1761
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1762
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1763
- }
1764
- }
1765
- endConnected();
1766
- }
1767
- };
1768
- const disconnectInstance = (instance) => {
1769
- {
1770
- safeCall(instance, 'disconnectedCallback');
1771
- }
1772
- };
1773
- const disconnectedCallback = async (elm) => {
1774
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1775
- const hostRef = getHostRef(elm);
1776
- {
1777
- if (hostRef.$rmListeners$) {
1778
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1779
- hostRef.$rmListeners$ = undefined;
1780
- }
1781
- }
1782
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1783
- disconnectInstance(hostRef.$lazyInstance$);
1784
- }
1785
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1786
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1787
- }
1788
- }
1789
- };
1790
- /**
1791
- * Patches the `appendChild` method on a `scoped` Stencil component.
1792
- * The patch will attempt to find a slot with the same name as the node being appended
1793
- * and insert it into the slot reference if found. Otherwise, it falls-back to the original
1794
- * `appendChild` method.
1795
- *
1796
- * @param HostElementPrototype The Stencil component to be patched
1797
- */
1798
- const patchSlotAppendChild = (HostElementPrototype) => {
1799
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1800
- HostElementPrototype.appendChild = function (newChild) {
1801
- const slotName = (newChild['s-sn'] = getSlotName(newChild));
1802
- const slotNode = getHostSlotNode(this.childNodes, slotName);
1803
- if (slotNode) {
1804
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1805
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1806
- const insertedNode = appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);
1807
- // Check if there is fallback content that should be hidden
1808
- updateFallbackSlotVisibility(this);
1809
- return insertedNode;
1810
- }
1811
- return this.__appendChild(newChild);
1812
- };
1813
- };
1814
- /**
1815
- * Patches the text content of an unnamed slotted node inside a scoped component
1816
- * @param hostElementPrototype the `Element` to be patched
1817
- */
1818
- const patchTextContent = (hostElementPrototype) => {
1819
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, 'textContent');
1820
- Object.defineProperty(hostElementPrototype, '__textContent', descriptor);
1821
- {
1822
- Object.defineProperty(hostElementPrototype, 'textContent', {
1823
- get() {
1824
- var _a;
1825
- // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is
1826
- // the empty string
1827
- const slotNode = getHostSlotNode(this.childNodes, '');
1828
- // when a slot node is found, the textContent _may_ be found in the next sibling (text) node, depending on how
1829
- // nodes were reordered during the vdom render. first try to get the text content from the sibling.
1830
- if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* NODE_TYPES.TEXT_NODE */) {
1831
- return slotNode.nextSibling.textContent;
1832
- }
1833
- else if (slotNode) {
1834
- return slotNode.textContent;
1835
- }
1836
- else {
1837
- // fallback to the original implementation
1838
- return this.__textContent;
1839
- }
1840
- },
1841
- set(value) {
1842
- var _a;
1843
- // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is
1844
- // the empty string
1845
- const slotNode = getHostSlotNode(this.childNodes, '');
1846
- // when a slot node is found, the textContent _may_ need to be placed in the next sibling (text) node,
1847
- // depending on how nodes were reordered during the vdom render. first try to set the text content on the
1848
- // sibling.
1849
- if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* NODE_TYPES.TEXT_NODE */) {
1850
- slotNode.nextSibling.textContent = value;
1851
- }
1852
- else if (slotNode) {
1853
- slotNode.textContent = value;
1854
- }
1855
- else {
1856
- // we couldn't find a slot, but that doesn't mean that there isn't one. if this check ran before the DOM
1857
- // loaded, we could have missed it. check for a content reference element on the scoped component and insert
1858
- // it there
1859
- this.__textContent = value;
1860
- const contentRefElm = this['s-cr'];
1861
- if (contentRefElm) {
1862
- this.insertBefore(contentRefElm, this.firstChild);
1863
- }
1864
- }
1865
- },
1866
- });
1867
- }
1868
- };
1869
- const patchChildSlotNodes = (elm, cmpMeta) => {
1870
- class FakeNodeList extends Array {
1871
- item(n) {
1872
- return this[n];
1873
- }
1874
- }
1875
- // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1876
- if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
1877
- const childNodesFn = elm.__lookupGetter__('childNodes');
1878
- Object.defineProperty(elm, 'children', {
1879
- get() {
1880
- return this.childNodes.map((n) => n.nodeType === 1);
1881
- },
1882
- });
1883
- Object.defineProperty(elm, 'childElementCount', {
1884
- get() {
1885
- return elm.children.length;
1886
- },
1887
- });
1888
- Object.defineProperty(elm, 'childNodes', {
1889
- get() {
1890
- const childNodes = childNodesFn.call(this);
1891
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0 &&
1892
- getHostRef(this).$flags$ & 2 /* HOST_FLAGS.hasRendered */) {
1893
- const result = new FakeNodeList();
1894
- for (let i = 0; i < childNodes.length; i++) {
1895
- const slot = childNodes[i]['s-nr'];
1896
- if (slot) {
1897
- result.push(slot);
1898
- }
1899
- }
1900
- return result;
1901
- }
1902
- return FakeNodeList.from(childNodes);
1903
- },
1904
- });
1905
- }
1906
- };
1907
- const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
1908
- /**
1909
- * Recursively searches a series of child nodes for a slot with the provided name.
1910
- * @param childNodes the nodes to search for a slot with a specific name.
1911
- * @param slotName the name of the slot to match on.
1912
- * @returns a reference to the slot node that matches the provided name, `null` otherwise
1913
- */
1914
- const getHostSlotNode = (childNodes, slotName) => {
1915
- let i = 0;
1916
- let childNode;
1917
- for (; i < childNodes.length; i++) {
1918
- childNode = childNodes[i];
1919
- if (childNode['s-sr'] && childNode['s-sn'] === slotName) {
1920
- return childNode;
1921
- }
1922
- childNode = getHostSlotNode(childNode.childNodes, slotName);
1923
- if (childNode) {
1924
- return childNode;
1925
- }
1926
- }
1927
- return null;
1928
- };
1929
- const getHostSlotChildNodes = (n, slotName) => {
1930
- const childNodes = [n];
1931
- while ((n = n.nextSibling) && n['s-sn'] === slotName) {
1932
- childNodes.push(n);
1933
- }
1934
- return childNodes;
1935
- };
1936
- const bootstrapLazy = (lazyBundles, options = {}) => {
1937
- var _a;
1938
- const endBootstrap = createTime();
1939
- const cmpTags = [];
1940
- const exclude = options.exclude || [];
1941
- const customElements = win.customElements;
1942
- const head = doc.head;
1943
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1944
- const dataStyles = /*@__PURE__*/ doc.createElement('style');
1945
- const deferredConnectedCallbacks = [];
1946
- let appLoadFallback;
1947
- let isBootstrapping = true;
1948
- Object.assign(plt, options);
1949
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1950
- let hasSlotRelocation = false;
1951
- lazyBundles.map((lazyBundle) => {
1952
- lazyBundle[1].map((compactMeta) => {
1953
- var _a;
1954
- const cmpMeta = {
1955
- $flags$: compactMeta[0],
1956
- $tagName$: compactMeta[1],
1957
- $members$: compactMeta[2],
1958
- $listeners$: compactMeta[3],
1959
- };
1960
- // Check if we are using slots outside the shadow DOM in this component.
1961
- // We'll use this information later to add styles for `slot-fb` elements
1962
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1963
- hasSlotRelocation = true;
1964
- }
1965
- {
1966
- cmpMeta.$members$ = compactMeta[2];
1967
- }
1968
- {
1969
- cmpMeta.$listeners$ = compactMeta[3];
1970
- }
1971
- {
1972
- cmpMeta.$attrsToReflect$ = [];
1973
- }
1974
- {
1975
- cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
1976
- }
1977
- const tagName = cmpMeta.$tagName$;
1978
- const HostElement = class extends HTMLElement {
1979
- // StencilLazyHost
1980
- constructor(self) {
1981
- // @ts-ignore
1982
- super(self);
1983
- self = this;
1984
- registerHost(self, cmpMeta);
1985
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1986
- // this component is using shadow dom
1987
- // and this browser supports shadow dom
1988
- // add the read-only property "shadowRoot" to the host element
1989
- // adding the shadow root build conditionals to minimize runtime
1990
- {
1991
- {
1992
- self.attachShadow({ mode: 'open' });
1993
- }
1994
- }
1995
- }
1996
- }
1997
- connectedCallback() {
1998
- if (appLoadFallback) {
1999
- clearTimeout(appLoadFallback);
2000
- appLoadFallback = null;
2001
- }
2002
- if (isBootstrapping) {
2003
- // connectedCallback will be processed once all components have been registered
2004
- deferredConnectedCallbacks.push(this);
2005
- }
2006
- else {
2007
- plt.jmp(() => connectedCallback(this));
2008
- }
2009
- }
2010
- disconnectedCallback() {
2011
- plt.jmp(() => disconnectedCallback(this));
2012
- }
2013
- componentOnReady() {
2014
- return getHostRef(this).$onReadyPromise$;
2015
- }
2016
- };
2017
- // TODO(STENCIL-914): this check and `else` block can go away and be replaced by just the `scoped` check
2018
- {
2019
- {
2020
- patchChildSlotNodes(HostElement.prototype, cmpMeta);
2021
- }
2022
- {
2023
- patchSlotAppendChild(HostElement.prototype);
2024
- }
2025
- if (cmpMeta.$flags$ & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
2026
- patchTextContent(HostElement.prototype);
2027
- }
2028
- }
2029
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2030
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2031
- cmpTags.push(tagName);
2032
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
2033
- }
2034
- });
2035
- });
2036
- // Only bother generating CSS if we have components
2037
- // TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
2038
- if (cmpTags.length > 0) {
2039
- // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
2040
- if (hasSlotRelocation) {
2041
- dataStyles.textContent += SLOT_FB_CSS;
2042
- }
2043
- // Add hydration styles
2044
- {
2045
- dataStyles.textContent += cmpTags + HYDRATED_CSS;
2046
- }
2047
- // If we have styles, add them to the DOM
2048
- if (dataStyles.innerHTML.length) {
2049
- dataStyles.setAttribute('data-styles', '');
2050
- // Apply CSP nonce to the style tag if it exists
2051
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2052
- if (nonce != null) {
2053
- dataStyles.setAttribute('nonce', nonce);
2054
- }
2055
- // Insert the styles into the document head
2056
- // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
2057
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2058
- }
2059
- }
2060
- // Process deferred connectedCallbacks now all components have been registered
2061
- isBootstrapping = false;
2062
- if (deferredConnectedCallbacks.length) {
2063
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2064
- }
2065
- else {
2066
- {
2067
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2068
- }
2069
- }
2070
- // Fallback appLoad event
2071
- endBootstrap();
2072
- };
2073
- const Fragment = (_, children) => children;
2074
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2075
- if (listeners) {
2076
- listeners.map(([flags, name, method]) => {
2077
- const target = getHostListenerTarget(elm, flags) ;
2078
- const handler = hostListenerProxy(hostRef, method);
2079
- const opts = hostListenerOpts(flags);
2080
- plt.ael(target, name, handler, opts);
2081
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2082
- });
2083
- }
2084
- };
2085
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
2086
- try {
2087
- {
2088
- if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
2089
- // instance is ready, let's call it's member method for this event
2090
- hostRef.$lazyInstance$[methodName](ev);
2091
- }
2092
- else {
2093
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2094
- }
2095
- }
2096
- }
2097
- catch (e) {
2098
- consoleError(e);
2099
- }
2100
- };
2101
- const getHostListenerTarget = (elm, flags) => {
2102
- if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
2103
- return win;
2104
- return elm;
2105
- };
2106
- // prettier-ignore
2107
- const hostListenerOpts = (flags) => supportsListenerOptions
2108
- ? ({
2109
- passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,
2110
- capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,
2111
- })
2112
- : (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2113
- /**
2114
- * Assigns the given value to the nonce property on the runtime platform object.
2115
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2116
- * @param nonce The value to be assigned to the platform nonce property.
2117
- * @returns void
2118
- */
2119
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
2120
- /**
2121
- * A WeakMap mapping runtime component references to their corresponding host reference
2122
- * instances.
2123
- *
2124
- * **Note**: If we're in an HMR context we need to store a reference to this
2125
- * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
2126
- * to {@link d.HostRef} across HMR updates.
2127
- *
2128
- * This is necessary because when HMR updates for a component are processed by
2129
- * the browser-side dev server client the JS bundle for that component is
2130
- * re-fetched. Since the module containing {@link hostRefs} is included in
2131
- * that bundle, if we do not store a reference to it the new iteration of the
2132
- * component will not have access to the previous hostRef map, leading to a
2133
- * bug where the new version of the component cannot properly initialize.
2134
- */
2135
- const hostRefs = new WeakMap();
2136
- /**
2137
- * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
2138
- *
2139
- * @param ref the runtime ref of interest
2140
- * @returns the Host reference (if found) or undefined
2141
- */
2142
- const getHostRef = (ref) => hostRefs.get(ref);
2143
- /**
2144
- * Register a lazy instance with the {@link hostRefs} object so it's
2145
- * corresponding {@link d.HostRef} can be retrieved later.
2146
- *
2147
- * @param lazyInstance the lazy instance of interest
2148
- * @param hostRef that instances `HostRef` object
2149
- * @returns a reference to the host ref WeakMap
2150
- */
2151
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2152
- /**
2153
- * Register a host element for a Stencil component, setting up various metadata
2154
- * and callbacks based on {@link BUILD} flags as well as the component's runtime
2155
- * metadata.
2156
- *
2157
- * @param hostElement the host element to register
2158
- * @param cmpMeta runtime metadata for that component
2159
- * @returns a reference to the host ref WeakMap
2160
- */
2161
- const registerHost = (hostElement, cmpMeta) => {
2162
- const hostRef = {
2163
- $flags$: 0,
2164
- $hostElement$: hostElement,
2165
- $cmpMeta$: cmpMeta,
2166
- $instanceValues$: new Map(),
2167
- };
2168
- {
2169
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2170
- }
2171
- {
2172
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2173
- hostElement['s-p'] = [];
2174
- hostElement['s-rc'] = [];
2175
- }
2176
- addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
2177
- return hostRefs.set(hostElement, hostRef);
2178
- };
2179
- const isMemberInElement = (elm, memberName) => memberName in elm;
2180
- const consoleError = (e, el) => (0, console.error)(e, el);
2181
- const cmpModules = /*@__PURE__*/ new Map();
2182
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2183
- // loadModuleImport
2184
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2185
- const bundleId = cmpMeta.$lazyBundleId$;
2186
- const module = cmpModules.get(bundleId) ;
2187
- if (module) {
2188
- return module[exportName];
2189
- }
2190
-
2191
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2192
- const processMod = importedModule => {
2193
- cmpModules.set(bundleId, importedModule);
2194
- return importedModule[exportName];
2195
- }
2196
- switch(bundleId) {
2197
-
2198
- case 'ix-playground-internal':
2199
- return import(
2200
- /* webpackMode: "lazy" */
2201
- './ix-playground-internal.entry.js').then(processMod, consoleError);
2202
- case 'ix-action-card':
2203
- return import(
2204
- /* webpackMode: "lazy" */
2205
- './ix-action-card.entry.js').then(processMod, consoleError);
2206
- case 'ix-application':
2207
- return import(
2208
- /* webpackMode: "lazy" */
2209
- './ix-application.entry.js').then(processMod, consoleError);
2210
- case 'ix-application-sidebar':
2211
- return import(
2212
- /* webpackMode: "lazy" */
2213
- './ix-application-sidebar.entry.js').then(processMod, consoleError);
2214
- case 'ix-application-switch-modal':
2215
- return import(
2216
- /* webpackMode: "lazy" */
2217
- './ix-application-switch-modal.entry.js').then(processMod, consoleError);
2218
- case 'ix-basic-navigation':
2219
- return import(
2220
- /* webpackMode: "lazy" */
2221
- './ix-basic-navigation.entry.js').then(processMod, consoleError);
2222
- case 'ix-blind':
2223
- return import(
2224
- /* webpackMode: "lazy" */
2225
- './ix-blind.entry.js').then(processMod, consoleError);
2226
- case 'ix-breadcrumb':
2227
- return import(
2228
- /* webpackMode: "lazy" */
2229
- './ix-breadcrumb.entry.js').then(processMod, consoleError);
2230
- case 'ix-card-list':
2231
- return import(
2232
- /* webpackMode: "lazy" */
2233
- './ix-card-list.entry.js').then(processMod, consoleError);
2234
- case 'ix-category-filter':
2235
- return import(
2236
- /* webpackMode: "lazy" */
2237
- './ix-category-filter.entry.js').then(processMod, consoleError);
2238
- case 'ix-chip':
2239
- return import(
2240
- /* webpackMode: "lazy" */
2241
- './ix-chip.entry.js').then(processMod, consoleError);
2242
- case 'ix-content':
2243
- return import(
2244
- /* webpackMode: "lazy" */
2245
- './ix-content.entry.js').then(processMod, consoleError);
2246
- case 'ix-content-header':
2247
- return import(
2248
- /* webpackMode: "lazy" */
2249
- './ix-content-header.entry.js').then(processMod, consoleError);
2250
- case 'ix-css-grid':
2251
- return import(
2252
- /* webpackMode: "lazy" */
2253
- './ix-css-grid.entry.js').then(processMod, consoleError);
2254
- case 'ix-css-grid-item':
2255
- return import(
2256
- /* webpackMode: "lazy" */
2257
- './ix-css-grid-item.entry.js').then(processMod, consoleError);
2258
- case 'ix-date-dropdown':
2259
- return import(
2260
- /* webpackMode: "lazy" */
2261
- './ix-date-dropdown.entry.js').then(processMod, consoleError);
2262
- case 'ix-datetime-picker':
2263
- return import(
2264
- /* webpackMode: "lazy" */
2265
- './ix-datetime-picker.entry.js').then(processMod, consoleError);
2266
- case 'ix-drawer':
2267
- return import(
2268
- /* webpackMode: "lazy" */
2269
- './ix-drawer.entry.js').then(processMod, consoleError);
2270
- case 'ix-dropdown-button':
2271
- return import(
2272
- /* webpackMode: "lazy" */
2273
- './ix-dropdown-button.entry.js').then(processMod, consoleError);
2274
- case 'ix-dropdown-header':
2275
- return import(
2276
- /* webpackMode: "lazy" */
2277
- './ix-dropdown-header.entry.js').then(processMod, consoleError);
2278
- case 'ix-dropdown-quick-actions':
2279
- return import(
2280
- /* webpackMode: "lazy" */
2281
- './ix-dropdown-quick-actions.entry.js').then(processMod, consoleError);
2282
- case 'ix-empty-state':
2283
- return import(
2284
- /* webpackMode: "lazy" */
2285
- './ix-empty-state.entry.js').then(processMod, consoleError);
2286
- case 'ix-event-list':
2287
- return import(
2288
- /* webpackMode: "lazy" */
2289
- './ix-event-list.entry.js').then(processMod, consoleError);
2290
- case 'ix-event-list-item':
2291
- return import(
2292
- /* webpackMode: "lazy" */
2293
- './ix-event-list-item.entry.js').then(processMod, consoleError);
2294
- case 'ix-expanding-search':
2295
- return import(
2296
- /* webpackMode: "lazy" */
2297
- './ix-expanding-search.entry.js').then(processMod, consoleError);
2298
- case 'ix-flip-tile':
2299
- return import(
2300
- /* webpackMode: "lazy" */
2301
- './ix-flip-tile.entry.js').then(processMod, consoleError);
2302
- case 'ix-flip-tile-content':
2303
- return import(
2304
- /* webpackMode: "lazy" */
2305
- './ix-flip-tile-content.entry.js').then(processMod, consoleError);
2306
- case 'ix-form-field':
2307
- return import(
2308
- /* webpackMode: "lazy" */
2309
- './ix-form-field.entry.js').then(processMod, consoleError);
2310
- case 'ix-group':
2311
- return import(
2312
- /* webpackMode: "lazy" */
2313
- './ix-group.entry.js').then(processMod, consoleError);
2314
- case 'ix-icon-toggle-button':
2315
- return import(
2316
- /* webpackMode: "lazy" */
2317
- './ix-icon-toggle-button.entry.js').then(processMod, consoleError);
2318
- case 'ix-input-group':
2319
- return import(
2320
- /* webpackMode: "lazy" */
2321
- './ix-input-group.entry.js').then(processMod, consoleError);
2322
- case 'ix-key-value':
2323
- return import(
2324
- /* webpackMode: "lazy" */
2325
- './ix-key-value.entry.js').then(processMod, consoleError);
2326
- case 'ix-key-value-list':
2327
- return import(
2328
- /* webpackMode: "lazy" */
2329
- './ix-key-value-list.entry.js').then(processMod, consoleError);
2330
- case 'ix-kpi':
2331
- return import(
2332
- /* webpackMode: "lazy" */
2333
- './ix-kpi.entry.js').then(processMod, consoleError);
2334
- case 'ix-link-button':
2335
- return import(
2336
- /* webpackMode: "lazy" */
2337
- './ix-link-button.entry.js').then(processMod, consoleError);
2338
- case 'ix-map-navigation':
2339
- return import(
2340
- /* webpackMode: "lazy" */
2341
- './ix-map-navigation.entry.js').then(processMod, consoleError);
2342
- case 'ix-menu':
2343
- return import(
2344
- /* webpackMode: "lazy" */
2345
- './ix-menu.entry.js').then(processMod, consoleError);
2346
- case 'ix-menu-about':
2347
- return import(
2348
- /* webpackMode: "lazy" */
2349
- './ix-menu-about.entry.js').then(processMod, consoleError);
2350
- case 'ix-menu-about-item':
2351
- return import(
2352
- /* webpackMode: "lazy" */
2353
- './ix-menu-about-item.entry.js').then(processMod, consoleError);
2354
- case 'ix-menu-about-news':
2355
- return import(
2356
- /* webpackMode: "lazy" */
2357
- './ix-menu-about-news.entry.js').then(processMod, consoleError);
2358
- case 'ix-menu-avatar':
2359
- return import(
2360
- /* webpackMode: "lazy" */
2361
- './ix-menu-avatar.entry.js').then(processMod, consoleError);
2362
- case 'ix-menu-category':
2363
- return import(
2364
- /* webpackMode: "lazy" */
2365
- './ix-menu-category.entry.js').then(processMod, consoleError);
2366
- case 'ix-menu-settings':
2367
- return import(
2368
- /* webpackMode: "lazy" */
2369
- './ix-menu-settings.entry.js').then(processMod, consoleError);
2370
- case 'ix-menu-settings-item':
2371
- return import(
2372
- /* webpackMode: "lazy" */
2373
- './ix-menu-settings-item.entry.js').then(processMod, consoleError);
2374
- case 'ix-message-bar':
2375
- return import(
2376
- /* webpackMode: "lazy" */
2377
- './ix-message-bar.entry.js').then(processMod, consoleError);
2378
- case 'ix-modal':
2379
- return import(
2380
- /* webpackMode: "lazy" */
2381
- './ix-modal.entry.js').then(processMod, consoleError);
2382
- case 'ix-modal-example':
2383
- return import(
2384
- /* webpackMode: "lazy" */
2385
- './ix-modal-example.entry.js').then(processMod, consoleError);
2386
- case 'ix-modal-footer':
2387
- return import(
2388
- /* webpackMode: "lazy" */
2389
- './ix-modal-footer.entry.js').then(processMod, consoleError);
2390
- case 'ix-modal-loading':
2391
- return import(
2392
- /* webpackMode: "lazy" */
2393
- './ix-modal-loading.entry.js').then(processMod, consoleError);
2394
- case 'ix-pagination':
2395
- return import(
2396
- /* webpackMode: "lazy" */
2397
- './ix-pagination.entry.js').then(processMod, consoleError);
2398
- case 'ix-pane':
2399
- return import(
2400
- /* webpackMode: "lazy" */
2401
- './ix-pane.entry.js').then(processMod, consoleError);
2402
- case 'ix-pane-layout':
2403
- return import(
2404
- /* webpackMode: "lazy" */
2405
- './ix-pane-layout.entry.js').then(processMod, consoleError);
2406
- case 'ix-pill':
2407
- return import(
2408
- /* webpackMode: "lazy" */
2409
- './ix-pill.entry.js').then(processMod, consoleError);
2410
- case 'ix-push-card':
2411
- return import(
2412
- /* webpackMode: "lazy" */
2413
- './ix-push-card.entry.js').then(processMod, consoleError);
2414
- case 'ix-slider':
2415
- return import(
2416
- /* webpackMode: "lazy" */
2417
- './ix-slider.entry.js').then(processMod, consoleError);
2418
- case 'ix-split-button':
2419
- return import(
2420
- /* webpackMode: "lazy" */
2421
- './ix-split-button.entry.js').then(processMod, consoleError);
2422
- case 'ix-split-button-item':
2423
- return import(
2424
- /* webpackMode: "lazy" */
2425
- './ix-split-button-item.entry.js').then(processMod, consoleError);
2426
- case 'ix-tile':
2427
- return import(
2428
- /* webpackMode: "lazy" */
2429
- './ix-tile.entry.js').then(processMod, consoleError);
2430
- case 'ix-toast-container':
2431
- return import(
2432
- /* webpackMode: "lazy" */
2433
- './ix-toast-container.entry.js').then(processMod, consoleError);
2434
- case 'ix-toggle':
2435
- return import(
2436
- /* webpackMode: "lazy" */
2437
- './ix-toggle.entry.js').then(processMod, consoleError);
2438
- case 'ix-toggle-button':
2439
- return import(
2440
- /* webpackMode: "lazy" */
2441
- './ix-toggle-button.entry.js').then(processMod, consoleError);
2442
- case 'ix-tree':
2443
- return import(
2444
- /* webpackMode: "lazy" */
2445
- './ix-tree.entry.js').then(processMod, consoleError);
2446
- case 'ix-upload':
2447
- return import(
2448
- /* webpackMode: "lazy" */
2449
- './ix-upload.entry.js').then(processMod, consoleError);
2450
- case 'ix-validation-tooltip':
2451
- return import(
2452
- /* webpackMode: "lazy" */
2453
- './ix-validation-tooltip.entry.js').then(processMod, consoleError);
2454
- case 'ix-workflow-step':
2455
- return import(
2456
- /* webpackMode: "lazy" */
2457
- './ix-workflow-step.entry.js').then(processMod, consoleError);
2458
- case 'ix-workflow-steps':
2459
- return import(
2460
- /* webpackMode: "lazy" */
2461
- './ix-workflow-steps.entry.js').then(processMod, consoleError);
2462
- case 'ix-avatar_2':
2463
- return import(
2464
- /* webpackMode: "lazy" */
2465
- './ix-avatar_2.entry.js').then(processMod, consoleError);
2466
- case 'ix-breadcrumb-item':
2467
- return import(
2468
- /* webpackMode: "lazy" */
2469
- './ix-breadcrumb-item.entry.js').then(processMod, consoleError);
2470
- case 'ix-card-accordion_2':
2471
- return import(
2472
- /* webpackMode: "lazy" */
2473
- './ix-card-accordion_2.entry.js').then(processMod, consoleError);
2474
- case 'ix-group-context-menu_2':
2475
- return import(
2476
- /* webpackMode: "lazy" */
2477
- './ix-group-context-menu_2.entry.js').then(processMod, consoleError);
2478
- case 'ix-map-navigation-overlay':
2479
- return import(
2480
- /* webpackMode: "lazy" */
2481
- './ix-map-navigation-overlay.entry.js').then(processMod, consoleError);
2482
- case 'ix-modal-content_2':
2483
- return import(
2484
- /* webpackMode: "lazy" */
2485
- './ix-modal-content_2.entry.js').then(processMod, consoleError);
2486
- case 'ix-select':
2487
- return import(
2488
- /* webpackMode: "lazy" */
2489
- './ix-select.entry.js').then(processMod, consoleError);
2490
- case 'ix-time-picker':
2491
- return import(
2492
- /* webpackMode: "lazy" */
2493
- './ix-time-picker.entry.js').then(processMod, consoleError);
2494
- case 'ix-toast':
2495
- return import(
2496
- /* webpackMode: "lazy" */
2497
- './ix-toast.entry.js').then(processMod, consoleError);
2498
- case 'ix-tree-item':
2499
- return import(
2500
- /* webpackMode: "lazy" */
2501
- './ix-tree-item.entry.js').then(processMod, consoleError);
2502
- case 'ix-application-header':
2503
- return import(
2504
- /* webpackMode: "lazy" */
2505
- './ix-application-header.entry.js').then(processMod, consoleError);
2506
- case 'ix-col_4':
2507
- return import(
2508
- /* webpackMode: "lazy" */
2509
- './ix-col_4.entry.js').then(processMod, consoleError);
2510
- case 'ix-menu-item':
2511
- return import(
2512
- /* webpackMode: "lazy" */
2513
- './ix-menu-item.entry.js').then(processMod, consoleError);
2514
- case 'ix-filter-chip_2':
2515
- return import(
2516
- /* webpackMode: "lazy" */
2517
- './ix-filter-chip_2.entry.js').then(processMod, consoleError);
2518
- case 'ix-tab-item_2':
2519
- return import(
2520
- /* webpackMode: "lazy" */
2521
- './ix-tab-item_2.entry.js').then(processMod, consoleError);
2522
- case 'ix-card_2':
2523
- return import(
2524
- /* webpackMode: "lazy" */
2525
- './ix-card_2.entry.js').then(processMod, consoleError);
2526
- case 'ix-divider':
2527
- return import(
2528
- /* webpackMode: "lazy" */
2529
- './ix-divider.entry.js').then(processMod, consoleError);
2530
- case 'ix-date-time-card':
2531
- return import(
2532
- /* webpackMode: "lazy" */
2533
- './ix-date-time-card.entry.js').then(processMod, consoleError);
2534
- case 'ix-menu-expand-icon':
2535
- return import(
2536
- /* webpackMode: "lazy" */
2537
- './ix-menu-expand-icon.entry.js').then(processMod, consoleError);
2538
- case 'ix-tooltip':
2539
- return import(
2540
- /* webpackMode: "lazy" */
2541
- './ix-tooltip.entry.js').then(processMod, consoleError);
2542
- case 'ix-dropdown-item':
2543
- return import(
2544
- /* webpackMode: "lazy" */
2545
- './ix-dropdown-item.entry.js').then(processMod, consoleError);
2546
- case 'ix-button':
2547
- return import(
2548
- /* webpackMode: "lazy" */
2549
- './ix-button.entry.js').then(processMod, consoleError);
2550
- case 'ix-dropdown':
2551
- return import(
2552
- /* webpackMode: "lazy" */
2553
- './ix-dropdown.entry.js').then(processMod, consoleError);
2554
- case 'ix-typography':
2555
- return import(
2556
- /* webpackMode: "lazy" */
2557
- './ix-typography.entry.js').then(processMod, consoleError);
2558
- case 'ix-icon-button_2':
2559
- return import(
2560
- /* webpackMode: "lazy" */
2561
- './ix-icon-button_2.entry.js').then(processMod, consoleError);
2562
- }
2563
- }
2564
- return import(
2565
- /* @vite-ignore */
2566
- /* webpackInclude: /\.entry\.js$/ */
2567
- /* webpackExclude: /\.system\.entry\.js$/ */
2568
- /* webpackMode: "lazy" */
2569
- `./${bundleId}.entry.js${''}`).then((importedModule) => {
2570
- {
2571
- cmpModules.set(bundleId, importedModule);
2572
- }
2573
- return importedModule[exportName];
2574
- }, consoleError);
2575
- };
2576
- const styles = /*@__PURE__*/ new Map();
2577
- const win = typeof window !== 'undefined' ? window : {};
2578
- const doc = win.document || { head: {} };
2579
- const plt = {
2580
- $flags$: 0,
2581
- $resourcesUrl$: '',
2582
- jmp: (h) => h(),
2583
- raf: (h) => requestAnimationFrame(h),
2584
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2585
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2586
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
2587
- };
2588
- const supportsListenerOptions = /*@__PURE__*/ (() => {
2589
- let supportsListenerOptions = false;
2590
- try {
2591
- doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
2592
- get() {
2593
- supportsListenerOptions = true;
2594
- },
2595
- }));
2596
- }
2597
- catch (e) { }
2598
- return supportsListenerOptions;
2599
- })();
2600
- const promiseResolve = (v) => Promise.resolve(v);
2601
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2602
- try {
2603
- new CSSStyleSheet();
2604
- return typeof new CSSStyleSheet().replaceSync === 'function';
2605
- }
2606
- catch (e) { }
2607
- return false;
2608
- })()
2609
- ;
2610
- const queueDomReads = [];
2611
- const queueDomWrites = [];
2612
- const queueTask = (queue, write) => (cb) => {
2613
- queue.push(cb);
2614
- if (!queuePending) {
2615
- queuePending = true;
2616
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2617
- nextTick(flush);
2618
- }
2619
- else {
2620
- plt.raf(flush);
2621
- }
2622
- }
2623
- };
2624
- const consume = (queue) => {
2625
- for (let i = 0; i < queue.length; i++) {
2626
- try {
2627
- queue[i](performance.now());
2628
- }
2629
- catch (e) {
2630
- consoleError(e);
2631
- }
2632
- }
2633
- queue.length = 0;
2634
- };
2635
- const flush = () => {
2636
- // always force a bunch of medium callbacks to run, but still have
2637
- // a throttle on how many can run in a certain time
2638
- // DOM READS!!!
2639
- consume(queueDomReads);
2640
- // DOM WRITES!!!
2641
- {
2642
- consume(queueDomWrites);
2643
- if ((queuePending = queueDomReads.length > 0)) {
2644
- // still more to do yet, but we've run out of time
2645
- // let's let this thing cool off and try again in the next tick
2646
- plt.raf(flush);
2647
- }
2648
- }
2649
- };
2650
- const nextTick = (cb) => promiseResolve().then(cb);
2651
- const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
2652
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2653
-
2654
- export { Fragment as F, Host as H, readTask as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2655
-
2656
- //# sourceMappingURL=index-f18c5ad1.js.map