bromcom-ui 2.7.37-rc.0 → 2.7.37-rc.2

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 (704) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/{p-0e480b7b.entry.js → p-02892da0.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-802362ce.entry.js → p-043f3a0d.entry.js} +1 -1
  5. package/dist/bromcom-ui/p-053962ad.entry.js +5 -0
  6. package/dist/bromcom-ui/{p-28e5998b.entry.js → p-0aec8d73.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-1a12fbd0.entry.js → p-0cd7e628.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-0ba73c30.js → p-10caf4ce.js} +1 -1
  9. package/dist/bromcom-ui/{p-384aea58.entry.js → p-13ed55a9.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-b79132b8.entry.js → p-1507f99a.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-83317635.entry.js → p-151d7bec.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-b83dab76.entry.js → p-1a7873c8.entry.js} +1 -1
  13. package/dist/bromcom-ui/p-1dab0ebb.entry.js +5 -0
  14. package/dist/bromcom-ui/{p-4a6777c5.entry.js → p-27d06f30.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-d61b862f.entry.js → p-2806e672.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-6fe3bfd9.entry.js → p-2b332236.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-e4c6d517.entry.js → p-2b346de3.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-2b479251.entry.js +5 -0
  19. package/dist/bromcom-ui/{p-a0a34ab8.entry.js → p-2b7cb17c.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-8631b9b1.entry.js → p-2b91dab0.entry.js} +1 -1
  21. package/dist/bromcom-ui/p-2cca68b4.js +5 -0
  22. package/dist/bromcom-ui/p-2cfa8d1a.js +5 -0
  23. package/dist/bromcom-ui/{p-f164100f.entry.js → p-3455ec3e.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-20fc8571.entry.js → p-34b815f5.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-ad780428.entry.js → p-355e259c.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-154c6135.entry.js → p-35bd1307.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-867ae7b5.entry.js → p-405441b2.entry.js} +1 -1
  28. package/dist/bromcom-ui/p-40aeceda.entry.js +5 -0
  29. package/dist/bromcom-ui/{p-1fed2eec.entry.js → p-41f2ef93.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-444235f5.js +5 -0
  31. package/dist/bromcom-ui/{p-128a5956.js → p-4be4c5bf.js} +1 -1
  32. package/dist/bromcom-ui/p-4c75beb3.entry.js +5 -0
  33. package/dist/bromcom-ui/p-4e0c990d.js +5 -0
  34. package/dist/bromcom-ui/{p-e204cc98.js → p-4f99361a.js} +1 -1
  35. package/dist/bromcom-ui/{p-567d720b.entry.js → p-50c7a3cd.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-522c96a2.js +5 -0
  37. package/dist/bromcom-ui/{p-77206708.entry.js → p-573647ab.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-7fad995d.entry.js → p-591b3100.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-7d45b5b1.entry.js → p-60cee147.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-c7b9b694.entry.js → p-640244fa.entry.js} +1 -1
  41. package/dist/bromcom-ui/p-6ad01d01.entry.js +5 -0
  42. package/dist/bromcom-ui/{p-173ebc98.entry.js → p-6c7eb43f.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-5d5c3b9d.entry.js → p-6caa9460.entry.js} +1 -1
  44. package/dist/bromcom-ui/p-705d248e.entry.js +5 -0
  45. package/dist/bromcom-ui/{p-9ecacdbb.entry.js → p-751c94dd.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-5c86edbe.entry.js → p-75a92b4c.entry.js} +1 -1
  47. package/dist/bromcom-ui/p-75f864ae.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-e6877526.entry.js → p-78d48636.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-1c525c05.entry.js → p-7f065a45.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-2a3a7d9c.entry.js → p-8255f60a.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-44b40c51.entry.js → p-8595742c.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-53a811a5.js → p-8b72bce1.js} +1 -1
  53. package/dist/bromcom-ui/{p-8ede9b12.js → p-93010f03.js} +1 -1
  54. package/dist/bromcom-ui/{p-a876e0ac.entry.js → p-9a78235b.entry.js} +1 -1
  55. package/dist/bromcom-ui/p-9efe118a.entry.js +5 -0
  56. package/dist/bromcom-ui/p-a1c849e7.js +5 -0
  57. package/dist/bromcom-ui/p-a63ba9a2.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-60a735c3.entry.js → p-a8073fed.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-21263f24.entry.js → p-a98aecdf.entry.js} +1 -1
  60. package/dist/bromcom-ui/p-af93c8e6.entry.js +5 -0
  61. package/dist/bromcom-ui/p-b265dd24.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-45903f79.entry.js → p-b2bae44d.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-0843de18.entry.js → p-b2ea4774.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-04b3a72c.entry.js → p-b3a57653.entry.js} +1 -1
  65. package/dist/bromcom-ui/p-b47e5352.entry.js +5 -0
  66. package/dist/bromcom-ui/{p-dbc48ab6.entry.js → p-b4cbf3bd.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-e3306b8d.entry.js → p-b9983e4b.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-6c040eb8.js → p-bc868e9e.js} +1 -1
  69. package/dist/bromcom-ui/{p-12c97616.entry.js → p-bf30bf7f.entry.js} +1 -1
  70. package/dist/bromcom-ui/{p-b1f8a594.entry.js → p-c9a20860.entry.js} +1 -1
  71. package/dist/bromcom-ui/{p-20e22beb.js → p-cd0490e2.js} +1 -1
  72. package/dist/bromcom-ui/{p-fa3d2e70.entry.js → p-d87118f3.entry.js} +1 -1
  73. package/dist/bromcom-ui/p-d8f95e30.entry.js +5 -0
  74. package/dist/bromcom-ui/{p-ebadb877.entry.js → p-d9fb53c9.entry.js} +1 -1
  75. package/dist/bromcom-ui/{p-c627dc35.entry.js → p-db11376b.entry.js} +1 -1
  76. package/dist/bromcom-ui/p-dbb106a4.entry.js +5 -0
  77. package/dist/bromcom-ui/{p-ac7386a1.entry.js → p-e467d49f.entry.js} +1 -1
  78. package/dist/bromcom-ui/{p-a032169e.entry.js → p-ea4f2618.entry.js} +1 -1
  79. package/dist/bromcom-ui/{p-c0dd4386.entry.js → p-ef923122.entry.js} +1 -1
  80. package/dist/bromcom-ui/{p-5aee47f0.entry.js → p-f1b1bb76.entry.js} +1 -1
  81. package/dist/bromcom-ui/p-f2caf9d3.entry.js +5 -0
  82. package/dist/bromcom-ui/{p-d700ef1c.entry.js → p-f374395b.entry.js} +1 -1
  83. package/dist/bromcom-ui/{p-be904c55.js → p-f9cb7ae4.js} +1 -1
  84. package/dist/bromcom-ui/{p-1b5695a9.entry.js → p-fa42b2de.entry.js} +1 -1
  85. package/dist/bromcom-ui/p-fcaba9dd.entry.js +5 -0
  86. package/dist/bromcom-ui/p-fe3e3210.js +5 -0
  87. package/dist/cjs/_commonjsHelpers-bd20f4c0.js +29 -0
  88. package/dist/cjs/bcm-2c51bf0c.js +448 -0
  89. package/dist/cjs/bcm-accordion.cjs.entry.js +85 -0
  90. package/dist/cjs/bcm-alert.cjs.entry.js +112 -0
  91. package/dist/cjs/bcm-attendance.cjs.entry.js +50 -0
  92. package/dist/cjs/bcm-autocomplete.cjs.entry.js +155 -0
  93. package/dist/cjs/bcm-avatar_2.cjs.entry.js +156 -0
  94. package/dist/cjs/bcm-box.cjs.entry.js +35 -0
  95. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +67 -0
  96. package/dist/cjs/bcm-button-group.cjs.entry.js +102 -0
  97. package/dist/cjs/bcm-button_4.cjs.entry.js +995 -0
  98. package/dist/cjs/bcm-card.cjs.entry.js +76 -0
  99. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +409 -0
  100. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2570 -0
  101. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +203 -0
  102. package/dist/cjs/bcm-chip.cjs.entry.js +70 -0
  103. package/dist/cjs/bcm-collapse-group.cjs.entry.js +57 -0
  104. package/dist/cjs/bcm-collapse.cjs.entry.js +58 -0
  105. package/dist/cjs/bcm-colorpicker.cjs.entry.js +433 -0
  106. package/dist/cjs/bcm-date-picker.cjs.entry.js +171 -0
  107. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1432 -0
  108. package/dist/cjs/bcm-default.cjs.entry.js +40 -0
  109. package/dist/cjs/bcm-drawer.cjs.entry.js +111 -0
  110. package/dist/cjs/bcm-dropdown.cjs.entry.js +239 -0
  111. package/dist/cjs/bcm-error-layout.cjs.entry.js +78 -0
  112. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +127 -0
  113. package/dist/cjs/bcm-form-2.cjs.entry.js +206 -0
  114. package/dist/cjs/bcm-form-group.cjs.entry.js +45 -0
  115. package/dist/cjs/bcm-input.cjs.entry.js +325 -0
  116. package/dist/cjs/bcm-item.cjs.entry.js +83 -0
  117. package/dist/cjs/bcm-items.cjs.entry.js +61 -0
  118. package/dist/cjs/bcm-label_2.cjs.entry.js +119 -0
  119. package/dist/cjs/bcm-link.cjs.entry.js +62 -0
  120. package/dist/cjs/bcm-linked.cjs.entry.js +179 -0
  121. package/dist/cjs/bcm-list.cjs.entry.js +1768 -0
  122. package/dist/cjs/bcm-menu.cjs.entry.js +248 -0
  123. package/dist/cjs/bcm-message.cjs.entry.js +99 -0
  124. package/dist/cjs/bcm-notification.cjs.entry.js +103 -0
  125. package/dist/cjs/bcm-old-input.cjs.entry.js +398 -0
  126. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +157 -0
  127. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +122 -0
  128. package/dist/cjs/bcm-popconfirm.cjs.entry.js +112 -0
  129. package/dist/cjs/bcm-popover.cjs.entry.js +182 -0
  130. package/dist/cjs/bcm-progress.cjs.entry.js +174 -0
  131. package/dist/cjs/bcm-radio-group.cjs.entry.js +267 -0
  132. package/dist/cjs/bcm-radio.cjs.entry.js +104 -0
  133. package/dist/cjs/bcm-range.cjs.entry.js +189 -0
  134. package/dist/cjs/bcm-result.cjs.entry.js +79 -0
  135. package/dist/cjs/bcm-search.cjs.entry.js +256 -0
  136. package/dist/cjs/bcm-select-group.cjs.entry.js +31 -0
  137. package/dist/cjs/bcm-select-option.cjs.entry.js +37 -0
  138. package/dist/cjs/bcm-select.cjs.entry.js +1198 -0
  139. package/dist/cjs/bcm-skeleton.cjs.entry.js +56 -0
  140. package/dist/cjs/bcm-step.cjs.entry.js +93 -0
  141. package/dist/cjs/bcm-stepper.cjs.entry.js +211 -0
  142. package/dist/cjs/bcm-switch.cjs.entry.js +139 -0
  143. package/dist/cjs/bcm-tab-group.cjs.entry.js +172 -0
  144. package/dist/cjs/bcm-tab-pane.cjs.entry.js +70 -0
  145. package/dist/cjs/bcm-tab.cjs.entry.js +89 -0
  146. package/dist/cjs/bcm-table.cjs.entry.js +78 -0
  147. package/dist/cjs/bcm-tabs-content.cjs.entry.js +62 -0
  148. package/dist/cjs/bcm-tabs.cjs.entry.js +390 -0
  149. package/dist/cjs/bcm-tag.cjs.entry.js +101 -0
  150. package/dist/cjs/bcm-text.cjs.entry.js +60 -0
  151. package/dist/cjs/bcm-textarea.cjs.entry.js +150 -0
  152. package/dist/cjs/bcm-time-picker.cjs.entry.js +139 -0
  153. package/dist/cjs/bcm-timeline-item.cjs.entry.js +55 -0
  154. package/dist/cjs/bcm-timeline.cjs.entry.js +73 -0
  155. package/dist/cjs/bcm-treeview-group.cjs.entry.js +23 -0
  156. package/dist/cjs/bromcom-ui.cjs.js +24 -0
  157. package/dist/cjs/caption-template-954d34bc.js +34 -0
  158. package/dist/cjs/color-helper-c9882bd8.js +490 -0
  159. package/dist/cjs/colors-56282b00.js +224 -0
  160. package/dist/cjs/datetime-helper-eaf4fadb.js +11 -0
  161. package/dist/cjs/element-dragger-a8562f82.js +279 -0
  162. package/dist/cjs/floating-ui-dae608ba.js +1455 -0
  163. package/dist/cjs/generate-716a328d.js +203 -0
  164. package/dist/cjs/global-b0d21446.js +15 -0
  165. package/dist/cjs/index-9d98aa56.js +1864 -0
  166. package/dist/cjs/index-a2b50e51.js +64 -0
  167. package/dist/cjs/index-f8547ecd.js +193 -0
  168. package/dist/cjs/index.cjs.js +6 -0
  169. package/dist/cjs/input-template-4747050f.js +86 -0
  170. package/dist/cjs/is-load-decorator-65755a67.js +56 -0
  171. package/dist/cjs/json-parse-decarator-b8a37140.js +40 -0
  172. package/dist/cjs/label-template-1ed6a569.js +23 -0
  173. package/dist/cjs/loader.cjs.js +26 -0
  174. package/dist/cjs/number-helper-e62c32d5.js +20 -0
  175. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +161 -0
  176. package/dist/cjs/old-bcm-popover.cjs.entry.js +104 -0
  177. package/dist/cjs/popover-placement-87901bb3.js +98 -0
  178. package/dist/cjs/property-decorators-cb2155ed.js +33 -0
  179. package/dist/cjs/slot-template-2ff0d22a.js +15 -0
  180. package/dist/cjs/stepper-states-1be09180.js +83 -0
  181. package/dist/cjs/string-helper-df40a475.js +134 -0
  182. package/dist/cjs/tooltip-helper-a192b748.js +104 -0
  183. package/dist/cjs/types-3871235f.js +32 -0
  184. package/dist/cjs/types-6eb7e028.js +32 -0
  185. package/dist/cjs/types-cc4adee7.js +19 -0
  186. package/dist/cjs/utils-fc077139.js +131 -0
  187. package/dist/cjs/validators-8f5537d4.js +33 -0
  188. package/dist/collection/collection-manifest.json +95 -0
  189. package/dist/collection/components/atoms/avatar/avatar.css +448 -0
  190. package/dist/collection/components/atoms/avatar/avatar.js +259 -0
  191. package/dist/collection/components/atoms/badge/badge.css +481 -0
  192. package/dist/collection/components/atoms/badge/badge.js +224 -0
  193. package/dist/collection/components/atoms/box/box.js +23 -0
  194. package/dist/collection/components/atoms/button/button.css +637 -0
  195. package/dist/collection/components/atoms/button/button.js +525 -0
  196. package/dist/collection/components/atoms/button/types.js +170 -0
  197. package/dist/collection/components/atoms/chip/chip.css +453 -0
  198. package/dist/collection/components/atoms/chip/chip.js +187 -0
  199. package/dist/collection/components/atoms/divider/divider.css +142 -0
  200. package/dist/collection/components/atoms/divider/divider.js +83 -0
  201. package/dist/collection/components/atoms/icon/icon.css +127 -0
  202. package/dist/collection/components/atoms/icon/icon.js +70 -0
  203. package/dist/collection/components/atoms/label/label.css +408 -0
  204. package/dist/collection/components/atoms/label/label.js +216 -0
  205. package/dist/collection/components/atoms/link/link.css +419 -0
  206. package/dist/collection/components/atoms/link/link.js +176 -0
  207. package/dist/collection/components/atoms/states/button.states.js +31 -0
  208. package/dist/collection/components/atoms/tag/tag.js +334 -0
  209. package/dist/collection/components/atoms/tag/types.js +30 -0
  210. package/dist/collection/components/atoms/typography/typography.js +23 -0
  211. package/dist/collection/components/molecules/accordion/accordion.css +127 -0
  212. package/dist/collection/components/molecules/accordion/accordion.js +129 -0
  213. package/dist/collection/components/molecules/alert/alert.css +191 -0
  214. package/dist/collection/components/molecules/alert/alert.js +298 -0
  215. package/dist/collection/components/molecules/alert/types.js +23 -0
  216. package/dist/collection/components/molecules/breadcrumb/breadcrumb.css +201 -0
  217. package/dist/collection/components/molecules/breadcrumb/breadcrumb.js +155 -0
  218. package/dist/collection/components/molecules/breadcrumb/types.js +5 -0
  219. package/dist/collection/components/molecules/button-group/button-group.css +423 -0
  220. package/dist/collection/components/molecules/button-group/button-group.js +235 -0
  221. package/dist/collection/components/molecules/card/card.css +408 -0
  222. package/dist/collection/components/molecules/card/card.js +128 -0
  223. package/dist/collection/components/molecules/checkbox/checkbox-lite.js +237 -0
  224. package/dist/collection/components/molecules/checkbox/checkbox.css +1280 -0
  225. package/dist/collection/components/molecules/checkbox/checkbox.js +688 -0
  226. package/dist/collection/components/molecules/checkbox/group.css +156 -0
  227. package/dist/collection/components/molecules/checkbox/group.js +779 -0
  228. package/dist/collection/components/molecules/drawer/drawer.css +502 -0
  229. package/dist/collection/components/molecules/drawer/drawer.js +272 -0
  230. package/dist/collection/components/molecules/dropdown/dropdown.css +419 -0
  231. package/dist/collection/components/molecules/dropdown/dropdown.js +857 -0
  232. package/dist/collection/components/molecules/empty/empty.js +44 -0
  233. package/dist/collection/components/molecules/error-layout/error-layout.css +396 -0
  234. package/dist/collection/components/molecules/error-layout/error-layout.js +177 -0
  235. package/dist/collection/components/molecules/error-layout/types.js +5 -0
  236. package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +488 -0
  237. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +322 -0
  238. package/dist/collection/components/molecules/input/input.css +1208 -0
  239. package/dist/collection/components/molecules/input/input.js +1171 -0
  240. package/dist/collection/components/molecules/input/types.js +17 -0
  241. package/dist/collection/components/molecules/item/item.css +446 -0
  242. package/dist/collection/components/molecules/item/item.js +151 -0
  243. package/dist/collection/components/molecules/items/items.js +84 -0
  244. package/dist/collection/components/molecules/linked/linked.js +410 -0
  245. package/dist/collection/components/molecules/menu/menu.css +718 -0
  246. package/dist/collection/components/molecules/menu/menu.js +623 -0
  247. package/dist/collection/components/molecules/message/message.css +165 -0
  248. package/dist/collection/components/molecules/message/message.js +222 -0
  249. package/dist/collection/components/molecules/message/types.js +14 -0
  250. package/dist/collection/components/molecules/modal/modal.css +526 -0
  251. package/dist/collection/components/molecules/modal/modal.js +379 -0
  252. package/dist/collection/components/molecules/notification/notification.css +183 -0
  253. package/dist/collection/components/molecules/notification/notification.js +244 -0
  254. package/dist/collection/components/molecules/notification/types.js +15 -0
  255. package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +563 -0
  256. package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +396 -0
  257. package/dist/collection/components/molecules/popconfirm/popconfirm.css +127 -0
  258. package/dist/collection/components/molecules/popconfirm/popconfirm.js +382 -0
  259. package/dist/collection/components/molecules/popover/popover.js +254 -0
  260. package/dist/collection/components/molecules/progress/progress.css +486 -0
  261. package/dist/collection/components/molecules/progress/progress.js +404 -0
  262. package/dist/collection/components/molecules/progress/types.js +28 -0
  263. package/dist/collection/components/molecules/radio/group.css +798 -0
  264. package/dist/collection/components/molecules/radio/group.js +652 -0
  265. package/dist/collection/components/molecules/radio/radio.css +1280 -0
  266. package/dist/collection/components/molecules/radio/radio.js +291 -0
  267. package/dist/collection/components/molecules/radio/types.js +30 -0
  268. package/dist/collection/components/molecules/range/range.css +570 -0
  269. package/dist/collection/components/molecules/range/range.js +472 -0
  270. package/dist/collection/components/molecules/result/result.css +164 -0
  271. package/dist/collection/components/molecules/result/result.js +143 -0
  272. package/dist/collection/components/molecules/result/types.js +22 -0
  273. package/dist/collection/components/molecules/search/search.css +1208 -0
  274. package/dist/collection/components/molecules/search/search.js +406 -0
  275. package/dist/collection/components/molecules/skeleton/skeleton.js +94 -0
  276. package/dist/collection/components/molecules/states/alert.states.js +25 -0
  277. package/dist/collection/components/molecules/states/checkbox-group.states.js +199 -0
  278. package/dist/collection/components/molecules/states/radio-group.states.js +107 -0
  279. package/dist/collection/components/molecules/states/search.states.js +137 -0
  280. package/dist/collection/components/molecules/states/stepper-states.js +79 -0
  281. package/dist/collection/components/molecules/stepper/step.js +346 -0
  282. package/dist/collection/components/molecules/stepper/stepper.css +617 -0
  283. package/dist/collection/components/molecules/stepper/stepper.js +484 -0
  284. package/dist/collection/components/molecules/switch/switch.css +1272 -0
  285. package/dist/collection/components/molecules/switch/switch.js +716 -0
  286. package/dist/collection/components/molecules/tab-group/tab-group.js +280 -0
  287. package/dist/collection/components/molecules/textarea/textarea.css +1208 -0
  288. package/dist/collection/components/molecules/textarea/textarea.js +731 -0
  289. package/dist/collection/components/molecules/textarea/types.js +13 -0
  290. package/dist/collection/components/molecules/timeline/timeline-item.css +254 -0
  291. package/dist/collection/components/molecules/timeline/timeline-item.js +159 -0
  292. package/dist/collection/components/molecules/timeline/timeline.css +205 -0
  293. package/dist/collection/components/molecules/timeline/timeline.js +125 -0
  294. package/dist/collection/components/molecules/tooltip/tooltip.js +232 -0
  295. package/dist/collection/components/organism/autocomplete/autocomplete.css +168 -0
  296. package/dist/collection/components/organism/autocomplete/autocomplete.js +399 -0
  297. package/dist/collection/components/organism/colorpicker/colorpicker.css +313 -0
  298. package/dist/collection/components/organism/colorpicker/colorpicker.js +774 -0
  299. package/dist/collection/components/organism/colorpicker/static/chess.png +0 -0
  300. package/dist/collection/components/organism/colorpicker/static/color.svg +14 -0
  301. package/dist/collection/components/organism/colorpicker/static/colors.svg +16 -0
  302. package/dist/collection/components/organism/date-picker/date-picker.css +141 -0
  303. package/dist/collection/components/organism/date-picker/date-picker.js +780 -0
  304. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +1429 -0
  305. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +2166 -0
  306. package/dist/collection/components/organism/datetime-picker/types.js +39 -0
  307. package/dist/collection/components/organism/form/form-group.css +131 -0
  308. package/dist/collection/components/organism/form/form-group.js +131 -0
  309. package/dist/collection/components/organism/form/form.css +132 -0
  310. package/dist/collection/components/organism/form/form.js +680 -0
  311. package/dist/collection/components/organism/form-2/bcm-form-components.js +26 -0
  312. package/dist/collection/components/organism/form-2/form-2.css +127 -0
  313. package/dist/collection/components/organism/form-2/form-2.js +329 -0
  314. package/dist/collection/components/organism/list/list-key-control.js +125 -0
  315. package/dist/collection/components/organism/list/list-tag-control.js +172 -0
  316. package/dist/collection/components/organism/list/list.css +2047 -0
  317. package/dist/collection/components/organism/list/list.js +1894 -0
  318. package/dist/collection/components/organism/states/bcm-list2.states.js +532 -0
  319. package/dist/collection/components/organism/time-picker/time-picker.css +141 -0
  320. package/dist/collection/components/organism/time-picker/time-picker.js +627 -0
  321. package/dist/collection/components/other/attendance/attendance.css +433 -0
  322. package/dist/collection/components/other/attendance/attendance.js +87 -0
  323. package/dist/collection/components/other/data-table/table.css +130 -0
  324. package/dist/collection/components/other/data-table/table.js +92 -0
  325. package/dist/collection/components/other/default/default.css +127 -0
  326. package/dist/collection/components/other/default/default.js +54 -0
  327. package/dist/collection/components/other_deprecated/collapse/collapse.css +177 -0
  328. package/dist/collection/components/other_deprecated/collapse/collapse.js +163 -0
  329. package/dist/collection/components/other_deprecated/collapse/group.js +128 -0
  330. package/dist/collection/components/other_deprecated/listbox/listbox-group.css +139 -0
  331. package/dist/collection/components/other_deprecated/listbox/listbox-group.js +93 -0
  332. package/dist/collection/components/other_deprecated/listbox/listbox-item.css +269 -0
  333. package/dist/collection/components/other_deprecated/listbox/listbox-item.js +641 -0
  334. package/dist/collection/components/other_deprecated/listbox/listbox.css +365 -0
  335. package/dist/collection/components/other_deprecated/listbox/listbox.js +1999 -0
  336. package/dist/collection/components/other_deprecated/listbox/types.js +11 -0
  337. package/dist/collection/components/other_deprecated/old-input/old-input.css +1360 -0
  338. package/dist/collection/components/other_deprecated/old-input/old-input.js +1154 -0
  339. package/dist/collection/components/other_deprecated/old-input/types.js +17 -0
  340. package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +582 -0
  341. package/dist/collection/components/other_deprecated/old-popover/old-popover-box.js +422 -0
  342. package/dist/collection/components/other_deprecated/old-popover/old-popover.css +127 -0
  343. package/dist/collection/components/other_deprecated/old-popover/old-popover.js +296 -0
  344. package/dist/collection/components/other_deprecated/old-search/old-search.css +131 -0
  345. package/dist/collection/components/other_deprecated/old-search/old-search.js +496 -0
  346. package/dist/collection/components/other_deprecated/old-tag/old-tag.css +305 -0
  347. package/dist/collection/components/other_deprecated/old-tag/old-tag.js +326 -0
  348. package/dist/collection/components/other_deprecated/old-tag/types.js +30 -0
  349. package/dist/collection/components/other_deprecated/select/group.css +144 -0
  350. package/dist/collection/components/other_deprecated/select/group.js +88 -0
  351. package/dist/collection/components/other_deprecated/select/option.css +164 -0
  352. package/dist/collection/components/other_deprecated/select/option.js +142 -0
  353. package/dist/collection/components/other_deprecated/select/select-box.css +143 -0
  354. package/dist/collection/components/other_deprecated/select/select-box.js +104 -0
  355. package/dist/collection/components/other_deprecated/select/select.css +364 -0
  356. package/dist/collection/components/other_deprecated/select/select.js +2281 -0
  357. package/dist/collection/components/other_deprecated/tabs/tab-pane.css +142 -0
  358. package/dist/collection/components/other_deprecated/tabs/tab-pane.js +168 -0
  359. package/dist/collection/components/other_deprecated/tabs/tab.css +587 -0
  360. package/dist/collection/components/other_deprecated/tabs/tab.js +303 -0
  361. package/dist/collection/components/other_deprecated/tabs/tabs-content.css +136 -0
  362. package/dist/collection/components/other_deprecated/tabs/tabs-content.js +147 -0
  363. package/dist/collection/components/other_deprecated/tabs/tabs.css +212 -0
  364. package/dist/collection/components/other_deprecated/tabs/tabs.js +806 -0
  365. package/dist/collection/components/other_deprecated/tabs/types.js +30 -0
  366. package/dist/collection/components/other_deprecated/text/text.css +429 -0
  367. package/dist/collection/components/other_deprecated/text/text.js +159 -0
  368. package/dist/collection/components/other_deprecated/treeview/treeview-group.css +0 -0
  369. package/dist/collection/components/other_deprecated/treeview/treeview-group.js +18 -0
  370. package/dist/collection/components/other_deprecated/treeview/treeview-item.css +318 -0
  371. package/dist/collection/components/other_deprecated/treeview/treeview-item.js +977 -0
  372. package/dist/collection/components/other_deprecated/treeview/treeview.css +190 -0
  373. package/dist/collection/components/other_deprecated/treeview/treeview.js +1699 -0
  374. package/dist/collection/components/other_deprecated/treeview/types.js +11 -0
  375. package/dist/collection/decorators/id-decorator.js +18 -0
  376. package/dist/collection/decorators/index.js +8 -0
  377. package/dist/collection/decorators/is-load-decorator.js +51 -0
  378. package/dist/collection/decorators/json-parse-decarator.js +35 -0
  379. package/dist/collection/decorators/property-decorators.js +28 -0
  380. package/dist/collection/global/components/_checkbox.css +627 -0
  381. package/dist/collection/global/config.js +45 -0
  382. package/dist/collection/global/global.js +43 -0
  383. package/dist/collection/global/variables/colors.js +220 -0
  384. package/dist/collection/helper/color-helper.js +81 -0
  385. package/dist/collection/helper/datetime-helper.js +7 -0
  386. package/dist/collection/helper/generate.js +168 -0
  387. package/dist/collection/helper/index.js +12 -0
  388. package/dist/collection/helper/number-helper.js +15 -0
  389. package/dist/collection/helper/popover-helper.js +106 -0
  390. package/dist/collection/helper/string-helper.js +65 -0
  391. package/dist/collection/helper/tooltip-helper.js +95 -0
  392. package/dist/collection/helper/validators.js +28 -0
  393. package/dist/collection/index.js +5 -0
  394. package/dist/collection/models/abstract-classes/abstract-key-control.js +97 -0
  395. package/dist/collection/models/bcm-types.js +5 -0
  396. package/dist/collection/models/bcm.js +466 -0
  397. package/dist/collection/models/index.js +6 -0
  398. package/dist/collection/models/states/atoms/bcm-atoms-state.js +5 -0
  399. package/dist/collection/models/states/molecules/bcm-molecules-state.js +5 -0
  400. package/dist/collection/models/states/organisms/bcm-organisms-state.js +5 -0
  401. package/dist/collection/templates/button-template.js +22 -0
  402. package/dist/collection/templates/caption-template.js +29 -0
  403. package/dist/collection/templates/checkbox-group-template.js +10 -0
  404. package/dist/collection/templates/checkbox-template.js +31 -0
  405. package/dist/collection/templates/icon-template.js +24 -0
  406. package/dist/collection/templates/index.js +17 -0
  407. package/dist/collection/templates/info-footer-template.js +16 -0
  408. package/dist/collection/templates/input-template.js +81 -0
  409. package/dist/collection/templates/label-template.js +18 -0
  410. package/dist/collection/templates/list-item-template.js +58 -0
  411. package/dist/collection/templates/list-template.js +24 -0
  412. package/dist/collection/templates/slot-template.js +10 -0
  413. package/dist/collection/templates/step-template.js +26 -0
  414. package/dist/collection/templates/tag-template.js +45 -0
  415. package/dist/collection/types/index.js +5 -0
  416. package/dist/collection/utils/element-dragger.js +274 -0
  417. package/dist/collection/utils/floating-ui.js +95 -0
  418. package/dist/collection/utils/index.js +9 -0
  419. package/dist/collection/utils/popover-placement.js +96 -0
  420. package/dist/collection/utils/utils.js +223 -0
  421. package/dist/collection/utils/validation.js +47 -0
  422. package/dist/esm/_commonjsHelpers-3016b722.js +25 -0
  423. package/dist/esm/bcm-accordion.entry.js +81 -0
  424. package/dist/esm/bcm-alert.entry.js +108 -0
  425. package/dist/esm/bcm-attendance.entry.js +46 -0
  426. package/dist/esm/bcm-autocomplete.entry.js +151 -0
  427. package/dist/esm/bcm-avatar_2.entry.js +151 -0
  428. package/dist/esm/bcm-b8d8a236.js +446 -0
  429. package/dist/esm/bcm-box.entry.js +31 -0
  430. package/dist/esm/bcm-breadcrumb.entry.js +63 -0
  431. package/dist/esm/bcm-button-group.entry.js +98 -0
  432. package/dist/esm/bcm-button_4.entry.js +988 -0
  433. package/dist/esm/bcm-card.entry.js +72 -0
  434. package/dist/esm/bcm-checkbox-group.entry.js +405 -0
  435. package/dist/esm/bcm-checkbox-lite_9.entry.js +2558 -0
  436. package/dist/esm/bcm-checkbox_2.entry.js +198 -0
  437. package/dist/esm/bcm-chip.entry.js +66 -0
  438. package/dist/esm/bcm-collapse-group.entry.js +53 -0
  439. package/dist/esm/bcm-collapse.entry.js +54 -0
  440. package/dist/esm/bcm-colorpicker.entry.js +429 -0
  441. package/dist/esm/bcm-date-picker.entry.js +167 -0
  442. package/dist/esm/bcm-datetime-picker.entry.js +1428 -0
  443. package/dist/esm/bcm-default.entry.js +36 -0
  444. package/dist/esm/bcm-drawer.entry.js +107 -0
  445. package/dist/esm/bcm-dropdown.entry.js +235 -0
  446. package/dist/esm/bcm-error-layout.entry.js +74 -0
  447. package/dist/esm/bcm-expansion-panel.entry.js +123 -0
  448. package/dist/esm/bcm-form-2.entry.js +202 -0
  449. package/dist/esm/bcm-form-group.entry.js +41 -0
  450. package/dist/esm/bcm-input.entry.js +321 -0
  451. package/dist/esm/bcm-item.entry.js +79 -0
  452. package/dist/esm/bcm-items.entry.js +57 -0
  453. package/dist/esm/bcm-label_2.entry.js +114 -0
  454. package/dist/esm/bcm-link.entry.js +58 -0
  455. package/dist/esm/bcm-linked.entry.js +175 -0
  456. package/dist/esm/bcm-list.entry.js +1764 -0
  457. package/dist/esm/bcm-menu.entry.js +244 -0
  458. package/dist/esm/bcm-message.entry.js +95 -0
  459. package/dist/esm/bcm-notification.entry.js +99 -0
  460. package/dist/esm/bcm-old-input.entry.js +394 -0
  461. package/dist/esm/bcm-old-tag_2.entry.js +152 -0
  462. package/dist/esm/bcm-popconfirm-box.entry.js +118 -0
  463. package/dist/esm/bcm-popconfirm.entry.js +108 -0
  464. package/dist/esm/bcm-popover.entry.js +178 -0
  465. package/dist/esm/bcm-progress.entry.js +170 -0
  466. package/dist/esm/bcm-radio-group.entry.js +263 -0
  467. package/dist/esm/bcm-radio.entry.js +100 -0
  468. package/dist/esm/bcm-range.entry.js +185 -0
  469. package/dist/esm/bcm-result.entry.js +75 -0
  470. package/dist/esm/bcm-search.entry.js +252 -0
  471. package/dist/esm/bcm-select-group.entry.js +27 -0
  472. package/dist/esm/bcm-select-option.entry.js +33 -0
  473. package/dist/esm/bcm-select.entry.js +1194 -0
  474. package/dist/esm/bcm-skeleton.entry.js +52 -0
  475. package/dist/esm/bcm-step.entry.js +89 -0
  476. package/dist/esm/bcm-stepper.entry.js +207 -0
  477. package/dist/esm/bcm-switch.entry.js +135 -0
  478. package/dist/esm/bcm-tab-group.entry.js +168 -0
  479. package/dist/esm/bcm-tab-pane.entry.js +66 -0
  480. package/dist/esm/bcm-tab.entry.js +85 -0
  481. package/dist/esm/bcm-table.entry.js +74 -0
  482. package/dist/esm/bcm-tabs-content.entry.js +58 -0
  483. package/dist/esm/bcm-tabs.entry.js +386 -0
  484. package/dist/esm/bcm-tag.entry.js +97 -0
  485. package/dist/esm/bcm-text.entry.js +56 -0
  486. package/dist/esm/bcm-textarea.entry.js +146 -0
  487. package/dist/esm/bcm-time-picker.entry.js +135 -0
  488. package/dist/esm/bcm-timeline-item.entry.js +51 -0
  489. package/dist/esm/bcm-timeline.entry.js +69 -0
  490. package/dist/esm/bcm-treeview-group.entry.js +19 -0
  491. package/dist/esm/bromcom-ui.js +22 -0
  492. package/dist/esm/caption-template-d54ee0c3.js +32 -0
  493. package/dist/esm/color-helper-7e202fd8.js +488 -0
  494. package/dist/esm/colors-1d7854ea.js +222 -0
  495. package/dist/esm/datetime-helper-df25808a.js +9 -0
  496. package/dist/esm/element-dragger-89bb52fd.js +277 -0
  497. package/dist/esm/floating-ui-f03a96ce.js +1453 -0
  498. package/dist/esm/generate-4e9309bd.js +200 -0
  499. package/dist/esm/global-4fad925b.js +13 -0
  500. package/dist/esm/index-2a3eeccc.js +1833 -0
  501. package/dist/esm/index-6e950253.js +191 -0
  502. package/dist/esm/index-ba2edd32.js +62 -0
  503. package/dist/esm/index.js +4 -0
  504. package/dist/esm/input-template-6a8e4cc6.js +84 -0
  505. package/dist/esm/is-load-decorator-b990575a.js +54 -0
  506. package/dist/esm/json-parse-decarator-87ac1cd9.js +38 -0
  507. package/dist/esm/label-template-e3eebfbc.js +21 -0
  508. package/dist/esm/loader.js +22 -0
  509. package/dist/esm/number-helper-f34393b1.js +18 -0
  510. package/dist/esm/old-bcm-popover-box.entry.js +157 -0
  511. package/dist/esm/old-bcm-popover.entry.js +100 -0
  512. package/dist/esm/polyfills/core-js.js +11 -0
  513. package/dist/esm/polyfills/css-shim.js +1 -0
  514. package/dist/esm/polyfills/dom.js +79 -0
  515. package/dist/esm/polyfills/es5-html-element.js +1 -0
  516. package/dist/esm/polyfills/index.js +34 -0
  517. package/dist/esm/polyfills/system.js +6 -0
  518. package/dist/esm/popover-placement-9864294b.js +95 -0
  519. package/dist/esm/property-decorators-f3f1e7de.js +31 -0
  520. package/dist/esm/slot-template-877c4e01.js +13 -0
  521. package/dist/esm/stepper-states-12a190b4.js +81 -0
  522. package/dist/esm/string-helper-74a1648f.js +132 -0
  523. package/dist/esm/tooltip-helper-ae137bee.js +102 -0
  524. package/dist/esm/types-6f06fa1a.js +19 -0
  525. package/dist/esm/types-b211a5eb.js +32 -0
  526. package/dist/esm/types-bfc3bba1.js +32 -0
  527. package/dist/esm/utils-57652744.js +123 -0
  528. package/dist/esm/validators-0e0c76db.js +31 -0
  529. package/dist/index.cjs.js +1 -0
  530. package/dist/index.js +1 -0
  531. package/dist/types/components/atoms/avatar/avatar.d.ts +23 -0
  532. package/dist/types/components/atoms/badge/badge.d.ts +17 -0
  533. package/dist/types/components/atoms/box/box.d.ts +5 -0
  534. package/dist/types/components/atoms/button/button.d.ts +33 -0
  535. package/dist/types/components/atoms/button/types.d.ts +166 -0
  536. package/dist/types/components/atoms/chip/chip.d.ts +24 -0
  537. package/dist/types/components/atoms/divider/divider.d.ts +7 -0
  538. package/dist/types/components/atoms/icon/icon.d.ts +6 -0
  539. package/dist/types/components/atoms/label/label.d.ts +16 -0
  540. package/dist/types/components/atoms/link/link.d.ts +13 -0
  541. package/dist/types/components/atoms/states/button.states.d.ts +7 -0
  542. package/dist/types/components/atoms/tag/tag.d.ts +24 -0
  543. package/dist/types/components/atoms/tag/types.d.ts +29 -0
  544. package/dist/types/components/atoms/typography/typography.d.ts +5 -0
  545. package/dist/types/components/molecules/accordion/accordion.d.ts +11 -0
  546. package/dist/types/components/molecules/alert/alert.d.ts +21 -0
  547. package/dist/types/components/molecules/alert/types.d.ts +25 -0
  548. package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +14 -0
  549. package/dist/types/components/molecules/breadcrumb/types.d.ts +10 -0
  550. package/dist/types/components/molecules/button-group/button-group.d.ts +21 -0
  551. package/dist/types/components/molecules/card/card.d.ts +11 -0
  552. package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +14 -0
  553. package/dist/types/components/molecules/checkbox/checkbox.d.ts +56 -0
  554. package/dist/types/components/molecules/checkbox/group.d.ts +56 -0
  555. package/dist/types/components/molecules/drawer/drawer.d.ts +21 -0
  556. package/dist/types/components/molecules/dropdown/dropdown.d.ts +55 -0
  557. package/dist/types/components/molecules/empty/empty.d.ts +5 -0
  558. package/dist/types/components/molecules/error-layout/error-layout.d.ts +25 -0
  559. package/dist/types/components/molecules/error-layout/types.d.ts +4 -0
  560. package/dist/types/components/molecules/expansion-panel/expansion-panel.d.ts +31 -0
  561. package/dist/types/components/molecules/input/input.d.ts +82 -0
  562. package/dist/types/components/molecules/input/types.d.ts +13 -0
  563. package/dist/types/components/molecules/item/item.d.ts +13 -0
  564. package/dist/types/components/molecules/items/items.d.ts +10 -0
  565. package/dist/types/components/molecules/linked/linked.d.ts +30 -0
  566. package/dist/types/components/molecules/menu/menu.d.ts +41 -0
  567. package/dist/types/components/molecules/message/message.d.ts +32 -0
  568. package/dist/types/components/molecules/message/types.d.ts +13 -0
  569. package/dist/types/components/molecules/modal/modal.d.ts +26 -0
  570. package/dist/types/components/molecules/notification/notification.d.ts +42 -0
  571. package/dist/types/components/molecules/notification/types.d.ts +14 -0
  572. package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +29 -0
  573. package/dist/types/components/molecules/popconfirm/popconfirm.d.ts +28 -0
  574. package/dist/types/components/molecules/popover/popover.d.ts +20 -0
  575. package/dist/types/components/molecules/progress/progress.d.ts +25 -0
  576. package/dist/types/components/molecules/progress/types.d.ts +14 -0
  577. package/dist/types/components/molecules/radio/group.d.ts +54 -0
  578. package/dist/types/components/molecules/radio/radio.d.ts +21 -0
  579. package/dist/types/components/molecules/radio/types.d.ts +29 -0
  580. package/dist/types/components/molecules/range/range.d.ts +36 -0
  581. package/dist/types/components/molecules/result/result.d.ts +13 -0
  582. package/dist/types/components/molecules/result/types.d.ts +19 -0
  583. package/dist/types/components/molecules/search/search.d.ts +35 -0
  584. package/dist/types/components/molecules/skeleton/skeleton.d.ts +8 -0
  585. package/dist/types/components/molecules/states/alert.states.d.ts +7 -0
  586. package/dist/types/components/molecules/states/checkbox-group.states.d.ts +53 -0
  587. package/dist/types/components/molecules/states/radio-group.states.d.ts +48 -0
  588. package/dist/types/components/molecules/states/search.states.d.ts +14 -0
  589. package/dist/types/components/molecules/states/stepper-states.d.ts +13 -0
  590. package/dist/types/components/molecules/stepper/step.d.ts +25 -0
  591. package/dist/types/components/molecules/stepper/stepper.d.ts +34 -0
  592. package/dist/types/components/molecules/switch/switch.d.ts +46 -0
  593. package/dist/types/components/molecules/tab-group/tab-group.d.ts +18 -0
  594. package/dist/types/components/molecules/textarea/textarea.d.ts +53 -0
  595. package/dist/types/components/molecules/textarea/types.d.ts +9 -0
  596. package/dist/types/components/molecules/timeline/timeline-item.d.ts +16 -0
  597. package/dist/types/components/molecules/timeline/timeline.d.ts +25 -0
  598. package/dist/types/components/molecules/tooltip/tooltip.d.ts +19 -0
  599. package/dist/types/components/organism/autocomplete/autocomplete.d.ts +31 -0
  600. package/dist/types/components/organism/colorpicker/colorpicker.d.ts +176 -0
  601. package/dist/types/components/organism/date-picker/date-picker.d.ts +77 -0
  602. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +438 -0
  603. package/dist/types/components/organism/datetime-picker/types.d.ts +54 -0
  604. package/dist/types/components/organism/form/form-group.d.ts +10 -0
  605. package/dist/types/components/organism/form/form.d.ts +34 -0
  606. package/dist/types/components/organism/form-2/bcm-form-components.d.ts +2 -0
  607. package/dist/types/components/organism/form-2/form-2.d.ts +25 -0
  608. package/dist/types/components/organism/list/list-key-control.d.ts +18 -0
  609. package/dist/types/components/organism/list/list-tag-control.d.ts +18 -0
  610. package/dist/types/components/organism/list/list.d.ts +140 -0
  611. package/dist/types/components/organism/states/bcm-list2.states.d.ts +28 -0
  612. package/dist/types/components/organism/time-picker/time-picker.d.ts +69 -0
  613. package/dist/types/components/other/attendance/attendance.d.ts +7 -0
  614. package/dist/types/components/other/data-table/table.d.ts +8 -0
  615. package/dist/types/components/other/default/default.d.ts +6 -0
  616. package/dist/types/components/other_deprecated/collapse/collapse.d.ts +12 -0
  617. package/dist/types/components/other_deprecated/collapse/group.d.ts +15 -0
  618. package/dist/types/components/other_deprecated/listbox/listbox-group.d.ts +7 -0
  619. package/dist/types/components/other_deprecated/listbox/listbox-item.d.ts +58 -0
  620. package/dist/types/components/other_deprecated/listbox/listbox.d.ts +152 -0
  621. package/dist/types/components/other_deprecated/listbox/types.d.ts +11 -0
  622. package/dist/types/components/other_deprecated/old-input/old-input.d.ts +80 -0
  623. package/dist/types/components/other_deprecated/old-input/types.d.ts +13 -0
  624. package/dist/types/components/other_deprecated/old-popover/old-popover-box.d.ts +26 -0
  625. package/dist/types/components/other_deprecated/old-popover/old-popover.d.ts +22 -0
  626. package/dist/types/components/other_deprecated/old-search/old-search.d.ts +32 -0
  627. package/dist/types/components/other_deprecated/old-tag/old-tag.d.ts +27 -0
  628. package/dist/types/components/other_deprecated/old-tag/types.d.ts +29 -0
  629. package/dist/types/components/other_deprecated/select/group.d.ts +6 -0
  630. package/dist/types/components/other_deprecated/select/option.d.ts +10 -0
  631. package/dist/types/components/other_deprecated/select/select-box.d.ts +15 -0
  632. package/dist/types/components/other_deprecated/select/select.d.ts +133 -0
  633. package/dist/types/components/other_deprecated/tabs/tab-pane.d.ts +19 -0
  634. package/dist/types/components/other_deprecated/tabs/tab.d.ts +36 -0
  635. package/dist/types/components/other_deprecated/tabs/tabs-content.d.ts +18 -0
  636. package/dist/types/components/other_deprecated/tabs/tabs.d.ts +112 -0
  637. package/dist/types/components/other_deprecated/tabs/types.d.ts +39 -0
  638. package/dist/types/components/other_deprecated/text/text.d.ts +11 -0
  639. package/dist/types/components/other_deprecated/treeview/treeview-group.d.ts +3 -0
  640. package/dist/types/components/other_deprecated/treeview/treeview-item.d.ts +119 -0
  641. package/dist/types/components/other_deprecated/treeview/treeview.d.ts +181 -0
  642. package/dist/types/components/other_deprecated/treeview/types.d.ts +11 -0
  643. package/dist/types/components.d.ts +3532 -0
  644. package/dist/types/decorators/id-decorator.d.ts +4 -0
  645. package/dist/types/decorators/index.d.ts +4 -0
  646. package/dist/types/decorators/is-load-decorator.d.ts +7 -0
  647. package/dist/types/decorators/json-parse-decarator.d.ts +4 -0
  648. package/dist/types/decorators/property-decorators.d.ts +4 -0
  649. package/dist/types/global/variables/colors.d.ts +217 -0
  650. package/dist/types/helper/color-helper.d.ts +16 -0
  651. package/dist/types/helper/datetime-helper.d.ts +3 -0
  652. package/dist/types/helper/generate.d.ts +22 -0
  653. package/dist/types/helper/index.d.ts +8 -0
  654. package/dist/types/helper/number-helper.d.ts +10 -0
  655. package/dist/types/helper/popover-helper.d.ts +31 -0
  656. package/dist/types/helper/string-helper.d.ts +27 -0
  657. package/dist/types/helper/tooltip-helper.d.ts +25 -0
  658. package/dist/types/helper/validators.d.ts +10 -0
  659. package/dist/types/index.d.ts +1 -0
  660. package/dist/types/models/abstract-classes/abstract-key-control.d.ts +31 -0
  661. package/dist/types/models/bcm-types.d.ts +21 -0
  662. package/dist/types/models/bcm.d.ts +456 -0
  663. package/dist/types/models/index.d.ts +2 -0
  664. package/dist/types/models/states/atoms/bcm-atoms-state.d.ts +34 -0
  665. package/dist/types/models/states/molecules/bcm-molecules-state.d.ts +90 -0
  666. package/dist/types/models/states/organisms/bcm-organisms-state.d.ts +78 -0
  667. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  668. package/dist/types/templates/button-template.d.ts +18 -0
  669. package/dist/types/templates/caption-template.d.ts +14 -0
  670. package/dist/types/templates/checkbox-group-template.d.ts +10 -0
  671. package/dist/types/templates/checkbox-template.d.ts +13 -0
  672. package/dist/types/templates/icon-template.d.ts +7 -0
  673. package/dist/types/templates/index.d.ts +13 -0
  674. package/dist/types/templates/info-footer-template.d.ts +10 -0
  675. package/dist/types/templates/input-template.d.ts +34 -0
  676. package/dist/types/templates/label-template.d.ts +12 -0
  677. package/dist/types/templates/list-item-template.d.ts +13 -0
  678. package/dist/types/templates/list-template.d.ts +29 -0
  679. package/dist/types/templates/slot-template.d.ts +8 -0
  680. package/dist/types/templates/step-template.d.ts +17 -0
  681. package/dist/types/templates/tag-template.d.ts +21 -0
  682. package/dist/types/types/index.d.ts +12 -0
  683. package/dist/types/utils/element-dragger.d.ts +146 -0
  684. package/dist/types/utils/floating-ui.d.ts +1 -0
  685. package/dist/types/utils/index.d.ts +5 -0
  686. package/dist/types/utils/popover-placement.d.ts +3 -0
  687. package/dist/types/utils/utils.d.ts +55 -0
  688. package/dist/types/utils/validation.d.ts +19 -0
  689. package/package.json +3 -3
  690. package/dist/bromcom-ui/p-0846712b.js +0 -5
  691. package/dist/bromcom-ui/p-15a38991.entry.js +0 -5
  692. package/dist/bromcom-ui/p-6e391ba6.entry.js +0 -5
  693. package/dist/bromcom-ui/p-75c01665.entry.js +0 -5
  694. package/dist/bromcom-ui/p-7671bea7.entry.js +0 -5
  695. package/dist/bromcom-ui/p-8f394771.js +0 -5
  696. package/dist/bromcom-ui/p-9acadcaa.js +0 -5
  697. package/dist/bromcom-ui/p-9ad3f646.entry.js +0 -5
  698. package/dist/bromcom-ui/p-a3f82827.entry.js +0 -5
  699. package/dist/bromcom-ui/p-a74295dc.js +0 -5
  700. package/dist/bromcom-ui/p-a9ce17d4.js +0 -5
  701. package/dist/bromcom-ui/p-b970549a.entry.js +0 -5
  702. package/dist/bromcom-ui/p-bb698305.js +0 -5
  703. package/dist/bromcom-ui/p-cccebf39.entry.js +0 -5
  704. package/dist/bromcom-ui/p-e372f7a8.entry.js +0 -5
