bromcom-ui 2.7.36-rc.11 → 2.7.36-rc.12

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 (635) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-7386f0eb.entry.js → p-043fadc2.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-50d9b950.entry.js → p-07990577.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-0505b430.entry.js → p-10b6faa4.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-febeb28c.entry.js → p-1e15f9e2.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-fcd2ded4.entry.js → p-208ecb7e.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-bddecc0e.js → p-2900dc18.js} +1 -1
  8. package/dist/bromcom-ui/{p-eefa89b6.entry.js → p-2e9f7f67.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-c00cbc3c.js → p-2ed0035c.js} +1 -1
  10. package/dist/bromcom-ui/{p-7d21bcdb.entry.js → p-33da36fe.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-d2d00b45.entry.js → p-427d4cfe.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-8a189e31.entry.js → p-45f4c48d.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-a7f8e8af.entry.js → p-4cffee4c.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-c8dae4b7.entry.js → p-4f425a06.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-d2101bab.entry.js → p-5562a6f8.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-b339c2f1.entry.js → p-5cfa60d9.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-ae8f263e.entry.js → p-5dbd14ee.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-8a66f4e1.entry.js → p-66ca7f5c.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-cef328d2.entry.js → p-73a5514c.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-1e4c4c89.entry.js → p-7a1590ef.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-1c211b1a.entry.js → p-7aa7ba95.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-4595d534.entry.js → p-7afaa032.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-89241a6e.entry.js → p-85b66c30.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-3330b325.js → p-8737b92d.js} +1 -1
  25. package/dist/bromcom-ui/{p-1aa2c6f1.entry.js → p-8e30c3ab.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-36168a4c.entry.js → p-8fc020d6.entry.js} +1 -1
  27. package/dist/bromcom-ui/p-923d0d7b.js +5 -0
  28. package/dist/bromcom-ui/{p-ed6d2390.entry.js → p-95506f91.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-950af117.js → p-971036f3.js} +1 -1
  30. package/dist/bromcom-ui/{p-00028e84.entry.js → p-99f802df.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-b0ecb69b.entry.js → p-9a843ddf.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-ed8e6005.entry.js → p-9cca42a9.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-81dff515.entry.js → p-a855cd39.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-ab7bb0f5.entry.js → p-a9838689.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-d7189ee1.entry.js → p-abedcdee.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-d8ef8c9d.entry.js → p-b5c23d92.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-c5c60034.entry.js → p-bf52d000.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-49be07bc.entry.js → p-c67b5116.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-01951e92.entry.js → p-ce62e9f4.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-16f3143c.entry.js → p-cf1e59a8.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-c5dcbc05.entry.js → p-dc5789ce.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-c268491e.entry.js → p-dc94fe09.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-ae99e107.entry.js → p-ddce2fc7.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-d2f22f4b.js → p-df8fe884.js} +1 -1
  45. package/dist/bromcom-ui/{p-97a630d5.entry.js → p-e43c47dc.entry.js} +1 -1
  46. package/dist/bromcom-ui/p-ee265d02.js +5 -0
  47. package/package.json +1 -1
  48. package/dist/bromcom-ui/p-940d3fc3.js +0 -5
  49. package/dist/bromcom-ui/p-a6fb1b6f.js +0 -5
  50. package/dist/cjs/_commonjsHelpers-bd20f4c0.js +0 -29
  51. package/dist/cjs/bcm-2c51bf0c.js +0 -448
  52. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -85
  53. package/dist/cjs/bcm-alert.cjs.entry.js +0 -112
  54. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -50
  55. package/dist/cjs/bcm-autocomplete.cjs.entry.js +0 -155
  56. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -156
  57. package/dist/cjs/bcm-box.cjs.entry.js +0 -35
  58. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +0 -67
  59. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -102
  60. package/dist/cjs/bcm-button_13.cjs.entry.js +0 -1981
  61. package/dist/cjs/bcm-card.cjs.entry.js +0 -76
  62. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -409
  63. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2570
  64. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -203
  65. package/dist/cjs/bcm-chip.cjs.entry.js +0 -70
  66. package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -57
  67. package/dist/cjs/bcm-collapse.cjs.entry.js +0 -58
  68. package/dist/cjs/bcm-colorpicker.cjs.entry.js +0 -433
  69. package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -171
  70. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1432
  71. package/dist/cjs/bcm-default.cjs.entry.js +0 -40
  72. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -111
  73. package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -78
  74. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -127
  75. package/dist/cjs/bcm-form-2.cjs.entry.js +0 -205
  76. package/dist/cjs/bcm-form-group.cjs.entry.js +0 -45
  77. package/dist/cjs/bcm-input.cjs.entry.js +0 -324
  78. package/dist/cjs/bcm-link.cjs.entry.js +0 -62
  79. package/dist/cjs/bcm-linked.cjs.entry.js +0 -83
  80. package/dist/cjs/bcm-list.cjs.entry.js +0 -1761
  81. package/dist/cjs/bcm-message.cjs.entry.js +0 -99
  82. package/dist/cjs/bcm-modal.cjs.entry.js +0 -137
  83. package/dist/cjs/bcm-notification.cjs.entry.js +0 -103
  84. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -398
  85. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -157
  86. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -122
  87. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -112
  88. package/dist/cjs/bcm-progress.cjs.entry.js +0 -174
  89. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -267
  90. package/dist/cjs/bcm-radio.cjs.entry.js +0 -104
  91. package/dist/cjs/bcm-range.cjs.entry.js +0 -189
  92. package/dist/cjs/bcm-result.cjs.entry.js +0 -79
  93. package/dist/cjs/bcm-search.cjs.entry.js +0 -256
  94. package/dist/cjs/bcm-select-group.cjs.entry.js +0 -31
  95. package/dist/cjs/bcm-select-option.cjs.entry.js +0 -37
  96. package/dist/cjs/bcm-select.cjs.entry.js +0 -1181
  97. package/dist/cjs/bcm-skeleton.cjs.entry.js +0 -56
  98. package/dist/cjs/bcm-step.cjs.entry.js +0 -93
  99. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -211
  100. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -172
  101. package/dist/cjs/bcm-tab-pane.cjs.entry.js +0 -70
  102. package/dist/cjs/bcm-tab.cjs.entry.js +0 -89
  103. package/dist/cjs/bcm-table.cjs.entry.js +0 -78
  104. package/dist/cjs/bcm-tabs-content.cjs.entry.js +0 -62
  105. package/dist/cjs/bcm-tabs.cjs.entry.js +0 -390
  106. package/dist/cjs/bcm-tag.cjs.entry.js +0 -101
  107. package/dist/cjs/bcm-textarea.cjs.entry.js +0 -150
  108. package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -139
  109. package/dist/cjs/bcm-timeline-item.cjs.entry.js +0 -55
  110. package/dist/cjs/bcm-timeline.cjs.entry.js +0 -73
  111. package/dist/cjs/bcm-treeview-group.cjs.entry.js +0 -23
  112. package/dist/cjs/bromcom-ui.cjs.js +0 -24
  113. package/dist/cjs/caption-template-abc6b8bd.js +0 -34
  114. package/dist/cjs/color-helper-c9882bd8.js +0 -490
  115. package/dist/cjs/colors-56282b00.js +0 -224
  116. package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
  117. package/dist/cjs/element-dragger-a8562f82.js +0 -279
  118. package/dist/cjs/generate-f31baeb2.js +0 -198
  119. package/dist/cjs/global-b0d21446.js +0 -15
  120. package/dist/cjs/index-53637125.js +0 -1864
  121. package/dist/cjs/index-89682d55.js +0 -193
  122. package/dist/cjs/index-a2b50e51.js +0 -64
  123. package/dist/cjs/index.cjs.js +0 -6
  124. package/dist/cjs/input-template-9d262873.js +0 -86
  125. package/dist/cjs/is-load-decorator-20a4687b.js +0 -56
  126. package/dist/cjs/json-parse-decarator-c3596560.js +0 -40
  127. package/dist/cjs/label-template-b35d7e8e.js +0 -23
  128. package/dist/cjs/loader.cjs.js +0 -26
  129. package/dist/cjs/number-helper-0975436a.js +0 -20
  130. package/dist/cjs/old-bcm-popover.cjs.entry.js +0 -104
  131. package/dist/cjs/popover-placement-87901bb3.js +0 -98
  132. package/dist/cjs/property-decorators-b0cb1a50.js +0 -33
  133. package/dist/cjs/slot-template-546b0f5a.js +0 -15
  134. package/dist/cjs/stepper-states-0a54437d.js +0 -83
  135. package/dist/cjs/string-helper-df40a475.js +0 -134
  136. package/dist/cjs/tooltip-helper-6b5d41a4.js +0 -1449
  137. package/dist/cjs/types-3871235f.js +0 -32
  138. package/dist/cjs/types-6eb7e028.js +0 -32
  139. package/dist/cjs/types-cc4adee7.js +0 -19
  140. package/dist/cjs/utils-fc077139.js +0 -131
  141. package/dist/cjs/validators-f572960b.js +0 -33
  142. package/dist/collection/collection-manifest.json +0 -95
  143. package/dist/collection/components/atoms/avatar/avatar.css +0 -448
  144. package/dist/collection/components/atoms/avatar/avatar.js +0 -259
  145. package/dist/collection/components/atoms/badge/badge.css +0 -481
  146. package/dist/collection/components/atoms/badge/badge.js +0 -224
  147. package/dist/collection/components/atoms/box/box.js +0 -23
  148. package/dist/collection/components/atoms/button/button.css +0 -637
  149. package/dist/collection/components/atoms/button/button.js +0 -525
  150. package/dist/collection/components/atoms/button/types.js +0 -170
  151. package/dist/collection/components/atoms/chip/chip.css +0 -453
  152. package/dist/collection/components/atoms/chip/chip.js +0 -187
  153. package/dist/collection/components/atoms/divider/divider.css +0 -142
  154. package/dist/collection/components/atoms/divider/divider.js +0 -83
  155. package/dist/collection/components/atoms/icon/icon.css +0 -127
  156. package/dist/collection/components/atoms/icon/icon.js +0 -70
  157. package/dist/collection/components/atoms/label/label.css +0 -408
  158. package/dist/collection/components/atoms/label/label.js +0 -216
  159. package/dist/collection/components/atoms/link/link.css +0 -419
  160. package/dist/collection/components/atoms/link/link.js +0 -176
  161. package/dist/collection/components/atoms/states/button.states.js +0 -31
  162. package/dist/collection/components/atoms/tag/tag.js +0 -334
  163. package/dist/collection/components/atoms/tag/types.js +0 -30
  164. package/dist/collection/components/atoms/typography/typography.js +0 -23
  165. package/dist/collection/components/molecules/accordion/accordion.css +0 -127
  166. package/dist/collection/components/molecules/accordion/accordion.js +0 -129
  167. package/dist/collection/components/molecules/alert/alert.css +0 -191
  168. package/dist/collection/components/molecules/alert/alert.js +0 -298
  169. package/dist/collection/components/molecules/alert/types.js +0 -23
  170. package/dist/collection/components/molecules/breadcrumb/breadcrumb.css +0 -201
  171. package/dist/collection/components/molecules/breadcrumb/breadcrumb.js +0 -155
  172. package/dist/collection/components/molecules/breadcrumb/types.js +0 -5
  173. package/dist/collection/components/molecules/button-group/button-group.css +0 -423
  174. package/dist/collection/components/molecules/button-group/button-group.js +0 -235
  175. package/dist/collection/components/molecules/card/card.css +0 -408
  176. package/dist/collection/components/molecules/card/card.js +0 -128
  177. package/dist/collection/components/molecules/checkbox/checkbox-lite.js +0 -237
  178. package/dist/collection/components/molecules/checkbox/checkbox.css +0 -1280
  179. package/dist/collection/components/molecules/checkbox/checkbox.js +0 -688
  180. package/dist/collection/components/molecules/checkbox/group.css +0 -156
  181. package/dist/collection/components/molecules/checkbox/group.js +0 -779
  182. package/dist/collection/components/molecules/drawer/drawer.css +0 -502
  183. package/dist/collection/components/molecules/drawer/drawer.js +0 -272
  184. package/dist/collection/components/molecules/dropdown/dropdown.css +0 -419
  185. package/dist/collection/components/molecules/dropdown/dropdown.js +0 -839
  186. package/dist/collection/components/molecules/empty/empty.js +0 -44
  187. package/dist/collection/components/molecules/error-layout/error-layout.css +0 -396
  188. package/dist/collection/components/molecules/error-layout/error-layout.js +0 -177
  189. package/dist/collection/components/molecules/error-layout/types.js +0 -5
  190. package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +0 -488
  191. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +0 -322
  192. package/dist/collection/components/molecules/input/input.css +0 -1208
  193. package/dist/collection/components/molecules/input/input.js +0 -1170
  194. package/dist/collection/components/molecules/input/types.js +0 -17
  195. package/dist/collection/components/molecules/item/item.css +0 -446
  196. package/dist/collection/components/molecules/item/item.js +0 -151
  197. package/dist/collection/components/molecules/items/items.js +0 -84
  198. package/dist/collection/components/molecules/linked/linked.js +0 -179
  199. package/dist/collection/components/molecules/menu/menu.css +0 -718
  200. package/dist/collection/components/molecules/menu/menu.js +0 -618
  201. package/dist/collection/components/molecules/message/message.css +0 -165
  202. package/dist/collection/components/molecules/message/message.js +0 -222
  203. package/dist/collection/components/molecules/message/types.js +0 -14
  204. package/dist/collection/components/molecules/modal/modal.css +0 -526
  205. package/dist/collection/components/molecules/modal/modal.js +0 -379
  206. package/dist/collection/components/molecules/notification/notification.css +0 -183
  207. package/dist/collection/components/molecules/notification/notification.js +0 -244
  208. package/dist/collection/components/molecules/notification/types.js +0 -15
  209. package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +0 -563
  210. package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +0 -396
  211. package/dist/collection/components/molecules/popconfirm/popconfirm.css +0 -127
  212. package/dist/collection/components/molecules/popconfirm/popconfirm.js +0 -382
  213. package/dist/collection/components/molecules/popover/popover.js +0 -254
  214. package/dist/collection/components/molecules/progress/progress.css +0 -486
  215. package/dist/collection/components/molecules/progress/progress.js +0 -404
  216. package/dist/collection/components/molecules/progress/types.js +0 -28
  217. package/dist/collection/components/molecules/radio/group.css +0 -798
  218. package/dist/collection/components/molecules/radio/group.js +0 -652
  219. package/dist/collection/components/molecules/radio/radio.css +0 -1280
  220. package/dist/collection/components/molecules/radio/radio.js +0 -291
  221. package/dist/collection/components/molecules/radio/types.js +0 -30
  222. package/dist/collection/components/molecules/range/range.css +0 -570
  223. package/dist/collection/components/molecules/range/range.js +0 -472
  224. package/dist/collection/components/molecules/result/result.css +0 -164
  225. package/dist/collection/components/molecules/result/result.js +0 -143
  226. package/dist/collection/components/molecules/result/types.js +0 -22
  227. package/dist/collection/components/molecules/search/search.css +0 -1208
  228. package/dist/collection/components/molecules/search/search.js +0 -406
  229. package/dist/collection/components/molecules/skeleton/skeleton.js +0 -94
  230. package/dist/collection/components/molecules/states/alert.states.js +0 -25
  231. package/dist/collection/components/molecules/states/checkbox-group.states.js +0 -199
  232. package/dist/collection/components/molecules/states/radio-group.states.js +0 -107
  233. package/dist/collection/components/molecules/states/search.states.js +0 -137
  234. package/dist/collection/components/molecules/states/stepper-states.js +0 -79
  235. package/dist/collection/components/molecules/stepper/step.js +0 -346
  236. package/dist/collection/components/molecules/stepper/stepper.css +0 -617
  237. package/dist/collection/components/molecules/stepper/stepper.js +0 -484
  238. package/dist/collection/components/molecules/switch/switch.css +0 -1272
  239. package/dist/collection/components/molecules/switch/switch.js +0 -716
  240. package/dist/collection/components/molecules/tab-group/tab-group.js +0 -280
  241. package/dist/collection/components/molecules/textarea/textarea.css +0 -1208
  242. package/dist/collection/components/molecules/textarea/textarea.js +0 -731
  243. package/dist/collection/components/molecules/textarea/types.js +0 -13
  244. package/dist/collection/components/molecules/timeline/timeline-item.css +0 -254
  245. package/dist/collection/components/molecules/timeline/timeline-item.js +0 -159
  246. package/dist/collection/components/molecules/timeline/timeline.css +0 -205
  247. package/dist/collection/components/molecules/timeline/timeline.js +0 -125
  248. package/dist/collection/components/molecules/tooltip/tooltip.js +0 -232
  249. package/dist/collection/components/organism/autocomplete/autocomplete.css +0 -168
  250. package/dist/collection/components/organism/autocomplete/autocomplete.js +0 -399
  251. package/dist/collection/components/organism/colorpicker/colorpicker.css +0 -313
  252. package/dist/collection/components/organism/colorpicker/colorpicker.js +0 -774
  253. package/dist/collection/components/organism/colorpicker/static/chess.png +0 -0
  254. package/dist/collection/components/organism/colorpicker/static/color.svg +0 -14
  255. package/dist/collection/components/organism/colorpicker/static/colors.svg +0 -16
  256. package/dist/collection/components/organism/date-picker/date-picker.css +0 -141
  257. package/dist/collection/components/organism/date-picker/date-picker.js +0 -780
  258. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -1429
  259. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +0 -2166
  260. package/dist/collection/components/organism/datetime-picker/types.js +0 -39
  261. package/dist/collection/components/organism/form/form-group.css +0 -131
  262. package/dist/collection/components/organism/form/form-group.js +0 -131
  263. package/dist/collection/components/organism/form/form.css +0 -132
  264. package/dist/collection/components/organism/form/form.js +0 -680
  265. package/dist/collection/components/organism/form-2/bcm-form-components.js +0 -26
  266. package/dist/collection/components/organism/form-2/form-2.css +0 -127
  267. package/dist/collection/components/organism/form-2/form-2.js +0 -328
  268. package/dist/collection/components/organism/list/list-key-control.js +0 -125
  269. package/dist/collection/components/organism/list/list-tag-control.js +0 -172
  270. package/dist/collection/components/organism/list/list.css +0 -2047
  271. package/dist/collection/components/organism/list/list.js +0 -1860
  272. package/dist/collection/components/organism/states/bcm-list2.states.js +0 -532
  273. package/dist/collection/components/organism/time-picker/time-picker.css +0 -141
  274. package/dist/collection/components/organism/time-picker/time-picker.js +0 -627
  275. package/dist/collection/components/other/attendance/attendance.css +0 -433
  276. package/dist/collection/components/other/attendance/attendance.js +0 -87
  277. package/dist/collection/components/other/data-table/table.css +0 -130
  278. package/dist/collection/components/other/data-table/table.js +0 -92
  279. package/dist/collection/components/other/default/default.css +0 -127
  280. package/dist/collection/components/other/default/default.js +0 -54
  281. package/dist/collection/components/other_deprecated/collapse/collapse.css +0 -177
  282. package/dist/collection/components/other_deprecated/collapse/collapse.js +0 -163
  283. package/dist/collection/components/other_deprecated/collapse/group.js +0 -128
  284. package/dist/collection/components/other_deprecated/listbox/listbox-group.css +0 -139
  285. package/dist/collection/components/other_deprecated/listbox/listbox-group.js +0 -93
  286. package/dist/collection/components/other_deprecated/listbox/listbox-item.css +0 -269
  287. package/dist/collection/components/other_deprecated/listbox/listbox-item.js +0 -641
  288. package/dist/collection/components/other_deprecated/listbox/listbox.css +0 -365
  289. package/dist/collection/components/other_deprecated/listbox/listbox.js +0 -1999
  290. package/dist/collection/components/other_deprecated/listbox/types.js +0 -11
  291. package/dist/collection/components/other_deprecated/old-input/old-input.css +0 -1360
  292. package/dist/collection/components/other_deprecated/old-input/old-input.js +0 -1154
  293. package/dist/collection/components/other_deprecated/old-input/types.js +0 -17
  294. package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +0 -582
  295. package/dist/collection/components/other_deprecated/old-popover/old-popover-box.js +0 -411
  296. package/dist/collection/components/other_deprecated/old-popover/old-popover.css +0 -127
  297. package/dist/collection/components/other_deprecated/old-popover/old-popover.js +0 -296
  298. package/dist/collection/components/other_deprecated/old-search/old-search.css +0 -131
  299. package/dist/collection/components/other_deprecated/old-search/old-search.js +0 -496
  300. package/dist/collection/components/other_deprecated/old-tag/old-tag.css +0 -305
  301. package/dist/collection/components/other_deprecated/old-tag/old-tag.js +0 -326
  302. package/dist/collection/components/other_deprecated/old-tag/types.js +0 -30
  303. package/dist/collection/components/other_deprecated/select/group.css +0 -144
  304. package/dist/collection/components/other_deprecated/select/group.js +0 -88
  305. package/dist/collection/components/other_deprecated/select/option.css +0 -164
  306. package/dist/collection/components/other_deprecated/select/option.js +0 -142
  307. package/dist/collection/components/other_deprecated/select/select-box.css +0 -143
  308. package/dist/collection/components/other_deprecated/select/select-box.js +0 -104
  309. package/dist/collection/components/other_deprecated/select/select.css +0 -364
  310. package/dist/collection/components/other_deprecated/select/select.js +0 -2229
  311. package/dist/collection/components/other_deprecated/tabs/tab-pane.css +0 -142
  312. package/dist/collection/components/other_deprecated/tabs/tab-pane.js +0 -168
  313. package/dist/collection/components/other_deprecated/tabs/tab.css +0 -587
  314. package/dist/collection/components/other_deprecated/tabs/tab.js +0 -303
  315. package/dist/collection/components/other_deprecated/tabs/tabs-content.css +0 -136
  316. package/dist/collection/components/other_deprecated/tabs/tabs-content.js +0 -147
  317. package/dist/collection/components/other_deprecated/tabs/tabs.css +0 -212
  318. package/dist/collection/components/other_deprecated/tabs/tabs.js +0 -806
  319. package/dist/collection/components/other_deprecated/tabs/types.js +0 -30
  320. package/dist/collection/components/other_deprecated/text/text.css +0 -429
  321. package/dist/collection/components/other_deprecated/text/text.js +0 -159
  322. package/dist/collection/components/other_deprecated/treeview/treeview-group.css +0 -0
  323. package/dist/collection/components/other_deprecated/treeview/treeview-group.js +0 -18
  324. package/dist/collection/components/other_deprecated/treeview/treeview-item.css +0 -318
  325. package/dist/collection/components/other_deprecated/treeview/treeview-item.js +0 -977
  326. package/dist/collection/components/other_deprecated/treeview/treeview.css +0 -190
  327. package/dist/collection/components/other_deprecated/treeview/treeview.js +0 -1699
  328. package/dist/collection/components/other_deprecated/treeview/types.js +0 -11
  329. package/dist/collection/decorators/id-decorator.js +0 -18
  330. package/dist/collection/decorators/index.js +0 -8
  331. package/dist/collection/decorators/is-load-decorator.js +0 -51
  332. package/dist/collection/decorators/json-parse-decarator.js +0 -35
  333. package/dist/collection/decorators/property-decorators.js +0 -28
  334. package/dist/collection/global/components/_checkbox.css +0 -627
  335. package/dist/collection/global/config.js +0 -45
  336. package/dist/collection/global/global.js +0 -43
  337. package/dist/collection/global/variables/colors.js +0 -220
  338. package/dist/collection/helper/color-helper.js +0 -81
  339. package/dist/collection/helper/content-helper.js +0 -63
  340. package/dist/collection/helper/datetime-helper.js +0 -7
  341. package/dist/collection/helper/generate.js +0 -163
  342. package/dist/collection/helper/index.js +0 -13
  343. package/dist/collection/helper/number-helper.js +0 -15
  344. package/dist/collection/helper/popover-helper.js +0 -104
  345. package/dist/collection/helper/string-helper.js +0 -65
  346. package/dist/collection/helper/tooltip-helper.js +0 -93
  347. package/dist/collection/helper/validators.js +0 -28
  348. package/dist/collection/index.js +0 -5
  349. package/dist/collection/models/abstract-classes/abstract-key-control.js +0 -97
  350. package/dist/collection/models/bcm-types.js +0 -5
  351. package/dist/collection/models/bcm.js +0 -466
  352. package/dist/collection/models/index.js +0 -6
  353. package/dist/collection/models/states/atoms/bcm-atoms-state.js +0 -5
  354. package/dist/collection/models/states/molecules/bcm-molecules-state.js +0 -5
  355. package/dist/collection/models/states/organisms/bcm-organisms-state.js +0 -5
  356. package/dist/collection/templates/button-template.js +0 -22
  357. package/dist/collection/templates/caption-template.js +0 -29
  358. package/dist/collection/templates/checkbox-group-template.js +0 -10
  359. package/dist/collection/templates/checkbox-template.js +0 -31
  360. package/dist/collection/templates/icon-template.js +0 -24
  361. package/dist/collection/templates/index.js +0 -17
  362. package/dist/collection/templates/info-footer-template.js +0 -16
  363. package/dist/collection/templates/input-template.js +0 -81
  364. package/dist/collection/templates/label-template.js +0 -18
  365. package/dist/collection/templates/list-item-template.js +0 -58
  366. package/dist/collection/templates/list-template.js +0 -24
  367. package/dist/collection/templates/slot-template.js +0 -10
  368. package/dist/collection/templates/step-template.js +0 -26
  369. package/dist/collection/templates/tag-template.js +0 -45
  370. package/dist/collection/types/index.js +0 -5
  371. package/dist/collection/utils/element-dragger.js +0 -274
  372. package/dist/collection/utils/floating-ui.js +0 -62
  373. package/dist/collection/utils/index.js +0 -9
  374. package/dist/collection/utils/popover-placement.js +0 -96
  375. package/dist/collection/utils/utils.js +0 -223
  376. package/dist/collection/utils/validation.js +0 -47
  377. package/dist/esm/_commonjsHelpers-3016b722.js +0 -25
  378. package/dist/esm/bcm-accordion.entry.js +0 -81
  379. package/dist/esm/bcm-alert.entry.js +0 -108
  380. package/dist/esm/bcm-attendance.entry.js +0 -46
  381. package/dist/esm/bcm-autocomplete.entry.js +0 -151
  382. package/dist/esm/bcm-avatar_2.entry.js +0 -151
  383. package/dist/esm/bcm-b8d8a236.js +0 -446
  384. package/dist/esm/bcm-box.entry.js +0 -31
  385. package/dist/esm/bcm-breadcrumb.entry.js +0 -63
  386. package/dist/esm/bcm-button-group.entry.js +0 -98
  387. package/dist/esm/bcm-button_13.entry.js +0 -1965
  388. package/dist/esm/bcm-card.entry.js +0 -72
  389. package/dist/esm/bcm-checkbox-group.entry.js +0 -405
  390. package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2558
  391. package/dist/esm/bcm-checkbox_2.entry.js +0 -198
  392. package/dist/esm/bcm-chip.entry.js +0 -66
  393. package/dist/esm/bcm-collapse-group.entry.js +0 -53
  394. package/dist/esm/bcm-collapse.entry.js +0 -54
  395. package/dist/esm/bcm-colorpicker.entry.js +0 -429
  396. package/dist/esm/bcm-date-picker.entry.js +0 -167
  397. package/dist/esm/bcm-datetime-picker.entry.js +0 -1428
  398. package/dist/esm/bcm-default.entry.js +0 -36
  399. package/dist/esm/bcm-drawer.entry.js +0 -107
  400. package/dist/esm/bcm-error-layout.entry.js +0 -74
  401. package/dist/esm/bcm-expansion-panel.entry.js +0 -123
  402. package/dist/esm/bcm-form-2.entry.js +0 -201
  403. package/dist/esm/bcm-form-group.entry.js +0 -41
  404. package/dist/esm/bcm-input.entry.js +0 -320
  405. package/dist/esm/bcm-link.entry.js +0 -58
  406. package/dist/esm/bcm-linked.entry.js +0 -79
  407. package/dist/esm/bcm-list.entry.js +0 -1757
  408. package/dist/esm/bcm-message.entry.js +0 -95
  409. package/dist/esm/bcm-modal.entry.js +0 -133
  410. package/dist/esm/bcm-notification.entry.js +0 -99
  411. package/dist/esm/bcm-old-input.entry.js +0 -394
  412. package/dist/esm/bcm-old-tag_2.entry.js +0 -152
  413. package/dist/esm/bcm-popconfirm-box.entry.js +0 -118
  414. package/dist/esm/bcm-popconfirm.entry.js +0 -108
  415. package/dist/esm/bcm-progress.entry.js +0 -170
  416. package/dist/esm/bcm-radio-group.entry.js +0 -263
  417. package/dist/esm/bcm-radio.entry.js +0 -100
  418. package/dist/esm/bcm-range.entry.js +0 -185
  419. package/dist/esm/bcm-result.entry.js +0 -75
  420. package/dist/esm/bcm-search.entry.js +0 -252
  421. package/dist/esm/bcm-select-group.entry.js +0 -27
  422. package/dist/esm/bcm-select-option.entry.js +0 -33
  423. package/dist/esm/bcm-select.entry.js +0 -1177
  424. package/dist/esm/bcm-skeleton.entry.js +0 -52
  425. package/dist/esm/bcm-step.entry.js +0 -89
  426. package/dist/esm/bcm-stepper.entry.js +0 -207
  427. package/dist/esm/bcm-tab-group.entry.js +0 -168
  428. package/dist/esm/bcm-tab-pane.entry.js +0 -66
  429. package/dist/esm/bcm-tab.entry.js +0 -85
  430. package/dist/esm/bcm-table.entry.js +0 -74
  431. package/dist/esm/bcm-tabs-content.entry.js +0 -58
  432. package/dist/esm/bcm-tabs.entry.js +0 -386
  433. package/dist/esm/bcm-tag.entry.js +0 -97
  434. package/dist/esm/bcm-textarea.entry.js +0 -146
  435. package/dist/esm/bcm-time-picker.entry.js +0 -135
  436. package/dist/esm/bcm-timeline-item.entry.js +0 -51
  437. package/dist/esm/bcm-timeline.entry.js +0 -69
  438. package/dist/esm/bcm-treeview-group.entry.js +0 -19
  439. package/dist/esm/bromcom-ui.js +0 -22
  440. package/dist/esm/caption-template-3dc68282.js +0 -32
  441. package/dist/esm/color-helper-7e202fd8.js +0 -488
  442. package/dist/esm/colors-1d7854ea.js +0 -222
  443. package/dist/esm/datetime-helper-df25808a.js +0 -9
  444. package/dist/esm/element-dragger-89bb52fd.js +0 -277
  445. package/dist/esm/generate-fb5ddb87.js +0 -195
  446. package/dist/esm/global-4fad925b.js +0 -13
  447. package/dist/esm/index-36ae55c5.js +0 -191
  448. package/dist/esm/index-ba2edd32.js +0 -62
  449. package/dist/esm/index-bd33e7be.js +0 -1833
  450. package/dist/esm/index.js +0 -4
  451. package/dist/esm/input-template-0c47abf5.js +0 -84
  452. package/dist/esm/is-load-decorator-73e33bee.js +0 -54
  453. package/dist/esm/json-parse-decarator-7b411846.js +0 -38
  454. package/dist/esm/label-template-c83a04a3.js +0 -21
  455. package/dist/esm/loader.js +0 -22
  456. package/dist/esm/number-helper-42be449e.js +0 -18
  457. package/dist/esm/old-bcm-popover.entry.js +0 -100
  458. package/dist/esm/polyfills/core-js.js +0 -11
  459. package/dist/esm/polyfills/css-shim.js +0 -1
  460. package/dist/esm/polyfills/dom.js +0 -79
  461. package/dist/esm/polyfills/es5-html-element.js +0 -1
  462. package/dist/esm/polyfills/index.js +0 -34
  463. package/dist/esm/polyfills/system.js +0 -6
  464. package/dist/esm/popover-placement-9864294b.js +0 -95
  465. package/dist/esm/property-decorators-61be220d.js +0 -31
  466. package/dist/esm/slot-template-24f1e66e.js +0 -13
  467. package/dist/esm/stepper-states-b8e9888d.js +0 -81
  468. package/dist/esm/string-helper-74a1648f.js +0 -132
  469. package/dist/esm/tooltip-helper-427dd3f5.js +0 -1446
  470. package/dist/esm/types-6f06fa1a.js +0 -19
  471. package/dist/esm/types-b211a5eb.js +0 -32
  472. package/dist/esm/types-bfc3bba1.js +0 -32
  473. package/dist/esm/utils-57652744.js +0 -123
  474. package/dist/esm/validators-6f23b54f.js +0 -31
  475. package/dist/index.cjs.js +0 -1
  476. package/dist/index.js +0 -1
  477. package/dist/types/components/atoms/avatar/avatar.d.ts +0 -23
  478. package/dist/types/components/atoms/badge/badge.d.ts +0 -17
  479. package/dist/types/components/atoms/box/box.d.ts +0 -5
  480. package/dist/types/components/atoms/button/button.d.ts +0 -33
  481. package/dist/types/components/atoms/button/types.d.ts +0 -166
  482. package/dist/types/components/atoms/chip/chip.d.ts +0 -24
  483. package/dist/types/components/atoms/divider/divider.d.ts +0 -7
  484. package/dist/types/components/atoms/icon/icon.d.ts +0 -6
  485. package/dist/types/components/atoms/label/label.d.ts +0 -16
  486. package/dist/types/components/atoms/link/link.d.ts +0 -13
  487. package/dist/types/components/atoms/states/button.states.d.ts +0 -7
  488. package/dist/types/components/atoms/tag/tag.d.ts +0 -24
  489. package/dist/types/components/atoms/tag/types.d.ts +0 -29
  490. package/dist/types/components/atoms/typography/typography.d.ts +0 -5
  491. package/dist/types/components/molecules/accordion/accordion.d.ts +0 -11
  492. package/dist/types/components/molecules/alert/alert.d.ts +0 -21
  493. package/dist/types/components/molecules/alert/types.d.ts +0 -25
  494. package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +0 -14
  495. package/dist/types/components/molecules/breadcrumb/types.d.ts +0 -10
  496. package/dist/types/components/molecules/button-group/button-group.d.ts +0 -21
  497. package/dist/types/components/molecules/card/card.d.ts +0 -11
  498. package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +0 -14
  499. package/dist/types/components/molecules/checkbox/checkbox.d.ts +0 -56
  500. package/dist/types/components/molecules/checkbox/group.d.ts +0 -56
  501. package/dist/types/components/molecules/drawer/drawer.d.ts +0 -21
  502. package/dist/types/components/molecules/dropdown/dropdown.d.ts +0 -54
  503. package/dist/types/components/molecules/empty/empty.d.ts +0 -5
  504. package/dist/types/components/molecules/error-layout/error-layout.d.ts +0 -25
  505. package/dist/types/components/molecules/error-layout/types.d.ts +0 -4
  506. package/dist/types/components/molecules/expansion-panel/expansion-panel.d.ts +0 -31
  507. package/dist/types/components/molecules/input/input.d.ts +0 -82
  508. package/dist/types/components/molecules/input/types.d.ts +0 -13
  509. package/dist/types/components/molecules/item/item.d.ts +0 -13
  510. package/dist/types/components/molecules/items/items.d.ts +0 -10
  511. package/dist/types/components/molecules/linked/linked.d.ts +0 -14
  512. package/dist/types/components/molecules/menu/menu.d.ts +0 -41
  513. package/dist/types/components/molecules/message/message.d.ts +0 -32
  514. package/dist/types/components/molecules/message/types.d.ts +0 -13
  515. package/dist/types/components/molecules/modal/modal.d.ts +0 -26
  516. package/dist/types/components/molecules/notification/notification.d.ts +0 -42
  517. package/dist/types/components/molecules/notification/types.d.ts +0 -14
  518. package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +0 -29
  519. package/dist/types/components/molecules/popconfirm/popconfirm.d.ts +0 -28
  520. package/dist/types/components/molecules/popover/popover.d.ts +0 -20
  521. package/dist/types/components/molecules/progress/progress.d.ts +0 -25
  522. package/dist/types/components/molecules/progress/types.d.ts +0 -14
  523. package/dist/types/components/molecules/radio/group.d.ts +0 -54
  524. package/dist/types/components/molecules/radio/radio.d.ts +0 -21
  525. package/dist/types/components/molecules/radio/types.d.ts +0 -29
  526. package/dist/types/components/molecules/range/range.d.ts +0 -36
  527. package/dist/types/components/molecules/result/result.d.ts +0 -13
  528. package/dist/types/components/molecules/result/types.d.ts +0 -19
  529. package/dist/types/components/molecules/search/search.d.ts +0 -35
  530. package/dist/types/components/molecules/skeleton/skeleton.d.ts +0 -8
  531. package/dist/types/components/molecules/states/alert.states.d.ts +0 -7
  532. package/dist/types/components/molecules/states/checkbox-group.states.d.ts +0 -53
  533. package/dist/types/components/molecules/states/radio-group.states.d.ts +0 -48
  534. package/dist/types/components/molecules/states/search.states.d.ts +0 -14
  535. package/dist/types/components/molecules/states/stepper-states.d.ts +0 -13
  536. package/dist/types/components/molecules/stepper/step.d.ts +0 -25
  537. package/dist/types/components/molecules/stepper/stepper.d.ts +0 -34
  538. package/dist/types/components/molecules/switch/switch.d.ts +0 -46
  539. package/dist/types/components/molecules/tab-group/tab-group.d.ts +0 -18
  540. package/dist/types/components/molecules/textarea/textarea.d.ts +0 -53
  541. package/dist/types/components/molecules/textarea/types.d.ts +0 -9
  542. package/dist/types/components/molecules/timeline/timeline-item.d.ts +0 -16
  543. package/dist/types/components/molecules/timeline/timeline.d.ts +0 -25
  544. package/dist/types/components/molecules/tooltip/tooltip.d.ts +0 -19
  545. package/dist/types/components/organism/autocomplete/autocomplete.d.ts +0 -31
  546. package/dist/types/components/organism/colorpicker/colorpicker.d.ts +0 -176
  547. package/dist/types/components/organism/date-picker/date-picker.d.ts +0 -77
  548. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +0 -438
  549. package/dist/types/components/organism/datetime-picker/types.d.ts +0 -54
  550. package/dist/types/components/organism/form/form-group.d.ts +0 -10
  551. package/dist/types/components/organism/form/form.d.ts +0 -34
  552. package/dist/types/components/organism/form-2/bcm-form-components.d.ts +0 -2
  553. package/dist/types/components/organism/form-2/form-2.d.ts +0 -25
  554. package/dist/types/components/organism/list/list-key-control.d.ts +0 -18
  555. package/dist/types/components/organism/list/list-tag-control.d.ts +0 -18
  556. package/dist/types/components/organism/list/list.d.ts +0 -138
  557. package/dist/types/components/organism/states/bcm-list2.states.d.ts +0 -28
  558. package/dist/types/components/organism/time-picker/time-picker.d.ts +0 -69
  559. package/dist/types/components/other/attendance/attendance.d.ts +0 -7
  560. package/dist/types/components/other/data-table/table.d.ts +0 -8
  561. package/dist/types/components/other/default/default.d.ts +0 -6
  562. package/dist/types/components/other_deprecated/collapse/collapse.d.ts +0 -12
  563. package/dist/types/components/other_deprecated/collapse/group.d.ts +0 -15
  564. package/dist/types/components/other_deprecated/listbox/listbox-group.d.ts +0 -7
  565. package/dist/types/components/other_deprecated/listbox/listbox-item.d.ts +0 -58
  566. package/dist/types/components/other_deprecated/listbox/listbox.d.ts +0 -152
  567. package/dist/types/components/other_deprecated/listbox/types.d.ts +0 -11
  568. package/dist/types/components/other_deprecated/old-input/old-input.d.ts +0 -80
  569. package/dist/types/components/other_deprecated/old-input/types.d.ts +0 -13
  570. package/dist/types/components/other_deprecated/old-popover/old-popover-box.d.ts +0 -25
  571. package/dist/types/components/other_deprecated/old-popover/old-popover.d.ts +0 -22
  572. package/dist/types/components/other_deprecated/old-search/old-search.d.ts +0 -32
  573. package/dist/types/components/other_deprecated/old-tag/old-tag.d.ts +0 -27
  574. package/dist/types/components/other_deprecated/old-tag/types.d.ts +0 -29
  575. package/dist/types/components/other_deprecated/select/group.d.ts +0 -6
  576. package/dist/types/components/other_deprecated/select/option.d.ts +0 -10
  577. package/dist/types/components/other_deprecated/select/select-box.d.ts +0 -15
  578. package/dist/types/components/other_deprecated/select/select.d.ts +0 -131
  579. package/dist/types/components/other_deprecated/tabs/tab-pane.d.ts +0 -19
  580. package/dist/types/components/other_deprecated/tabs/tab.d.ts +0 -36
  581. package/dist/types/components/other_deprecated/tabs/tabs-content.d.ts +0 -18
  582. package/dist/types/components/other_deprecated/tabs/tabs.d.ts +0 -112
  583. package/dist/types/components/other_deprecated/tabs/types.d.ts +0 -39
  584. package/dist/types/components/other_deprecated/text/text.d.ts +0 -11
  585. package/dist/types/components/other_deprecated/treeview/treeview-group.d.ts +0 -3
  586. package/dist/types/components/other_deprecated/treeview/treeview-item.d.ts +0 -119
  587. package/dist/types/components/other_deprecated/treeview/treeview.d.ts +0 -181
  588. package/dist/types/components/other_deprecated/treeview/types.d.ts +0 -11
  589. package/dist/types/components.d.ts +0 -3517
  590. package/dist/types/decorators/id-decorator.d.ts +0 -4
  591. package/dist/types/decorators/index.d.ts +0 -4
  592. package/dist/types/decorators/is-load-decorator.d.ts +0 -7
  593. package/dist/types/decorators/json-parse-decarator.d.ts +0 -4
  594. package/dist/types/decorators/property-decorators.d.ts +0 -4
  595. package/dist/types/global/variables/colors.d.ts +0 -217
  596. package/dist/types/helper/color-helper.d.ts +0 -16
  597. package/dist/types/helper/content-helper.d.ts +0 -18
  598. package/dist/types/helper/datetime-helper.d.ts +0 -3
  599. package/dist/types/helper/generate.d.ts +0 -21
  600. package/dist/types/helper/index.d.ts +0 -9
  601. package/dist/types/helper/number-helper.d.ts +0 -10
  602. package/dist/types/helper/popover-helper.d.ts +0 -31
  603. package/dist/types/helper/string-helper.d.ts +0 -27
  604. package/dist/types/helper/tooltip-helper.d.ts +0 -25
  605. package/dist/types/helper/validators.d.ts +0 -10
  606. package/dist/types/index.d.ts +0 -1
  607. package/dist/types/models/abstract-classes/abstract-key-control.d.ts +0 -31
  608. package/dist/types/models/bcm-types.d.ts +0 -21
  609. package/dist/types/models/bcm.d.ts +0 -456
  610. package/dist/types/models/index.d.ts +0 -2
  611. package/dist/types/models/states/atoms/bcm-atoms-state.d.ts +0 -34
  612. package/dist/types/models/states/molecules/bcm-molecules-state.d.ts +0 -90
  613. package/dist/types/models/states/organisms/bcm-organisms-state.d.ts +0 -78
  614. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  615. package/dist/types/templates/button-template.d.ts +0 -18
  616. package/dist/types/templates/caption-template.d.ts +0 -14
  617. package/dist/types/templates/checkbox-group-template.d.ts +0 -10
  618. package/dist/types/templates/checkbox-template.d.ts +0 -13
  619. package/dist/types/templates/icon-template.d.ts +0 -7
  620. package/dist/types/templates/index.d.ts +0 -13
  621. package/dist/types/templates/info-footer-template.d.ts +0 -10
  622. package/dist/types/templates/input-template.d.ts +0 -34
  623. package/dist/types/templates/label-template.d.ts +0 -12
  624. package/dist/types/templates/list-item-template.d.ts +0 -13
  625. package/dist/types/templates/list-template.d.ts +0 -29
  626. package/dist/types/templates/slot-template.d.ts +0 -8
  627. package/dist/types/templates/step-template.d.ts +0 -17
  628. package/dist/types/templates/tag-template.d.ts +0 -21
  629. package/dist/types/types/index.d.ts +0 -12
  630. package/dist/types/utils/element-dragger.d.ts +0 -146
  631. package/dist/types/utils/floating-ui.d.ts +0 -6
  632. package/dist/types/utils/index.d.ts +0 -5
  633. package/dist/types/utils/popover-placement.d.ts +0 -3
  634. package/dist/types/utils/utils.d.ts +0 -55
  635. package/dist/types/utils/validation.d.ts +0 -19
@@ -1,1864 +0,0 @@
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.classList.add('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;