@@ -0,0 +1,1864 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () {
17
+ return e[k];
18
+ }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n['default'] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ const NAMESPACE = 'bromcom-ui';
28
+
29
+ let scopeId;
30
+ let contentRef;
31
+ let hostTagName;
32
+ let useNativeShadowDom = false;
33
+ let checkSlotFallbackVisibility = false;
34
+ let checkSlotRelocate = false;
35
+ let isSvgMode = false;
36
+ let renderingRef = null;
37
+ let queuePending = false;
38
+ const win = typeof window !== 'undefined' ? window : {};
39
+ const doc = win.document || { head: {} };
40
+ const plt = {
41
+ $flags$: 0,
42
+ $resourcesUrl$: '',
43
+ jmp: (h) => h(),
44
+ raf: (h) => requestAnimationFrame(h),
45
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
46
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
47
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
48
+ };
49
+ const promiseResolve = (v) => Promise.resolve(v);
50
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
51
+ try {
52
+ new CSSStyleSheet();
53
+ return typeof new CSSStyleSheet().replaceSync === 'function';
54
+ }
55
+ catch (e) { }
56
+ return false;
57
+ })()
58
+ ;
59
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
60
+ if (listeners) {
61
+ listeners.map(([flags, name, method]) => {
62
+ const target = getHostListenerTarget(elm, flags) ;
63
+ const handler = hostListenerProxy(hostRef, method);
64
+ const opts = hostListenerOpts(flags);
65
+ plt.ael(target, name, handler, opts);
66
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
67
+ });
68
+ }
69
+ };
70
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
71
+ try {
72
+ {
73
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
74
+ // instance is ready, let's call it's member method for this event
75
+ hostRef.$lazyInstance$[methodName](ev);
76
+ }
77
+ else {
78
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
79
+ }
80
+ }
81
+ }
82
+ catch (e) {
83
+ consoleError(e);
84
+ }
85
+ };
86
+ const getHostListenerTarget = (elm, flags) => {
87
+ if (flags & 4 /* TargetDocument */)
88
+ return doc;
89
+ if (flags & 8 /* TargetWindow */)
90
+ return win;
91
+ return elm;
92
+ };
93
+ // prettier-ignore
94
+ const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
95
+ const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
96
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
97
+ const createTime = (fnName, tagName = '') => {
98
+ {
99
+ return () => {
100
+ return;
101
+ };
102
+ }
103
+ };
104
+ const uniqueTime = (key, measureText) => {
105
+ {
106
+ return () => {
107
+ return;
108
+ };
109
+ }
110
+ };
111
+ const rootAppliedStyles = new WeakMap();
112
+ const registerStyle = (scopeId, cssText, allowCS) => {
113
+ let style = styles.get(scopeId);
114
+ if (supportsConstructableStylesheets && allowCS) {
115
+ style = (style || new CSSStyleSheet());
116
+ if (typeof style === 'string') {
117
+ style = cssText;
118
+ }
119
+ else {
120
+ style.replaceSync(cssText);
121
+ }
122
+ }
123
+ else {
124
+ style = cssText;
125
+ }
126
+ styles.set(scopeId, style);
127
+ };
128
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
129
+ let scopeId = getScopeId(cmpMeta);
130
+ const style = styles.get(scopeId);
131
+ // if an element is NOT connected then getRootNode() will return the wrong root node
132
+ // so the fallback is to always use the document for the root node in those cases
133
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
134
+ if (style) {
135
+ if (typeof style === 'string') {
136
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
137
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
138
+ let styleElm;
139
+ if (!appliedStyles) {
140
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
141
+ }
142
+ if (!appliedStyles.has(scopeId)) {
143
+ {
144
+ {
145
+ styleElm = doc.createElement('style');
146
+ styleElm.innerHTML = style;
147
+ }
148
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
149
+ }
150
+ if (appliedStyles) {
151
+ appliedStyles.add(scopeId);
152
+ }
153
+ }
154
+ }
155
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
156
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
157
+ }
158
+ }
159
+ return scopeId;
160
+ };
161
+ const attachStyles = (hostRef) => {
162
+ const cmpMeta = hostRef.$cmpMeta$;
163
+ const elm = hostRef.$hostElement$;
164
+ const flags = cmpMeta.$flags$;
165
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
166
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
167
+ if (flags & 10 /* needsScopedEncapsulation */) {
168
+ // only required when we're NOT using native shadow dom (slot)
169
+ // or this browser doesn't support native shadow dom
170
+ // and this host element was NOT created with SSR
171
+ // let's pick out the inner content for slot projection
172
+ // create a node to represent where the original
173
+ // content was first placed, which is useful later on
174
+ // DOM WRITE!!
175
+ elm['s-sc'] = scopeId;
176
+ elm.classList.add(scopeId + '-h');
177
+ }
178
+ endAttachStyles();
179
+ };
180
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
181
+ /**
182
+ * Default style mode id
183
+ */
184
+ /**
185
+ * Reusable empty obj/array
186
+ * Don't add values to these!!
187
+ */
188
+ const EMPTY_OBJ = {};
189
+ /**
190
+ * Namespaces
191
+ */
192
+ const SVG_NS = 'http://www.w3.org/2000/svg';
193
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
194
+ const isDef = (v) => v != null;
195
+ const isComplexType = (o) => {
196
+ // https://jsperf.com/typeof-fn-object/5
197
+ o = typeof o;
198
+ return o === 'object' || o === 'function';
199
+ };
200
+ /**
201
+ * Production h() function based on Preact by
202
+ * Jason Miller (@developit)
203
+ * Licensed under the MIT License
204
+ * https://github.com/developit/preact/blob/master/LICENSE
205
+ *
206
+ * Modified for Stencil's compiler and vdom
207
+ */
208
+ // const stack: any[] = [];
209
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
210
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
211
+ const h = (nodeName, vnodeData, ...children) => {
212
+ let child = null;
213
+ let key = null;
214
+ let slotName = null;
215
+ let simple = false;
216
+ let lastSimple = false;
217
+ const vNodeChildren = [];
218
+ const walk = (c) => {
219
+ for (let i = 0; i < c.length; i++) {
220
+ child = c[i];
221
+ if (Array.isArray(child)) {
222
+ walk(child);
223
+ }
224
+ else if (child != null && typeof child !== 'boolean') {
225
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
226
+ child = String(child);
227
+ }
228
+ if (simple && lastSimple) {
229
+ // If the previous child was simple (string), we merge both
230
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
231
+ }
232
+ else {
233
+ // Append a new vNode, if it's text, we create a text vNode
234
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
235
+ }
236
+ lastSimple = simple;
237
+ }
238
+ }
239
+ };
240
+ walk(children);
241
+ if (vnodeData) {
242
+ // normalize class / classname attributes
243
+ if (vnodeData.key) {
244
+ key = vnodeData.key;
245
+ }
246
+ if (vnodeData.name) {
247
+ slotName = vnodeData.name;
248
+ }
249
+ {
250
+ const classData = vnodeData.className || vnodeData.class;
251
+ if (classData) {
252
+ vnodeData.class =
253
+ typeof classData !== 'object'
254
+ ? classData
255
+ : Object.keys(classData)
256
+ .filter((k) => classData[k])
257
+ .join(' ');
258
+ }
259
+ }
260
+ }
261
+ if (typeof nodeName === 'function') {
262
+ // nodeName is a functional component
263
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
264
+ }
265
+ const vnode = newVNode(nodeName, null);
266
+ vnode.$attrs$ = vnodeData;
267
+ if (vNodeChildren.length > 0) {
268
+ vnode.$children$ = vNodeChildren;
269
+ }
270
+ {
271
+ vnode.$key$ = key;
272
+ }
273
+ {
274
+ vnode.$name$ = slotName;
275
+ }
276
+ return vnode;
277
+ };
278
+ const newVNode = (tag, text) => {
279
+ const vnode = {
280
+ $flags$: 0,
281
+ $tag$: tag,
282
+ $text$: text,
283
+ $elm$: null,
284
+ $children$: null,
285
+ };
286
+ {
287
+ vnode.$attrs$ = null;
288
+ }
289
+ {
290
+ vnode.$key$ = null;
291
+ }
292
+ {
293
+ vnode.$name$ = null;
294
+ }
295
+ return vnode;
296
+ };
297
+ const Host = {};
298
+ const isHost = (node) => node && node.$tag$ === Host;
299
+ const vdomFnUtils = {
300
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
301
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
302
+ };
303
+ const convertToPublic = (node) => ({
304
+ vattrs: node.$attrs$,
305
+ vchildren: node.$children$,
306
+ vkey: node.$key$,
307
+ vname: node.$name$,
308
+ vtag: node.$tag$,
309
+ vtext: node.$text$,
310
+ });
311
+ const convertToPrivate = (node) => {
312
+ if (typeof node.vtag === 'function') {
313
+ const vnodeData = Object.assign({}, node.vattrs);
314
+ if (node.vkey) {
315
+ vnodeData.key = node.vkey;
316
+ }
317
+ if (node.vname) {
318
+ vnodeData.name = node.vname;
319
+ }
320
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
321
+ }
322
+ const vnode = newVNode(node.vtag, node.vtext);
323
+ vnode.$attrs$ = node.vattrs;
324
+ vnode.$children$ = node.vchildren;
325
+ vnode.$key$ = node.vkey;
326
+ vnode.$name$ = node.vname;
327
+ return vnode;
328
+ };
329
+ /**
330
+ * Production setAccessor() function based on Preact by
331
+ * Jason Miller (@developit)
332
+ * Licensed under the MIT License
333
+ * https://github.com/developit/preact/blob/master/LICENSE
334
+ *
335
+ * Modified for Stencil's compiler and vdom
336
+ */
337
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
338
+ if (oldValue !== newValue) {
339
+ let isProp = isMemberInElement(elm, memberName);
340
+ let ln = memberName.toLowerCase();
341
+ if (memberName === 'class') {
342
+ const classList = elm.classList;
343
+ const oldClasses = parseClassList(oldValue);
344
+ const newClasses = parseClassList(newValue);
345
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
346
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
347
+ }
348
+ else if (memberName === 'style') {
349
+ // update style attribute, css properties and values
350
+ {
351
+ for (const prop in oldValue) {
352
+ if (!newValue || newValue[prop] == null) {
353
+ if (prop.includes('-')) {
354
+ elm.style.removeProperty(prop);
355
+ }
356
+ else {
357
+ elm.style[prop] = '';
358
+ }
359
+ }
360
+ }
361
+ }
362
+ for (const prop in newValue) {
363
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
364
+ if (prop.includes('-')) {
365
+ elm.style.setProperty(prop, newValue[prop]);
366
+ }
367
+ else {
368
+ elm.style[prop] = newValue[prop];
369
+ }
370
+ }
371
+ }
372
+ }
373
+ else if (memberName === 'key')
374
+ ;
375
+ else if (memberName === 'ref') {
376
+ // minifier will clean this up
377
+ if (newValue) {
378
+ newValue(elm);
379
+ }
380
+ }
381
+ else if ((!isProp ) &&
382
+ memberName[0] === 'o' &&
383
+ memberName[1] === 'n') {
384
+ // Event Handlers
385
+ // so if the member name starts with "on" and the 3rd characters is
386
+ // a capital letter, and it's not already a member on the element,
387
+ // then we're assuming it's an event listener
388
+ if (memberName[2] === '-') {
389
+ // on- prefixed events
390
+ // allows to be explicit about the dom event to listen without any magic
391
+ // under the hood:
392
+ // <my-cmp on-click> // listens for "click"
393
+ // <my-cmp on-Click> // listens for "Click"
394
+ // <my-cmp on-ionChange> // listens for "ionChange"
395
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
396
+ memberName = memberName.slice(3);
397
+ }
398
+ else if (isMemberInElement(win, ln)) {
399
+ // standard event
400
+ // the JSX attribute could have been "onMouseOver" and the
401
+ // member name "onmouseover" is on the window's prototype
402
+ // so let's add the listener "mouseover", which is all lowercased
403
+ memberName = ln.slice(2);
404
+ }
405
+ else {
406
+ // custom event
407
+ // the JSX attribute could have been "onMyCustomEvent"
408
+ // so let's trim off the "on" prefix and lowercase the first character
409
+ // and add the listener "myCustomEvent"
410
+ // except for the first character, we keep the event name case
411
+ memberName = ln[2] + memberName.slice(3);
412
+ }
413
+ if (oldValue) {
414
+ plt.rel(elm, memberName, oldValue, false);
415
+ }
416
+ if (newValue) {
417
+ plt.ael(elm, memberName, newValue, false);
418
+ }
419
+ }
420
+ else {
421
+ // Set property if it exists and it's not a SVG
422
+ const isComplex = isComplexType(newValue);
423
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
424
+ try {
425
+ if (!elm.tagName.includes('-')) {
426
+ const n = newValue == null ? '' : newValue;
427
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
428
+ if (memberName === 'list') {
429
+ isProp = false;
430
+ }
431
+ else if (oldValue == null || elm[memberName] != n) {
432
+ elm[memberName] = n;
433
+ }
434
+ }
435
+ else {
436
+ elm[memberName] = newValue;
437
+ }
438
+ }
439
+ catch (e) { }
440
+ }
441
+ /**
442
+ * Need to manually update attribute if:
443
+ * - memberName is not an attribute
444
+ * - if we are rendering the host element in order to reflect attribute
445
+ * - if it's a SVG, since properties might not work in <svg>
446
+ * - if the newValue is null/undefined or 'false'.
447
+ */
448
+ let xlink = false;
449
+ {
450
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
451
+ memberName = ln;
452
+ xlink = true;
453
+ }
454
+ }
455
+ if (newValue == null || newValue === false) {
456
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
457
+ if (xlink) {
458
+ elm.removeAttributeNS(XLINK_NS, memberName);
459
+ }
460
+ else {
461
+ elm.removeAttribute(memberName);
462
+ }
463
+ }
464
+ }
465
+ else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
466
+ newValue = newValue === true ? '' : newValue;
467
+ if (xlink) {
468
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
469
+ }
470
+ else {
471
+ elm.setAttribute(memberName, newValue);
472
+ }
473
+ }
474
+ }
475
+ }
476
+ };
477
+ const parseClassListRegex = /\s/;
478
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
479
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
480
+ // if the element passed in is a shadow root, which is a document fragment
481
+ // then we want to be adding attrs/props to the shadow root's "host" element
482
+ // if it's not a shadow root, then we add attrs/props to the same element
483
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
484
+ ? newVnode.$elm$.host
485
+ : newVnode.$elm$;
486
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
487
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
488
+ {
489
+ // remove attributes no longer present on the vnode by setting them to undefined
490
+ for (memberName in oldVnodeAttrs) {
491
+ if (!(memberName in newVnodeAttrs)) {
492
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
493
+ }
494
+ }
495
+ }
496
+ // add new & update changed attributes
497
+ for (memberName in newVnodeAttrs) {
498
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
499
+ }
500
+ };
501
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
502
+ // tslint:disable-next-line: prefer-const
503
+ const newVNode = newParentVNode.$children$[childIndex];
504
+ let i = 0;
505
+ let elm;
506
+ let childNode;
507
+ let oldVNode;
508
+ if (!useNativeShadowDom) {
509
+ // remember for later we need to check to relocate nodes
510
+ checkSlotRelocate = true;
511
+ if (newVNode.$tag$ === 'slot') {
512
+ if (scopeId) {
513
+ // scoped css needs to add its scoped id to the parent element
514
+ parentElm.classList.add(scopeId + '-s');
515
+ }
516
+ newVNode.$flags$ |= newVNode.$children$
517
+ ? // slot element has fallback content
518
+ 2 /* isSlotFallback */
519
+ : // slot element does not have fallback content
520
+ 1 /* isSlotReference */;
521
+ }
522
+ }
523
+ if (newVNode.$text$ !== null) {
524
+ // create text node
525
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
526
+ }
527
+ else if (newVNode.$flags$ & 1 /* isSlotReference */) {
528
+ // create a slot reference node
529
+ elm = newVNode.$elm$ =
530
+ doc.createTextNode('');
531
+ }
532
+ else {
533
+ if (!isSvgMode) {
534
+ isSvgMode = newVNode.$tag$ === 'svg';
535
+ }
536
+ // create element
537
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
538
+ ? 'slot-fb'
539
+ : newVNode.$tag$)
540
+ );
541
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
542
+ isSvgMode = false;
543
+ }
544
+ // add css classes, attrs, props, listeners, etc.
545
+ {
546
+ updateElement(null, newVNode, isSvgMode);
547
+ }
548
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
549
+ // if there is a scopeId and this is the initial render
550
+ // then let's add the scopeId as a css class
551
+ elm.classList.add((elm['s-si'] = scopeId));
552
+ }
553
+ if (newVNode.$children$) {
554
+ for (i = 0; i < newVNode.$children$.length; ++i) {
555
+ // create the node
556
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
557
+ // return node could have been null
558
+ if (childNode) {
559
+ // append our new node
560
+ elm.appendChild(childNode);
561
+ }
562
+ }
563
+ }
564
+ {
565
+ if (newVNode.$tag$ === 'svg') {
566
+ // Only reset the SVG context when we're exiting <svg> element
567
+ isSvgMode = false;
568
+ }
569
+ else if (elm.tagName === 'foreignObject') {
570
+ // Reenter SVG context when we're exiting <foreignObject> element
571
+ isSvgMode = true;
572
+ }
573
+ }
574
+ }
575
+ {
576
+ elm['s-hn'] = hostTagName;
577
+ if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
578
+ // remember the content reference comment
579
+ elm['s-sr'] = true;
580
+ // remember the content reference comment
581
+ elm['s-cr'] = contentRef;
582
+ // remember the slot name, or empty string for default slot
583
+ elm['s-sn'] = newVNode.$name$ || '';
584
+ // check if we've got an old vnode for this slot
585
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
586
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
587
+ // we've got an old slot vnode and the wrapper is being replaced
588
+ // so let's move the old slot content back to it's original location
589
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
590
+ }
591
+ }
592
+ }
593
+ return elm;
594
+ };
595
+ const putBackInOriginalLocation = (parentElm, recursive) => {
596
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
597
+ const oldSlotChildNodes = parentElm.childNodes;
598
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
599
+ const childNode = oldSlotChildNodes[i];
600
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
601
+ // // this child node in the old element is from another component
602
+ // // remove this node from the old slot's parent
603
+ // childNode.remove();
604
+ // and relocate it back to it's original location
605
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
606
+ // remove the old original location comment entirely
607
+ // later on the patch function will know what to do
608
+ // and move this to the correct spot in need be
609
+ childNode['s-ol'].remove();
610
+ childNode['s-ol'] = undefined;
611
+ checkSlotRelocate = true;
612
+ }
613
+ if (recursive) {
614
+ putBackInOriginalLocation(childNode, recursive);
615
+ }
616
+ }
617
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
618
+ };
619
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
620
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
621
+ let childNode;
622
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
623
+ containerElm = containerElm.shadowRoot;
624
+ }
625
+ for (; startIdx <= endIdx; ++startIdx) {
626
+ if (vnodes[startIdx]) {
627
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
628
+ if (childNode) {
629
+ vnodes[startIdx].$elm$ = childNode;
630
+ containerElm.insertBefore(childNode, referenceNode(before) );
631
+ }
632
+ }
633
+ }
634
+ };
635
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
636
+ for (; startIdx <= endIdx; ++startIdx) {
637
+ if ((vnode = vnodes[startIdx])) {
638
+ elm = vnode.$elm$;
639
+ callNodeRefs(vnode);
640
+ {
641
+ // we're removing this element
642
+ // so it's possible we need to show slot fallback content now
643
+ checkSlotFallbackVisibility = true;
644
+ if (elm['s-ol']) {
645
+ // remove the original location comment
646
+ elm['s-ol'].remove();
647
+ }
648
+ else {
649
+ // it's possible that child nodes of the node
650
+ // that's being removed are slot nodes
651
+ putBackInOriginalLocation(elm, true);
652
+ }
653
+ }
654
+ // remove the vnode's element from the dom
655
+ elm.remove();
656
+ }
657
+ }
658
+ };
659
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
660
+ let oldStartIdx = 0;
661
+ let newStartIdx = 0;
662
+ let idxInOld = 0;
663
+ let i = 0;
664
+ let oldEndIdx = oldCh.length - 1;
665
+ let oldStartVnode = oldCh[0];
666
+ let oldEndVnode = oldCh[oldEndIdx];
667
+ let newEndIdx = newCh.length - 1;
668
+ let newStartVnode = newCh[0];
669
+ let newEndVnode = newCh[newEndIdx];
670
+ let node;
671
+ let elmToMove;
672
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
673
+ if (oldStartVnode == null) {
674
+ // Vnode might have been moved left
675
+ oldStartVnode = oldCh[++oldStartIdx];
676
+ }
677
+ else if (oldEndVnode == null) {
678
+ oldEndVnode = oldCh[--oldEndIdx];
679
+ }
680
+ else if (newStartVnode == null) {
681
+ newStartVnode = newCh[++newStartIdx];
682
+ }
683
+ else if (newEndVnode == null) {
684
+ newEndVnode = newCh[--newEndIdx];
685
+ }
686
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
687
+ patch(oldStartVnode, newStartVnode);
688
+ oldStartVnode = oldCh[++oldStartIdx];
689
+ newStartVnode = newCh[++newStartIdx];
690
+ }
691
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
692
+ patch(oldEndVnode, newEndVnode);
693
+ oldEndVnode = oldCh[--oldEndIdx];
694
+ newEndVnode = newCh[--newEndIdx];
695
+ }
696
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
697
+ // Vnode moved right
698
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
699
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
700
+ }
701
+ patch(oldStartVnode, newEndVnode);
702
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
703
+ oldStartVnode = oldCh[++oldStartIdx];
704
+ newEndVnode = newCh[--newEndIdx];
705
+ }
706
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
707
+ // Vnode moved left
708
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
709
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
710
+ }
711
+ patch(oldEndVnode, newStartVnode);
712
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
713
+ oldEndVnode = oldCh[--oldEndIdx];
714
+ newStartVnode = newCh[++newStartIdx];
715
+ }
716
+ else {
717
+ // createKeyToOldIdx
718
+ idxInOld = -1;
719
+ {
720
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
721
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
722
+ idxInOld = i;
723
+ break;
724
+ }
725
+ }
726
+ }
727
+ if (idxInOld >= 0) {
728
+ elmToMove = oldCh[idxInOld];
729
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
730
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
731
+ }
732
+ else {
733
+ patch(elmToMove, newStartVnode);
734
+ oldCh[idxInOld] = undefined;
735
+ node = elmToMove.$elm$;
736
+ }
737
+ newStartVnode = newCh[++newStartIdx];
738
+ }
739
+ else {
740
+ // new element
741
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
742
+ newStartVnode = newCh[++newStartIdx];
743
+ }
744
+ if (node) {
745
+ {
746
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
747
+ }
748
+ }
749
+ }
750
+ }
751
+ if (oldStartIdx > oldEndIdx) {
752
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
753
+ }
754
+ else if (newStartIdx > newEndIdx) {
755
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
756
+ }
757
+ };
758
+ const isSameVnode = (vnode1, vnode2) => {
759
+ // compare if two vnode to see if they're "technically" the same
760
+ // need to have the same element tag, and same key to be the same
761
+ if (vnode1.$tag$ === vnode2.$tag$) {
762
+ if (vnode1.$tag$ === 'slot') {
763
+ return vnode1.$name$ === vnode2.$name$;
764
+ }
765
+ {
766
+ return vnode1.$key$ === vnode2.$key$;
767
+ }
768
+ }
769
+ return false;
770
+ };
771
+ const referenceNode = (node) => {
772
+ // this node was relocated to a new location in the dom
773
+ // because of some other component's slot
774
+ // but we still have an html comment in place of where
775
+ // it's original location was according to it's original vdom
776
+ return (node && node['s-ol']) || node;
777
+ };
778
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
779
+ const patch = (oldVNode, newVNode) => {
780
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
781
+ const oldChildren = oldVNode.$children$;
782
+ const newChildren = newVNode.$children$;
783
+ const tag = newVNode.$tag$;
784
+ const text = newVNode.$text$;
785
+ let defaultHolder;
786
+ if (text === null) {
787
+ {
788
+ // test if we're rendering an svg element, or still rendering nodes inside of one
789
+ // only add this to the when the compiler sees we're using an svg somewhere
790
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
791
+ }
792
+ // element node
793
+ {
794
+ if (tag === 'slot')
795
+ ;
796
+ else {
797
+ // either this is the first render of an element OR it's an update
798
+ // AND we already know it's possible it could have changed
799
+ // this updates the element's css classes, attrs, props, listeners, etc.
800
+ updateElement(oldVNode, newVNode, isSvgMode);
801
+ }
802
+ }
803
+ if (oldChildren !== null && newChildren !== null) {
804
+ // looks like there's child vnodes for both the old and new vnodes
805
+ updateChildren(elm, oldChildren, newVNode, newChildren);
806
+ }
807
+ else if (newChildren !== null) {
808
+ // no old child vnodes, but there are new child vnodes to add
809
+ if (oldVNode.$text$ !== null) {
810
+ // the old vnode was text, so be sure to clear it out
811
+ elm.textContent = '';
812
+ }
813
+ // add the new vnode children
814
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
815
+ }
816
+ else if (oldChildren !== null) {
817
+ // no new child vnodes, but there are old child vnodes to remove
818
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
819
+ }
820
+ if (isSvgMode && tag === 'svg') {
821
+ isSvgMode = false;
822
+ }
823
+ }
824
+ else if ((defaultHolder = elm['s-cr'])) {
825
+ // this element has slotted content
826
+ defaultHolder.parentNode.textContent = text;
827
+ }
828
+ else if (oldVNode.$text$ !== text) {
829
+ // update the text content for the text only vnode
830
+ // and also only if the text is different than before
831
+ elm.data = text;
832
+ }
833
+ };
834
+ const updateFallbackSlotVisibility = (elm) => {
835
+ // tslint:disable-next-line: prefer-const
836
+ const childNodes = elm.childNodes;
837
+ let childNode;
838
+ let i;
839
+ let ilen;
840
+ let j;
841
+ let slotNameAttr;
842
+ let nodeType;
843
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
844
+ childNode = childNodes[i];
845
+ if (childNode.nodeType === 1 /* ElementNode */) {
846
+ if (childNode['s-sr']) {
847
+ // this is a slot fallback node
848
+ // get the slot name for this slot reference node
849
+ slotNameAttr = childNode['s-sn'];
850
+ // by default always show a fallback slot node
851
+ // then hide it if there are other slots in the light dom
852
+ childNode.hidden = false;
853
+ for (j = 0; j < ilen; j++) {
854
+ nodeType = childNodes[j].nodeType;
855
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
856
+ // this sibling node is from a different component OR is a named fallback slot node
857
+ if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
858
+ childNode.hidden = true;
859
+ break;
860
+ }
861
+ }
862
+ else {
863
+ // this is a default fallback slot node
864
+ // any element or text node (with content)
865
+ // should hide the default fallback slot node
866
+ if (nodeType === 1 /* ElementNode */ ||
867
+ (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
868
+ childNode.hidden = true;
869
+ break;
870
+ }
871
+ }
872
+ }
873
+ }
874
+ // keep drilling down
875
+ updateFallbackSlotVisibility(childNode);
876
+ }
877
+ }
878
+ };
879
+ const relocateNodes = [];
880
+ const relocateSlotContent = (elm) => {
881
+ // tslint:disable-next-line: prefer-const
882
+ let childNode;
883
+ let node;
884
+ let hostContentNodes;
885
+ let slotNameAttr;
886
+ let relocateNodeData;
887
+ let j;
888
+ let i = 0;
889
+ const childNodes = elm.childNodes;
890
+ const ilen = childNodes.length;
891
+ for (; i < ilen; i++) {
892
+ childNode = childNodes[i];
893
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
894
+ // first got the content reference comment node
895
+ // then we got it's parent, which is where all the host content is in now
896
+ hostContentNodes = node.parentNode.childNodes;
897
+ slotNameAttr = childNode['s-sn'];
898
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
899
+ node = hostContentNodes[j];
900
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
901
+ // let's do some relocating to its new home
902
+ // but never relocate a content reference node
903
+ // that is suppose to always represent the original content location
904
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
905
+ // it's possible we've already decided to relocate this node
906
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
907
+ // made some changes to slots
908
+ // let's make sure we also double check
909
+ // fallbacks are correctly hidden or shown
910
+ checkSlotFallbackVisibility = true;
911
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
912
+ if (relocateNodeData) {
913
+ // previously we never found a slot home for this node
914
+ // but turns out we did, so let's remember it now
915
+ relocateNodeData.$slotRefNode$ = childNode;
916
+ }
917
+ else {
918
+ // add to our list of nodes to relocate
919
+ relocateNodes.push({
920
+ $slotRefNode$: childNode,
921
+ $nodeToRelocate$: node,
922
+ });
923
+ }
924
+ if (node['s-sr']) {
925
+ relocateNodes.map((relocateNode) => {
926
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
927
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
928
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
929
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
930
+ }
931
+ }
932
+ });
933
+ }
934
+ }
935
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
936
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
937
+ // if we never find a home for this element then we'll need to hide it
938
+ relocateNodes.push({
939
+ $nodeToRelocate$: node,
940
+ });
941
+ }
942
+ }
943
+ }
944
+ }
945
+ if (childNode.nodeType === 1 /* ElementNode */) {
946
+ relocateSlotContent(childNode);
947
+ }
948
+ }
949
+ };
950
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
951
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
952
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
953
+ return true;
954
+ }
955
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
956
+ return true;
957
+ }
958
+ return false;
959
+ }
960
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
961
+ return true;
962
+ }
963
+ return slotNameAttr === '';
964
+ };
965
+ const callNodeRefs = (vNode) => {
966
+ {
967
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
968
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
969
+ }
970
+ };
971
+ const renderVdom = (hostRef, renderFnResults) => {
972
+ const hostElm = hostRef.$hostElement$;
973
+ const cmpMeta = hostRef.$cmpMeta$;
974
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
975
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
976
+ hostTagName = hostElm.tagName;
977
+ if (cmpMeta.$attrsToReflect$) {
978
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
979
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
980
+ }
981
+ rootVnode.$tag$ = null;
982
+ rootVnode.$flags$ |= 4 /* isHost */;
983
+ hostRef.$vnode$ = rootVnode;
984
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
985
+ {
986
+ scopeId = hostElm['s-sc'];
987
+ }
988
+ {
989
+ contentRef = hostElm['s-cr'];
990
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
991
+ // always reset
992
+ checkSlotFallbackVisibility = false;
993
+ }
994
+ // synchronous patch
995
+ patch(oldVNode, rootVnode);
996
+ {
997
+ // while we're moving nodes around existing nodes, temporarily disable
998
+ // the disconnectCallback from working
999
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1000
+ if (checkSlotRelocate) {
1001
+ relocateSlotContent(rootVnode.$elm$);
1002
+ let relocateData;
1003
+ let nodeToRelocate;
1004
+ let orgLocationNode;
1005
+ let parentNodeRef;
1006
+ let insertBeforeNode;
1007
+ let refNode;
1008
+ let i = 0;
1009
+ for (; i < relocateNodes.length; i++) {
1010
+ relocateData = relocateNodes[i];
1011
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1012
+ if (!nodeToRelocate['s-ol']) {
1013
+ // add a reference node marking this node's original location
1014
+ // keep a reference to this node for later lookups
1015
+ orgLocationNode =
1016
+ doc.createTextNode('');
1017
+ orgLocationNode['s-nr'] = nodeToRelocate;
1018
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1019
+ }
1020
+ }
1021
+ for (i = 0; i < relocateNodes.length; i++) {
1022
+ relocateData = relocateNodes[i];
1023
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1024
+ if (relocateData.$slotRefNode$) {
1025
+ // by default we're just going to insert it directly
1026
+ // after the slot reference node
1027
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1028
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1029
+ orgLocationNode = nodeToRelocate['s-ol'];
1030
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1031
+ refNode = orgLocationNode['s-nr'];
1032
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1033
+ refNode = refNode.nextSibling;
1034
+ if (!refNode || !refNode['s-nr']) {
1035
+ insertBeforeNode = refNode;
1036
+ break;
1037
+ }
1038
+ }
1039
+ }
1040
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1041
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1042
+ // we've checked that it's worth while to relocate
1043
+ // since that the node to relocate
1044
+ // has a different next sibling or parent relocated
1045
+ if (nodeToRelocate !== insertBeforeNode) {
1046
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1047
+ // probably a component in the index.html that doesn't have it's hostname set
1048
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1049
+ }
1050
+ // add it back to the dom but in its new home
1051
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1052
+ }
1053
+ }
1054
+ }
1055
+ else {
1056
+ // this node doesn't have a slot home to go to, so let's hide it
1057
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1058
+ nodeToRelocate.hidden = true;
1059
+ }
1060
+ }
1061
+ }
1062
+ }
1063
+ if (checkSlotFallbackVisibility) {
1064
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1065
+ }
1066
+ // done moving nodes around
1067
+ // allow the disconnect callback to work again
1068
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1069
+ // always reset
1070
+ relocateNodes.length = 0;
1071
+ }
1072
+ };
1073
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
1074
+ const createEvent = (ref, name, flags) => {
1075
+ const elm = getElement(ref);
1076
+ return {
1077
+ emit: (detail) => {
1078
+ return emitEvent(elm, name, {
1079
+ bubbles: !!(flags & 4 /* Bubbles */),
1080
+ composed: !!(flags & 2 /* Composed */),
1081
+ cancelable: !!(flags & 1 /* Cancellable */),
1082
+ detail,
1083
+ });
1084
+ },
1085
+ };
1086
+ };
1087
+ /**
1088
+ * Helper function to create & dispatch a custom Event on a provided target
1089
+ * @param elm the target of the Event
1090
+ * @param name the name to give the custom Event
1091
+ * @param opts options for configuring a custom Event
1092
+ * @returns the custom Event
1093
+ */
1094
+ const emitEvent = (elm, name, opts) => {
1095
+ const ev = plt.ce(name, opts);
1096
+ elm.dispatchEvent(ev);
1097
+ return ev;
1098
+ };
1099
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1100
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1101
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1102
+ }
1103
+ };
1104
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1105
+ {
1106
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1107
+ }
1108
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1109
+ hostRef.$flags$ |= 512 /* needsRerender */;
1110
+ return;
1111
+ }
1112
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1113
+ // there is no ancestor component or the ancestor component
1114
+ // has already fired off its lifecycle update then
1115
+ // fire off the initial update
1116
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1117
+ return writeTask(dispatch) ;
1118
+ };
1119
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1120
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1121
+ const instance = hostRef.$lazyInstance$ ;
1122
+ let promise;
1123
+ if (isInitialLoad) {
1124
+ {
1125
+ hostRef.$flags$ |= 256 /* isListenReady */;
1126
+ if (hostRef.$queuedListeners$) {
1127
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1128
+ hostRef.$queuedListeners$ = null;
1129
+ }
1130
+ }
1131
+ {
1132
+ promise = safeCall(instance, 'componentWillLoad');
1133
+ }
1134
+ }
1135
+ else {
1136
+ {
1137
+ promise = safeCall(instance, 'componentWillUpdate');
1138
+ }
1139
+ }
1140
+ {
1141
+ promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1142
+ }
1143
+ endSchedule();
1144
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1145
+ };
1146
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1147
+ // updateComponent
1148
+ const elm = hostRef.$hostElement$;
1149
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1150
+ const rc = elm['s-rc'];
1151
+ if (isInitialLoad) {
1152
+ // DOM WRITE!
1153
+ attachStyles(hostRef);
1154
+ }
1155
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1156
+ {
1157
+ callRender(hostRef, instance);
1158
+ }
1159
+ if (rc) {
1160
+ // ok, so turns out there are some child host elements
1161
+ // waiting on this parent element to load
1162
+ // let's fire off all update callbacks waiting
1163
+ rc.map((cb) => cb());
1164
+ elm['s-rc'] = undefined;
1165
+ }
1166
+ endRender();
1167
+ endUpdate();
1168
+ {
1169
+ const childrenPromises = elm['s-p'];
1170
+ const postUpdate = () => postUpdateComponent(hostRef);
1171
+ if (childrenPromises.length === 0) {
1172
+ postUpdate();
1173
+ }
1174
+ else {
1175
+ Promise.all(childrenPromises).then(postUpdate);
1176
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1177
+ childrenPromises.length = 0;
1178
+ }
1179
+ }
1180
+ };
1181
+ const callRender = (hostRef, instance, elm) => {
1182
+ try {
1183
+ renderingRef = instance;
1184
+ instance = instance.render() ;
1185
+ {
1186
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1187
+ }
1188
+ {
1189
+ hostRef.$flags$ |= 2 /* hasRendered */;
1190
+ }
1191
+ {
1192
+ {
1193
+ // looks like we've got child nodes to render into this host element
1194
+ // or we need to update the css class/attrs on the host element
1195
+ // DOM WRITE!
1196
+ {
1197
+ renderVdom(hostRef, instance);
1198
+ }
1199
+ }
1200
+ }
1201
+ }
1202
+ catch (e) {
1203
+ consoleError(e, hostRef.$hostElement$);
1204
+ }
1205
+ renderingRef = null;
1206
+ return null;
1207
+ };
1208
+ const getRenderingRef = () => renderingRef;
1209
+ const postUpdateComponent = (hostRef) => {
1210
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1211
+ const elm = hostRef.$hostElement$;
1212
+ const endPostUpdate = createTime('postUpdate', tagName);
1213
+ const instance = hostRef.$lazyInstance$ ;
1214
+ const ancestorComponent = hostRef.$ancestorComponent$;
1215
+ {
1216
+ safeCall(instance, 'componentDidRender');
1217
+ }
1218
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1219
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1220
+ {
1221
+ // DOM WRITE!
1222
+ addHydratedFlag(elm);
1223
+ }
1224
+ {
1225
+ safeCall(instance, 'componentDidLoad');
1226
+ }
1227
+ endPostUpdate();
1228
+ {
1229
+ hostRef.$onReadyResolve$(elm);
1230
+ if (!ancestorComponent) {
1231
+ appDidLoad();
1232
+ }
1233
+ }
1234
+ }
1235
+ else {
1236
+ {
1237
+ safeCall(instance, 'componentDidUpdate');
1238
+ }
1239
+ endPostUpdate();
1240
+ }
1241
+ {
1242
+ hostRef.$onInstanceResolve$(elm);
1243
+ }
1244
+ // load events fire from bottom to top
1245
+ // the deepest elements load first then bubbles up
1246
+ {
1247
+ if (hostRef.$onRenderResolve$) {
1248
+ hostRef.$onRenderResolve$();
1249
+ hostRef.$onRenderResolve$ = undefined;
1250
+ }
1251
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1252
+ nextTick(() => scheduleUpdate(hostRef, false));
1253
+ }
1254
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1255
+ }
1256
+ // ( •_•)
1257
+ // ( •_•)>⌐■-■
1258
+ // (⌐■_■)
1259
+ };
1260
+ const forceUpdate = (ref) => {
1261
+ {
1262
+ const hostRef = getHostRef(ref);
1263
+ const isConnected = hostRef.$hostElement$.isConnected;
1264
+ if (isConnected &&
1265
+ (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1266
+ scheduleUpdate(hostRef, false);
1267
+ }
1268
+ // Returns "true" when the forced update was successfully scheduled
1269
+ return isConnected;
1270
+ }
1271
+ };
1272
+ const appDidLoad = (who) => {
1273
+ // on appload
1274
+ // we have finish the first big initial render
1275
+ {
1276
+ addHydratedFlag(doc.documentElement);
1277
+ }
1278
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1279
+ };
1280
+ const safeCall = (instance, method, arg) => {
1281
+ if (instance && instance[method]) {
1282
+ try {
1283
+ return instance[method](arg);
1284
+ }
1285
+ catch (e) {
1286
+ consoleError(e);
1287
+ }
1288
+ }
1289
+ return undefined;
1290
+ };
1291
+ const then = (promise, thenFn) => {
1292
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1293
+ };
1294
+ const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
1295
+ ;
1296
+ /**
1297
+ * Parse a new property value for a given property type.
1298
+ *
1299
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1300
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1301
+ * 1. `any`, the type given to `propValue` in the function signature
1302
+ * 2. the type stored from `propType`.
1303
+ *
1304
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1305
+ *
1306
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1307
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1308
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1309
+ * ```tsx
1310
+ * <my-cmp prop-val={0}></my-cmp>
1311
+ * ```
1312
+ *
1313
+ * HTML prop values on the other hand, will always a string
1314
+ *
1315
+ * @param propValue the new value to coerce to some type
1316
+ * @param propType the type of the prop, expressed as a binary number
1317
+ * @returns the parsed/coerced value
1318
+ */
1319
+ const parsePropertyValue = (propValue, propType) => {
1320
+ // ensure this value is of the correct prop type
1321
+ if (propValue != null && !isComplexType(propValue)) {
1322
+ if (propType & 4 /* Boolean */) {
1323
+ // per the HTML spec, any string value means it is a boolean true value
1324
+ // but we'll cheat here and say that the string "false" is the boolean false
1325
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
1326
+ }
1327
+ if (propType & 2 /* Number */) {
1328
+ // force it to be a number
1329
+ return parseFloat(propValue);
1330
+ }
1331
+ if (propType & 1 /* String */) {
1332
+ // could have been passed as a number or boolean
1333
+ // but we still want it as a string
1334
+ return String(propValue);
1335
+ }
1336
+ // redundant return here for better minification
1337
+ return propValue;
1338
+ }
1339
+ // not sure exactly what type we want
1340
+ // so no need to change to a different type
1341
+ return propValue;
1342
+ };
1343
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1344
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1345
+ // check our new property value against our internal value
1346
+ const hostRef = getHostRef(ref);
1347
+ const elm = hostRef.$hostElement$ ;
1348
+ const oldVal = hostRef.$instanceValues$.get(propName);
1349
+ const flags = hostRef.$flags$;
1350
+ const instance = hostRef.$lazyInstance$ ;
1351
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1352
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1353
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1354
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1355
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1356
+ // gadzooks! the property's value has changed!!
1357
+ // set our new value!
1358
+ hostRef.$instanceValues$.set(propName, newVal);
1359
+ if (instance) {
1360
+ // get an array of method names of watch functions to call
1361
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1362
+ const watchMethods = cmpMeta.$watchers$[propName];
1363
+ if (watchMethods) {
1364
+ // this instance is watching for when this property changed
1365
+ watchMethods.map((watchMethodName) => {
1366
+ try {
1367
+ // fire off each of the watch methods that are watching this property
1368
+ instance[watchMethodName](newVal, oldVal, propName);
1369
+ }
1370
+ catch (e) {
1371
+ consoleError(e, elm);
1372
+ }
1373
+ });
1374
+ }
1375
+ }
1376
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1377
+ if (instance.componentShouldUpdate) {
1378
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1379
+ return;
1380
+ }
1381
+ }
1382
+ // looks like this value actually changed, so we've got work to do!
1383
+ // but only if we've already rendered, otherwise just chill out
1384
+ // queue that we need to do an update, but don't worry about queuing
1385
+ // up millions cuz this function ensures it only runs once
1386
+ scheduleUpdate(hostRef, false);
1387
+ }
1388
+ }
1389
+ }
1390
+ };
1391
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1392
+ if (cmpMeta.$members$) {
1393
+ if (Cstr.watchers) {
1394
+ cmpMeta.$watchers$ = Cstr.watchers;
1395
+ }
1396
+ // It's better to have a const than two Object.entries()
1397
+ const members = Object.entries(cmpMeta.$members$);
1398
+ const prototype = Cstr.prototype;
1399
+ members.map(([memberName, [memberFlags]]) => {
1400
+ if ((memberFlags & 31 /* Prop */ ||
1401
+ ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1402
+ // proxyComponent - prop
1403
+ Object.defineProperty(prototype, memberName, {
1404
+ get() {
1405
+ // proxyComponent, get value
1406
+ return getValue(this, memberName);
1407
+ },
1408
+ set(newValue) {
1409
+ // proxyComponent, set value
1410
+ setValue(this, memberName, newValue, cmpMeta);
1411
+ },
1412
+ configurable: true,
1413
+ enumerable: true,
1414
+ });
1415
+ }
1416
+ else if (flags & 1 /* isElementConstructor */ &&
1417
+ memberFlags & 64 /* Method */) {
1418
+ // proxyComponent - method
1419
+ Object.defineProperty(prototype, memberName, {
1420
+ value(...args) {
1421
+ const ref = getHostRef(this);
1422
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1423
+ },
1424
+ });
1425
+ }
1426
+ });
1427
+ if ((flags & 1 /* isElementConstructor */)) {
1428
+ const attrNameToPropName = new Map();
1429
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1430
+ plt.jmp(() => {
1431
+ const propName = attrNameToPropName.get(attrName);
1432
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1433
+ // in the case where an attribute was set inline.
1434
+ // ```html
1435
+ // <my-component some-attribute="some-value"></my-component>
1436
+ // ```
1437
+ //
1438
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1439
+ // programmatically changes it before it has been upgraded as shown below:
1440
+ //
1441
+ // ```html
1442
+ // <!-- this component has _not_ been upgraded yet -->
1443
+ // <my-component id="test" some-attribute="some-value"></my-component>
1444
+ // <script>
1445
+ // // grab non-upgraded component
1446
+ // el = document.querySelector("#test");
1447
+ // el.someAttribute = "another-value";
1448
+ // // upgrade component
1449
+ // customElements.define('my-component', MyComponent);
1450
+ // </script>
1451
+ // ```
1452
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1453
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1454
+ // to the value that was set inline i.e. "some-value" from above example. When
1455
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1456
+ //
1457
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1458
+ // by connectedCallback as this attributeChangedCallback will not fire.
1459
+ //
1460
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1461
+ //
1462
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1463
+ // properties here given that this goes against best practices outlined here
1464
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1465
+ if (this.hasOwnProperty(propName)) {
1466
+ newValue = this[propName];
1467
+ delete this[propName];
1468
+ }
1469
+ else if (prototype.hasOwnProperty(propName) &&
1470
+ typeof this[propName] === 'number' &&
1471
+ this[propName] == newValue) {
1472
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1473
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1474
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1475
+ return;
1476
+ }
1477
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1478
+ });
1479
+ };
1480
+ // create an array of attributes to observe
1481
+ // and also create a map of html attribute name to js property name
1482
+ Cstr.observedAttributes = members
1483
+ .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1484
+ .map(([propName, m]) => {
1485
+ const attrName = m[1] || propName;
1486
+ attrNameToPropName.set(attrName, propName);
1487
+ if (m[0] & 512 /* ReflectAttr */) {
1488
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1489
+ }
1490
+ return attrName;
1491
+ });
1492
+ }
1493
+ }
1494
+ return Cstr;
1495
+ };
1496
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1497
+ // initializeComponent
1498
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1499
+ {
1500
+ // we haven't initialized this element yet
1501
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1502
+ // lazy loaded components
1503
+ // request the component's implementation to be
1504
+ // wired up with the host element
1505
+ Cstr = loadModule(cmpMeta);
1506
+ if (Cstr.then) {
1507
+ // Await creates a micro-task avoid if possible
1508
+ const endLoad = uniqueTime();
1509
+ Cstr = await Cstr;
1510
+ endLoad();
1511
+ }
1512
+ if (!Cstr.isProxied) {
1513
+ // we've never proxied this Constructor before
1514
+ // let's add the getters/setters to its prototype before
1515
+ // the first time we create an instance of the implementation
1516
+ {
1517
+ cmpMeta.$watchers$ = Cstr.watchers;
1518
+ }
1519
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1520
+ Cstr.isProxied = true;
1521
+ }
1522
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1523
+ // ok, time to construct the instance
1524
+ // but let's keep track of when we start and stop
1525
+ // so that the getters/setters don't incorrectly step on data
1526
+ {
1527
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1528
+ }
1529
+ // construct the lazy-loaded component implementation
1530
+ // passing the hostRef is very important during
1531
+ // construction in order to directly wire together the
1532
+ // host element and the lazy-loaded instance
1533
+ try {
1534
+ new Cstr(hostRef);
1535
+ }
1536
+ catch (e) {
1537
+ consoleError(e);
1538
+ }
1539
+ {
1540
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1541
+ }
1542
+ {
1543
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1544
+ }
1545
+ endNewInstance();
1546
+ fireConnectedCallback(hostRef.$lazyInstance$);
1547
+ }
1548
+ if (Cstr.style) {
1549
+ // this component has styles but we haven't registered them yet
1550
+ let style = Cstr.style;
1551
+ const scopeId = getScopeId(cmpMeta);
1552
+ if (!styles.has(scopeId)) {
1553
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1554
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1555
+ endRegisterStyles();
1556
+ }
1557
+ }
1558
+ }
1559
+ // we've successfully created a lazy instance
1560
+ const ancestorComponent = hostRef.$ancestorComponent$;
1561
+ const schedule = () => scheduleUpdate(hostRef, true);
1562
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1563
+ // this is the initial load and this component it has an ancestor component
1564
+ // but the ancestor component has NOT fired its will update lifecycle yet
1565
+ // so let's just cool our jets and wait for the ancestor to continue first
1566
+ // this will get fired off when the ancestor component
1567
+ // finally gets around to rendering its lazy self
1568
+ // fire off the initial update
1569
+ ancestorComponent['s-rc'].push(schedule);
1570
+ }
1571
+ else {
1572
+ schedule();
1573
+ }
1574
+ };
1575
+ const fireConnectedCallback = (instance) => {
1576
+ {
1577
+ safeCall(instance, 'connectedCallback');
1578
+ }
1579
+ };
1580
+ const connectedCallback = (elm) => {
1581
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1582
+ const hostRef = getHostRef(elm);
1583
+ const cmpMeta = hostRef.$cmpMeta$;
1584
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1585
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1586
+ // first time this component has connected
1587
+ hostRef.$flags$ |= 1 /* hasConnected */;
1588
+ {
1589
+ // initUpdate
1590
+ // if the slot polyfill is required we'll need to put some nodes
1591
+ // in here to act as original content anchors as we move nodes around
1592
+ // host element has been connected to the DOM
1593
+ if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1594
+ setContentReference(elm);
1595
+ }
1596
+ }
1597
+ {
1598
+ // find the first ancestor component (if there is one) and register
1599
+ // this component as one of the actively loading child components for its ancestor
1600
+ let ancestorComponent = elm;
1601
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1602
+ // climb up the ancestors looking for the first
1603
+ // component that hasn't finished its lifecycle update yet
1604
+ if (ancestorComponent['s-p']) {
1605
+ // we found this components first ancestor component
1606
+ // keep a reference to this component's ancestor component
1607
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1608
+ break;
1609
+ }
1610
+ }
1611
+ }
1612
+ // Lazy properties
1613
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1614
+ if (cmpMeta.$members$) {
1615
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1616
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1617
+ const value = elm[memberName];
1618
+ delete elm[memberName];
1619
+ elm[memberName] = value;
1620
+ }
1621
+ });
1622
+ }
1623
+ {
1624
+ initializeComponent(elm, hostRef, cmpMeta);
1625
+ }
1626
+ }
1627
+ else {
1628
+ // not the first time this has connected
1629
+ // reattach any event listeners to the host
1630
+ // since they would have been removed when disconnected
1631
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1632
+ // fire off connectedCallback() on component instance
1633
+ fireConnectedCallback(hostRef.$lazyInstance$);
1634
+ }
1635
+ endConnected();
1636
+ }
1637
+ };
1638
+ const setContentReference = (elm) => {
1639
+ // only required when we're NOT using native shadow dom (slot)
1640
+ // or this browser doesn't support native shadow dom
1641
+ // and this host element was NOT created with SSR
1642
+ // let's pick out the inner content for slot projection
1643
+ // create a node to represent where the original
1644
+ // content was first placed, which is useful later on
1645
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1646
+ contentRefElm['s-cn'] = true;
1647
+ elm.insertBefore(contentRefElm, elm.firstChild);
1648
+ };
1649
+ const disconnectedCallback = (elm) => {
1650
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1651
+ const hostRef = getHostRef(elm);
1652
+ const instance = hostRef.$lazyInstance$ ;
1653
+ {
1654
+ if (hostRef.$rmListeners$) {
1655
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1656
+ hostRef.$rmListeners$ = undefined;
1657
+ }
1658
+ }
1659
+ {
1660
+ safeCall(instance, 'disconnectedCallback');
1661
+ }
1662
+ }
1663
+ };
1664
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1665
+ const endBootstrap = createTime();
1666
+ const cmpTags = [];
1667
+ const exclude = options.exclude || [];
1668
+ const customElements = win.customElements;
1669
+ const head = doc.head;
1670
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1671
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1672
+ const deferredConnectedCallbacks = [];
1673
+ let appLoadFallback;
1674
+ let isBootstrapping = true;
1675
+ Object.assign(plt, options);
1676
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1677
+ lazyBundles.map((lazyBundle) => {
1678
+ lazyBundle[1].map((compactMeta) => {
1679
+ const cmpMeta = {
1680
+ $flags$: compactMeta[0],
1681
+ $tagName$: compactMeta[1],
1682
+ $members$: compactMeta[2],
1683
+ $listeners$: compactMeta[3],
1684
+ };
1685
+ {
1686
+ cmpMeta.$members$ = compactMeta[2];
1687
+ }
1688
+ {
1689
+ cmpMeta.$listeners$ = compactMeta[3];
1690
+ }
1691
+ {
1692
+ cmpMeta.$attrsToReflect$ = [];
1693
+ }
1694
+ {
1695
+ cmpMeta.$watchers$ = {};
1696
+ }
1697
+ const tagName = cmpMeta.$tagName$;
1698
+ const HostElement = class extends HTMLElement {
1699
+ // StencilLazyHost
1700
+ constructor(self) {
1701
+ // @ts-ignore
1702
+ super(self);
1703
+ self = this;
1704
+ registerHost(self, cmpMeta);
1705
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1706
+ // this component is using shadow dom
1707
+ // and this browser supports shadow dom
1708
+ // add the read-only property "shadowRoot" to the host element
1709
+ // adding the shadow root build conditionals to minimize runtime
1710
+ {
1711
+ {
1712
+ self.attachShadow({ mode: 'open' });
1713
+ }
1714
+ }
1715
+ }
1716
+ }
1717
+ connectedCallback() {
1718
+ if (appLoadFallback) {
1719
+ clearTimeout(appLoadFallback);
1720
+ appLoadFallback = null;
1721
+ }
1722
+ if (isBootstrapping) {
1723
+ // connectedCallback will be processed once all components have been registered
1724
+ deferredConnectedCallbacks.push(this);
1725
+ }
1726
+ else {
1727
+ plt.jmp(() => connectedCallback(this));
1728
+ }
1729
+ }
1730
+ disconnectedCallback() {
1731
+ plt.jmp(() => disconnectedCallback(this));
1732
+ }
1733
+ componentOnReady() {
1734
+ return getHostRef(this).$onReadyPromise$;
1735
+ }
1736
+ };
1737
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1738
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1739
+ cmpTags.push(tagName);
1740
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1741
+ }
1742
+ });
1743
+ });
1744
+ {
1745
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1746
+ visibilityStyle.setAttribute('data-styles', '');
1747
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1748
+ }
1749
+ // Process deferred connectedCallbacks now all components have been registered
1750
+ isBootstrapping = false;
1751
+ if (deferredConnectedCallbacks.length) {
1752
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1753
+ }
1754
+ else {
1755
+ {
1756
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1757
+ }
1758
+ }
1759
+ // Fallback appLoad event
1760
+ endBootstrap();
1761
+ };
1762
+ const getAssetPath = (path) => {
1763
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
1764
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1765
+ };
1766
+ const hostRefs = new WeakMap();
1767
+ const getHostRef = (ref) => hostRefs.get(ref);
1768
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1769
+ const registerHost = (elm, cmpMeta) => {
1770
+ const hostRef = {
1771
+ $flags$: 0,
1772
+ $hostElement$: elm,
1773
+ $cmpMeta$: cmpMeta,
1774
+ $instanceValues$: new Map(),
1775
+ };
1776
+ {
1777
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1778
+ }
1779
+ {
1780
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1781
+ elm['s-p'] = [];
1782
+ elm['s-rc'] = [];
1783
+ }
1784
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1785
+ return hostRefs.set(elm, hostRef);
1786
+ };
1787
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1788
+ const consoleError = (e, el) => (0, console.error)(e, el);
1789
+ const cmpModules = /*@__PURE__*/ new Map();
1790
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1791
+ // loadModuleImport
1792
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1793
+ const bundleId = cmpMeta.$lazyBundleId$;
1794
+ const module = cmpModules.get(bundleId) ;
1795
+ if (module) {
1796
+ return module[exportName];
1797
+ }
1798
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1799
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1800
+ /* @vite-ignore */
1801
+ /* webpackInclude: /\.entry\.js$/ */
1802
+ /* webpackExclude: /\.system\.entry\.js$/ */
1803
+ /* webpackMode: "lazy" */
1804
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1805
+ {
1806
+ cmpModules.set(bundleId, importedModule);
1807
+ }
1808
+ return importedModule[exportName];
1809
+ }, consoleError);
1810
+ };
1811
+ const styles = new Map();
1812
+ const queueDomReads = [];
1813
+ const queueDomWrites = [];
1814
+ const queueTask = (queue, write) => (cb) => {
1815
+ queue.push(cb);
1816
+ if (!queuePending) {
1817
+ queuePending = true;
1818
+ if (write && plt.$flags$ & 4 /* queueSync */) {
1819
+ nextTick(flush);
1820
+ }
1821
+ else {
1822
+ plt.raf(flush);
1823
+ }
1824
+ }
1825
+ };
1826
+ const consume = (queue) => {
1827
+ for (let i = 0; i < queue.length; i++) {
1828
+ try {
1829
+ queue[i](performance.now());
1830
+ }
1831
+ catch (e) {
1832
+ consoleError(e);
1833
+ }
1834
+ }
1835
+ queue.length = 0;
1836
+ };
1837
+ const flush = () => {
1838
+ // always force a bunch of medium callbacks to run, but still have
1839
+ // a throttle on how many can run in a certain time
1840
+ // DOM READS!!!
1841
+ consume(queueDomReads);
1842
+ // DOM WRITES!!!
1843
+ {
1844
+ consume(queueDomWrites);
1845
+ if ((queuePending = queueDomReads.length > 0)) {
1846
+ // still more to do yet, but we've run out of time
1847
+ // let's let this thing cool off and try again in the next tick
1848
+ plt.raf(flush);
1849
+ }
1850
+ }
1851
+ };
1852
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1853
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1854
+
1855
+ exports.Host = Host;
1856
+ exports.bootstrapLazy = bootstrapLazy;
1857
+ exports.createEvent = createEvent;
1858
+ exports.forceUpdate = forceUpdate;
1859
+ exports.getAssetPath = getAssetPath;
1860
+ exports.getElement = getElement;
1861
+ exports.getRenderingRef = getRenderingRef;
1862
+ exports.h = h;
1863
+ exports.promiseResolve = promiseResolve;
1864
+ exports.registerInstance = registerInstance;