@haiilo/catalyst 11.0.0 → 12.0.0

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 (350) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/index.esm.js +2 -2
  4. package/dist/catalyst/index.esm.js.map +1 -1
  5. package/dist/catalyst/loader.esm.js.map +1 -0
  6. package/dist/catalyst/p-6a54965a.entry.js +10 -0
  7. package/dist/catalyst/p-6a54965a.entry.js.map +1 -0
  8. package/dist/catalyst/p-B-m4GNf1.js +3 -0
  9. package/dist/catalyst/p-B-m4GNf1.js.map +1 -0
  10. package/dist/catalyst/p-DQuL1Twl.js +2 -0
  11. package/dist/catalyst/p-DQuL1Twl.js.map +1 -0
  12. package/dist/catalyst/p-LJZzaWFR.js +2 -0
  13. package/dist/catalyst/p-LJZzaWFR.js.map +1 -0
  14. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  15. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  16. package/dist/cjs/cat-alert_30.cjs.entry.js +1467 -1833
  17. package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
  18. package/dist/cjs/catalyst.cjs.js +8 -7
  19. package/dist/cjs/catalyst.cjs.js.map +1 -1
  20. package/dist/cjs/index-DNLT6JC9.js +10178 -0
  21. package/dist/cjs/index-DNLT6JC9.js.map +1 -0
  22. package/dist/cjs/{index-1094f0fc.js → index-jGQAsDy6.js} +528 -358
  23. package/dist/cjs/index-jGQAsDy6.js.map +1 -0
  24. package/dist/cjs/index.cjs.js +461 -453
  25. package/dist/cjs/index.cjs.js.map +1 -1
  26. package/dist/cjs/loader.cjs.js +4 -5
  27. package/dist/cjs/loader.cjs.js.map +1 -1
  28. package/dist/collection/collection-manifest.json +2 -2
  29. package/dist/collection/components/cat-alert/cat-alert.js +15 -4
  30. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  31. package/dist/collection/components/cat-avatar/cat-avatar.js +33 -14
  32. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  33. package/dist/collection/components/cat-badge/cat-badge.js +45 -9
  34. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  35. package/dist/collection/components/cat-button/cat-button.css +4 -2
  36. package/dist/collection/components/cat-button/cat-button.js +107 -35
  37. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  38. package/dist/collection/components/cat-button-group/cat-button-group.js +3 -2
  39. package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -1
  40. package/dist/collection/components/cat-checkbox/cat-checkbox.js +83 -24
  41. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  42. package/dist/collection/components/cat-date/cat-date.js +114 -39
  43. package/dist/collection/components/cat-date/cat-date.js.map +1 -1
  44. package/dist/collection/components/cat-date-inline/cat-date-inline.js +69 -19
  45. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  46. package/dist/collection/components/cat-datepicker/cat-datepicker.js +130 -42
  47. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  48. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +37 -12
  49. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
  50. package/dist/collection/components/cat-dropdown/cat-dropdown.js +129 -17
  51. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  52. package/dist/collection/components/cat-form-group/cat-form-group.js +19 -4
  53. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
  54. package/dist/collection/components/cat-icon/cat-icon.js +15 -7
  55. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  56. package/dist/collection/components/cat-input/cat-input.js +143 -51
  57. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  58. package/dist/collection/components/cat-pagination/cat-pagination.js +60 -10
  59. package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
  60. package/dist/collection/components/cat-radio/cat-radio.js +65 -18
  61. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  62. package/dist/collection/components/cat-radio-group/cat-radio-group.js +21 -8
  63. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  64. package/dist/collection/components/cat-scrollable/cat-scrollable.js +32 -7
  65. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  66. package/dist/collection/components/cat-select/cat-select.js +105 -34
  67. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  68. package/dist/collection/components/cat-skeleton/cat-skeleton.js +22 -5
  69. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
  70. package/dist/collection/components/cat-spinner/cat-spinner.js +15 -4
  71. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
  72. package/dist/collection/components/cat-tab/cat-tab.js +84 -17
  73. package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
  74. package/dist/collection/components/cat-tabs/cat-tabs.css +29 -12
  75. package/dist/collection/components/cat-tabs/cat-tabs.js +189 -8
  76. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  77. package/dist/collection/components/cat-tag/cat-tag.js +84 -25
  78. package/dist/collection/components/cat-tag/cat-tag.js.map +1 -1
  79. package/dist/collection/components/cat-textarea/cat-textarea.js +90 -32
  80. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  81. package/dist/collection/components/cat-time/cat-time.js +120 -39
  82. package/dist/collection/components/cat-time/cat-time.js.map +1 -1
  83. package/dist/collection/components/cat-toggle/cat-toggle.js +71 -22
  84. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  85. package/dist/collection/components/cat-tooltip/cat-tooltip.js +49 -8
  86. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  87. package/dist/components/cat-alert.js +8 -3
  88. package/dist/components/cat-alert.js.map +1 -1
  89. package/dist/components/cat-avatar.js +1 -0
  90. package/dist/components/cat-avatar2.js +11 -8
  91. package/dist/components/cat-avatar2.js.map +1 -1
  92. package/dist/components/cat-badge.js +23 -3
  93. package/dist/components/cat-badge.js.map +1 -1
  94. package/dist/components/cat-button-group.js +2 -3
  95. package/dist/components/cat-button-group.js.map +1 -1
  96. package/dist/components/cat-button.js +1 -0
  97. package/dist/components/cat-button2.js +41 -17
  98. package/dist/components/cat-button2.js.map +1 -1
  99. package/dist/components/cat-card.js +2 -2
  100. package/dist/components/cat-card.js.map +1 -1
  101. package/dist/components/cat-checkbox.js +1 -0
  102. package/dist/components/cat-checkbox2.js +34 -10
  103. package/dist/components/cat-checkbox2.js.map +1 -1
  104. package/dist/components/cat-date-inline.js +1 -0
  105. package/dist/components/cat-date-inline2.js +29 -7
  106. package/dist/components/cat-date-inline2.js.map +1 -1
  107. package/dist/components/cat-date.js +41 -17
  108. package/dist/components/cat-date.js.map +1 -1
  109. package/dist/components/cat-datepicker-inline.js +16 -8
  110. package/dist/components/cat-datepicker-inline.js.map +1 -1
  111. package/dist/components/cat-datepicker.js +50 -20
  112. package/dist/components/cat-datepicker.js.map +1 -1
  113. package/dist/components/cat-datepicker.locale.js +110 -99
  114. package/dist/components/cat-datepicker.locale.js.map +1 -1
  115. package/dist/components/cat-dropdown.js +1 -0
  116. package/dist/components/cat-dropdown2.js +70 -13
  117. package/dist/components/cat-dropdown2.js.map +1 -1
  118. package/dist/components/cat-form-group.js +12 -3
  119. package/dist/components/cat-form-group.js.map +1 -1
  120. package/dist/components/cat-form-hint.js +1 -0
  121. package/dist/components/cat-form-hint.js.map +1 -1
  122. package/dist/components/cat-i18n-registry.js +1 -0
  123. package/dist/components/cat-i18n-registry.js.map +1 -1
  124. package/dist/components/cat-icon-registry.js +22 -21
  125. package/dist/components/cat-icon-registry.js.map +1 -1
  126. package/dist/components/cat-icon.js +1 -0
  127. package/dist/components/cat-icon2.js +5 -5
  128. package/dist/components/cat-icon2.js.map +1 -1
  129. package/dist/components/cat-input.js +1 -0
  130. package/dist/components/cat-input2.js +50 -25
  131. package/dist/components/cat-input2.js.map +1 -1
  132. package/dist/components/cat-pagination.js +32 -2
  133. package/dist/components/cat-pagination.js.map +1 -1
  134. package/dist/components/cat-radio-group.js +8 -5
  135. package/dist/components/cat-radio-group.js.map +1 -1
  136. package/dist/components/cat-radio.js +28 -8
  137. package/dist/components/cat-radio.js.map +1 -1
  138. package/dist/components/cat-scrollable.js +1 -0
  139. package/dist/components/cat-scrollable2.js +322 -542
  140. package/dist/components/cat-scrollable2.js.map +1 -1
  141. package/dist/components/cat-select-demo.js +27 -49
  142. package/dist/components/cat-select-demo.js.map +1 -1
  143. package/dist/components/cat-select.js +1 -0
  144. package/dist/components/cat-select2.js +135 -316
  145. package/dist/components/cat-select2.js.map +1 -1
  146. package/dist/components/cat-skeleton.js +1 -0
  147. package/dist/components/cat-skeleton2.js +12 -3
  148. package/dist/components/cat-skeleton2.js.map +1 -1
  149. package/dist/components/cat-spinner.js +1 -0
  150. package/dist/components/cat-spinner2.js +8 -3
  151. package/dist/components/cat-spinner2.js.map +1 -1
  152. package/dist/components/cat-tab.js +34 -9
  153. package/dist/components/cat-tab.js.map +1 -1
  154. package/dist/components/cat-tabs.js +140 -11
  155. package/dist/components/cat-tabs.js.map +1 -1
  156. package/dist/components/cat-tag.js +35 -13
  157. package/dist/components/cat-tag.js.map +1 -1
  158. package/dist/components/cat-textarea.js +33 -16
  159. package/dist/components/cat-textarea.js.map +1 -1
  160. package/dist/components/cat-time.js +44 -16
  161. package/dist/components/cat-time.js.map +1 -1
  162. package/dist/components/cat-toggle.js +28 -10
  163. package/dist/components/cat-toggle.js.map +1 -1
  164. package/dist/components/cat-tooltip.js +28 -3
  165. package/dist/components/cat-tooltip.js.map +1 -1
  166. package/dist/components/coerce.js +1 -0
  167. package/dist/components/coerce.js.map +1 -1
  168. package/dist/components/first-tabbable.js +1 -0
  169. package/dist/components/first-tabbable.js.map +1 -1
  170. package/dist/components/{floating-ui.dom.esm.js → floating-ui.dom.js} +3 -492
  171. package/dist/components/floating-ui.dom.js.map +1 -0
  172. package/dist/components/index.js +460 -450
  173. package/dist/components/index.js.map +1 -1
  174. package/dist/components/index2.js +9456 -0
  175. package/dist/components/index2.js.map +1 -0
  176. package/dist/components/loglevel.js +368 -356
  177. package/dist/components/loglevel.js.map +1 -1
  178. package/dist/components/media-matcher.js +1 -0
  179. package/dist/components/media-matcher.js.map +1 -1
  180. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  181. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  182. package/dist/esm/cat-alert_30.entry.js +1428 -1792
  183. package/dist/esm/cat-alert_30.entry.js.map +1 -1
  184. package/dist/esm/catalyst.js +7 -5
  185. package/dist/esm/catalyst.js.map +1 -1
  186. package/dist/esm/{index-e8c0ddf2.js → index-B-m4GNf1.js} +528 -338
  187. package/dist/esm/index-B-m4GNf1.js.map +1 -0
  188. package/dist/esm/index-LJZzaWFR.js +10057 -0
  189. package/dist/esm/index-LJZzaWFR.js.map +1 -0
  190. package/dist/esm/index.js +458 -448
  191. package/dist/esm/index.js.map +1 -1
  192. package/dist/esm/loader.js +5 -4
  193. package/dist/esm/loader.js.map +1 -1
  194. package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +11 -1
  195. package/dist/types/components/cat-tab/cat-tab.d.ts +6 -0
  196. package/dist/types/components/cat-tabs/cat-tabs.d.ts +18 -0
  197. package/dist/types/components.d.ts +46 -0
  198. package/dist/types/stencil-public-runtime.d.ts +28 -2
  199. package/loader/index.d.ts +3 -0
  200. package/package.json +3 -3
  201. package/dist/catalyst/p-59e2ada2.entry.js +0 -10
  202. package/dist/catalyst/p-59e2ada2.entry.js.map +0 -1
  203. package/dist/catalyst/p-7f3bcfb9.js +0 -3
  204. package/dist/catalyst/p-7f3bcfb9.js.map +0 -1
  205. package/dist/catalyst/p-9500d6fb.js +0 -2
  206. package/dist/catalyst/p-9500d6fb.js.map +0 -1
  207. package/dist/catalyst/p-e1255160.js +0 -2
  208. package/dist/catalyst/p-e1255160.js.map +0 -1
  209. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  210. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  211. package/dist/cjs/index-1094f0fc.js.map +0 -1
  212. package/dist/cjs/of-958251e4.js +0 -1549
  213. package/dist/cjs/of-958251e4.js.map +0 -1
  214. package/dist/collection/components/cat-alert/cat-alert.e2e.js +0 -11
  215. package/dist/collection/components/cat-alert/cat-alert.e2e.js.map +0 -1
  216. package/dist/collection/components/cat-alert/cat-alert.spec.js +0 -14
  217. package/dist/collection/components/cat-alert/cat-alert.spec.js.map +0 -1
  218. package/dist/collection/components/cat-avatar/cat-avatar.e2e.js +0 -10
  219. package/dist/collection/components/cat-avatar/cat-avatar.e2e.js.map +0 -1
  220. package/dist/collection/components/cat-avatar/cat-avatar.spec.js +0 -14
  221. package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +0 -1
  222. package/dist/collection/components/cat-badge/cat-badge.e2e.js +0 -10
  223. package/dist/collection/components/cat-badge/cat-badge.e2e.js.map +0 -1
  224. package/dist/collection/components/cat-badge/cat-badge.spec.js +0 -14
  225. package/dist/collection/components/cat-badge/cat-badge.spec.js.map +0 -1
  226. package/dist/collection/components/cat-button/cat-button.e2e.js +0 -10
  227. package/dist/collection/components/cat-button/cat-button.e2e.js.map +0 -1
  228. package/dist/collection/components/cat-button/cat-button.spec.js +0 -20
  229. package/dist/collection/components/cat-button/cat-button.spec.js.map +0 -1
  230. package/dist/collection/components/cat-button-group/cat-button-group.e2e.js +0 -10
  231. package/dist/collection/components/cat-button-group/cat-button-group.e2e.js.map +0 -1
  232. package/dist/collection/components/cat-button-group/cat-button-group.spec.js +0 -14
  233. package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +0 -1
  234. package/dist/collection/components/cat-card/cat-card.e2e.js +0 -10
  235. package/dist/collection/components/cat-card/cat-card.e2e.js.map +0 -1
  236. package/dist/collection/components/cat-card/cat-card.spec.js +0 -14
  237. package/dist/collection/components/cat-card/cat-card.spec.js.map +0 -1
  238. package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js +0 -10
  239. package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js.map +0 -1
  240. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +0 -14
  241. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +0 -1
  242. package/dist/collection/components/cat-date/cat-date.e2e.js +0 -11
  243. package/dist/collection/components/cat-date/cat-date.e2e.js.map +0 -1
  244. package/dist/collection/components/cat-date/cat-date.spec.js +0 -17
  245. package/dist/collection/components/cat-date/cat-date.spec.js.map +0 -1
  246. package/dist/collection/components/cat-date-inline/cat-date-inline.e2e.js +0 -11
  247. package/dist/collection/components/cat-date-inline/cat-date-inline.e2e.js.map +0 -1
  248. package/dist/collection/components/cat-date-inline/cat-date-inline.spec.js +0 -16
  249. package/dist/collection/components/cat-date-inline/cat-date-inline.spec.js.map +0 -1
  250. package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js +0 -11
  251. package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js.map +0 -1
  252. package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +0 -15
  253. package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +0 -1
  254. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js +0 -11
  255. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js.map +0 -1
  256. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js +0 -15
  257. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +0 -1
  258. package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js +0 -10
  259. package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js.map +0 -1
  260. package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +0 -21
  261. package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js.map +0 -1
  262. package/dist/collection/components/cat-form-group/cat-form-group.e2e.js +0 -10
  263. package/dist/collection/components/cat-form-group/cat-form-group.e2e.js.map +0 -1
  264. package/dist/collection/components/cat-form-group/cat-form-group.spec.js +0 -14
  265. package/dist/collection/components/cat-form-group/cat-form-group.spec.js.map +0 -1
  266. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +0 -15
  267. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +0 -1
  268. package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js +0 -7
  269. package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js.map +0 -1
  270. package/dist/collection/components/cat-icon/cat-icon-registry.spec.js +0 -7
  271. package/dist/collection/components/cat-icon/cat-icon-registry.spec.js.map +0 -1
  272. package/dist/collection/components/cat-icon/cat-icon.e2e.js +0 -11
  273. package/dist/collection/components/cat-icon/cat-icon.e2e.js.map +0 -1
  274. package/dist/collection/components/cat-icon/cat-icon.spec.js +0 -15
  275. package/dist/collection/components/cat-icon/cat-icon.spec.js.map +0 -1
  276. package/dist/collection/components/cat-input/cat-input.e2e.js +0 -11
  277. package/dist/collection/components/cat-input/cat-input.e2e.js.map +0 -1
  278. package/dist/collection/components/cat-input/cat-input.spec.js +0 -15
  279. package/dist/collection/components/cat-input/cat-input.spec.js.map +0 -1
  280. package/dist/collection/components/cat-notification/cat-notification.spec.js +0 -7
  281. package/dist/collection/components/cat-notification/cat-notification.spec.js.map +0 -1
  282. package/dist/collection/components/cat-pagination/cat-pagination.e2e.js +0 -14
  283. package/dist/collection/components/cat-pagination/cat-pagination.e2e.js.map +0 -1
  284. package/dist/collection/components/cat-pagination/cat-pagination.spec.js +0 -15
  285. package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +0 -1
  286. package/dist/collection/components/cat-radio/cat-radio.e2e.js +0 -10
  287. package/dist/collection/components/cat-radio/cat-radio.e2e.js.map +0 -1
  288. package/dist/collection/components/cat-radio/cat-radio.spec.js +0 -14
  289. package/dist/collection/components/cat-radio/cat-radio.spec.js.map +0 -1
  290. package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js +0 -10
  291. package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js.map +0 -1
  292. package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js +0 -14
  293. package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +0 -1
  294. package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js +0 -10
  295. package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js.map +0 -1
  296. package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +0 -14
  297. package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +0 -1
  298. package/dist/collection/components/cat-select/cat-select.e2e.js +0 -14
  299. package/dist/collection/components/cat-select/cat-select.e2e.js.map +0 -1
  300. package/dist/collection/components/cat-select/cat-select.spec.js +0 -15
  301. package/dist/collection/components/cat-select/cat-select.spec.js.map +0 -1
  302. package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js +0 -10
  303. package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js.map +0 -1
  304. package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +0 -14
  305. package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +0 -1
  306. package/dist/collection/components/cat-spinner/cat-spinner.e2e.js +0 -10
  307. package/dist/collection/components/cat-spinner/cat-spinner.e2e.js.map +0 -1
  308. package/dist/collection/components/cat-spinner/cat-spinner.spec.js +0 -18
  309. package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +0 -1
  310. package/dist/collection/components/cat-tab/cat-tab.e2e.js +0 -10
  311. package/dist/collection/components/cat-tab/cat-tab.e2e.js.map +0 -1
  312. package/dist/collection/components/cat-tab/cat-tab.spec.js +0 -14
  313. package/dist/collection/components/cat-tab/cat-tab.spec.js.map +0 -1
  314. package/dist/collection/components/cat-tabs/cat-tabs.e2e.js +0 -10
  315. package/dist/collection/components/cat-tabs/cat-tabs.e2e.js.map +0 -1
  316. package/dist/collection/components/cat-tabs/cat-tabs.spec.js +0 -14
  317. package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +0 -1
  318. package/dist/collection/components/cat-tag/cat-tag.e2e.js +0 -14
  319. package/dist/collection/components/cat-tag/cat-tag.e2e.js.map +0 -1
  320. package/dist/collection/components/cat-tag/cat-tag.spec.js +0 -23
  321. package/dist/collection/components/cat-tag/cat-tag.spec.js.map +0 -1
  322. package/dist/collection/components/cat-textarea/cat-textarea.e2e.js +0 -11
  323. package/dist/collection/components/cat-textarea/cat-textarea.e2e.js.map +0 -1
  324. package/dist/collection/components/cat-textarea/cat-textarea.spec.js +0 -15
  325. package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +0 -1
  326. package/dist/collection/components/cat-time/cat-time.e2e.js +0 -11
  327. package/dist/collection/components/cat-time/cat-time.e2e.js.map +0 -1
  328. package/dist/collection/components/cat-time/cat-time.spec.js +0 -16
  329. package/dist/collection/components/cat-time/cat-time.spec.js.map +0 -1
  330. package/dist/collection/components/cat-toggle/cat-toggle.e2e.js +0 -10
  331. package/dist/collection/components/cat-toggle/cat-toggle.e2e.js.map +0 -1
  332. package/dist/collection/components/cat-toggle/cat-toggle.spec.js +0 -14
  333. package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +0 -1
  334. package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js +0 -10
  335. package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js.map +0 -1
  336. package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +0 -20
  337. package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +0 -1
  338. package/dist/collection/utils/media-matcher.spec.js +0 -39
  339. package/dist/collection/utils/media-matcher.spec.js.map +0 -1
  340. package/dist/components/floating-ui.dom.esm.js.map +0 -1
  341. package/dist/components/from.js +0 -928
  342. package/dist/components/from.js.map +0 -1
  343. package/dist/components/of.js +0 -10
  344. package/dist/components/of.js.map +0 -1
  345. package/dist/esm/app-globals-0f993ce5.js +0 -5
  346. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  347. package/dist/esm/index-e8c0ddf2.js.map +0 -1
  348. package/dist/esm/of-e4ec2eb4.js +0 -1523
  349. package/dist/esm/of-e4ec2eb4.js.map +0 -1
  350. package/loader/package.json +0 -11
@@ -1,1549 +0,0 @@
1
- 'use strict';
2
-
3
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
-
5
- var loglevel = {exports: {}};
6
-
7
- /*
8
- * loglevel - https://github.com/pimterry/loglevel
9
- *
10
- * Copyright (c) 2013 Tim Perry
11
- * Licensed under the MIT license.
12
- */
13
-
14
- (function (module) {
15
- (function (root, definition) {
16
- if (module.exports) {
17
- module.exports = definition();
18
- } else {
19
- root.log = definition();
20
- }
21
- }(commonjsGlobal, function () {
22
-
23
- // Slightly dubious tricks to cut down minimized file size
24
- var noop = function() {};
25
- var undefinedType = "undefined";
26
- var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
27
- /Trident\/|MSIE /.test(window.navigator.userAgent)
28
- );
29
-
30
- var logMethods = [
31
- "trace",
32
- "debug",
33
- "info",
34
- "warn",
35
- "error"
36
- ];
37
-
38
- var _loggersByName = {};
39
- var defaultLogger = null;
40
-
41
- // Cross-browser bind equivalent that works at least back to IE6
42
- function bindMethod(obj, methodName) {
43
- var method = obj[methodName];
44
- if (typeof method.bind === 'function') {
45
- return method.bind(obj);
46
- } else {
47
- try {
48
- return Function.prototype.bind.call(method, obj);
49
- } catch (e) {
50
- // Missing bind shim or IE8 + Modernizr, fallback to wrapping
51
- return function() {
52
- return Function.prototype.apply.apply(method, [obj, arguments]);
53
- };
54
- }
55
- }
56
- }
57
-
58
- // Trace() doesn't print the message in IE, so for that case we need to wrap it
59
- function traceForIE() {
60
- if (console.log) {
61
- if (console.log.apply) {
62
- console.log.apply(console, arguments);
63
- } else {
64
- // In old IE, native console methods themselves don't have apply().
65
- Function.prototype.apply.apply(console.log, [console, arguments]);
66
- }
67
- }
68
- if (console.trace) console.trace();
69
- }
70
-
71
- // Build the best logging method possible for this env
72
- // Wherever possible we want to bind, not wrap, to preserve stack traces
73
- function realMethod(methodName) {
74
- if (methodName === 'debug') {
75
- methodName = 'log';
76
- }
77
-
78
- if (typeof console === undefinedType) {
79
- return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
80
- } else if (methodName === 'trace' && isIE) {
81
- return traceForIE;
82
- } else if (console[methodName] !== undefined) {
83
- return bindMethod(console, methodName);
84
- } else if (console.log !== undefined) {
85
- return bindMethod(console, 'log');
86
- } else {
87
- return noop;
88
- }
89
- }
90
-
91
- // These private functions always need `this` to be set properly
92
-
93
- function replaceLoggingMethods() {
94
- /*jshint validthis:true */
95
- var level = this.getLevel();
96
-
97
- // Replace the actual methods.
98
- for (var i = 0; i < logMethods.length; i++) {
99
- var methodName = logMethods[i];
100
- this[methodName] = (i < level) ?
101
- noop :
102
- this.methodFactory(methodName, level, this.name);
103
- }
104
-
105
- // Define log.log as an alias for log.debug
106
- this.log = this.debug;
107
-
108
- // Return any important warnings.
109
- if (typeof console === undefinedType && level < this.levels.SILENT) {
110
- return "No console available for logging";
111
- }
112
- }
113
-
114
- // In old IE versions, the console isn't present until you first open it.
115
- // We build realMethod() replacements here that regenerate logging methods
116
- function enableLoggingWhenConsoleArrives(methodName) {
117
- return function () {
118
- if (typeof console !== undefinedType) {
119
- replaceLoggingMethods.call(this);
120
- this[methodName].apply(this, arguments);
121
- }
122
- };
123
- }
124
-
125
- // By default, we use closely bound real methods wherever possible, and
126
- // otherwise we wait for a console to appear, and then try again.
127
- function defaultMethodFactory(methodName, _level, _loggerName) {
128
- /*jshint validthis:true */
129
- return realMethod(methodName) ||
130
- enableLoggingWhenConsoleArrives.apply(this, arguments);
131
- }
132
-
133
- function Logger(name, factory) {
134
- // Private instance variables.
135
- var self = this;
136
- /**
137
- * The level inherited from a parent logger (or a global default). We
138
- * cache this here rather than delegating to the parent so that it stays
139
- * in sync with the actual logging methods that we have installed (the
140
- * parent could change levels but we might not have rebuilt the loggers
141
- * in this child yet).
142
- * @type {number}
143
- */
144
- var inheritedLevel;
145
- /**
146
- * The default level for this logger, if any. If set, this overrides
147
- * `inheritedLevel`.
148
- * @type {number|null}
149
- */
150
- var defaultLevel;
151
- /**
152
- * A user-specific level for this logger. If set, this overrides
153
- * `defaultLevel`.
154
- * @type {number|null}
155
- */
156
- var userLevel;
157
-
158
- var storageKey = "loglevel";
159
- if (typeof name === "string") {
160
- storageKey += ":" + name;
161
- } else if (typeof name === "symbol") {
162
- storageKey = undefined;
163
- }
164
-
165
- function persistLevelIfPossible(levelNum) {
166
- var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
167
-
168
- if (typeof window === undefinedType || !storageKey) return;
169
-
170
- // Use localStorage if available
171
- try {
172
- window.localStorage[storageKey] = levelName;
173
- return;
174
- } catch (ignore) {}
175
-
176
- // Use session cookie as fallback
177
- try {
178
- window.document.cookie =
179
- encodeURIComponent(storageKey) + "=" + levelName + ";";
180
- } catch (ignore) {}
181
- }
182
-
183
- function getPersistedLevel() {
184
- var storedLevel;
185
-
186
- if (typeof window === undefinedType || !storageKey) return;
187
-
188
- try {
189
- storedLevel = window.localStorage[storageKey];
190
- } catch (ignore) {}
191
-
192
- // Fallback to cookies if local storage gives us nothing
193
- if (typeof storedLevel === undefinedType) {
194
- try {
195
- var cookie = window.document.cookie;
196
- var cookieName = encodeURIComponent(storageKey);
197
- var location = cookie.indexOf(cookieName + "=");
198
- if (location !== -1) {
199
- storedLevel = /^([^;]+)/.exec(
200
- cookie.slice(location + cookieName.length + 1)
201
- )[1];
202
- }
203
- } catch (ignore) {}
204
- }
205
-
206
- // If the stored level is not valid, treat it as if nothing was stored.
207
- if (self.levels[storedLevel] === undefined) {
208
- storedLevel = undefined;
209
- }
210
-
211
- return storedLevel;
212
- }
213
-
214
- function clearPersistedLevel() {
215
- if (typeof window === undefinedType || !storageKey) return;
216
-
217
- // Use localStorage if available
218
- try {
219
- window.localStorage.removeItem(storageKey);
220
- } catch (ignore) {}
221
-
222
- // Use session cookie as fallback
223
- try {
224
- window.document.cookie =
225
- encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
226
- } catch (ignore) {}
227
- }
228
-
229
- function normalizeLevel(input) {
230
- var level = input;
231
- if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
232
- level = self.levels[level.toUpperCase()];
233
- }
234
- if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
235
- return level;
236
- } else {
237
- throw new TypeError("log.setLevel() called with invalid level: " + input);
238
- }
239
- }
240
-
241
- /*
242
- *
243
- * Public logger API - see https://github.com/pimterry/loglevel for details
244
- *
245
- */
246
-
247
- self.name = name;
248
-
249
- self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
250
- "ERROR": 4, "SILENT": 5};
251
-
252
- self.methodFactory = factory || defaultMethodFactory;
253
-
254
- self.getLevel = function () {
255
- if (userLevel != null) {
256
- return userLevel;
257
- } else if (defaultLevel != null) {
258
- return defaultLevel;
259
- } else {
260
- return inheritedLevel;
261
- }
262
- };
263
-
264
- self.setLevel = function (level, persist) {
265
- userLevel = normalizeLevel(level);
266
- if (persist !== false) { // defaults to true
267
- persistLevelIfPossible(userLevel);
268
- }
269
-
270
- // NOTE: in v2, this should call rebuild(), which updates children.
271
- return replaceLoggingMethods.call(self);
272
- };
273
-
274
- self.setDefaultLevel = function (level) {
275
- defaultLevel = normalizeLevel(level);
276
- if (!getPersistedLevel()) {
277
- self.setLevel(level, false);
278
- }
279
- };
280
-
281
- self.resetLevel = function () {
282
- userLevel = null;
283
- clearPersistedLevel();
284
- replaceLoggingMethods.call(self);
285
- };
286
-
287
- self.enableAll = function(persist) {
288
- self.setLevel(self.levels.TRACE, persist);
289
- };
290
-
291
- self.disableAll = function(persist) {
292
- self.setLevel(self.levels.SILENT, persist);
293
- };
294
-
295
- self.rebuild = function () {
296
- if (defaultLogger !== self) {
297
- inheritedLevel = normalizeLevel(defaultLogger.getLevel());
298
- }
299
- replaceLoggingMethods.call(self);
300
-
301
- if (defaultLogger === self) {
302
- for (var childName in _loggersByName) {
303
- _loggersByName[childName].rebuild();
304
- }
305
- }
306
- };
307
-
308
- // Initialize all the internal levels.
309
- inheritedLevel = normalizeLevel(
310
- defaultLogger ? defaultLogger.getLevel() : "WARN"
311
- );
312
- var initialLevel = getPersistedLevel();
313
- if (initialLevel != null) {
314
- userLevel = normalizeLevel(initialLevel);
315
- }
316
- replaceLoggingMethods.call(self);
317
- }
318
-
319
- /*
320
- *
321
- * Top-level API
322
- *
323
- */
324
-
325
- defaultLogger = new Logger();
326
-
327
- defaultLogger.getLogger = function getLogger(name) {
328
- if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
329
- throw new TypeError("You must supply a name when creating a logger.");
330
- }
331
-
332
- var logger = _loggersByName[name];
333
- if (!logger) {
334
- logger = _loggersByName[name] = new Logger(
335
- name,
336
- defaultLogger.methodFactory
337
- );
338
- }
339
- return logger;
340
- };
341
-
342
- // Grab the current global log variable in case of overwrite
343
- var _log = (typeof window !== undefinedType) ? window.log : undefined;
344
- defaultLogger.noConflict = function() {
345
- if (typeof window !== undefinedType &&
346
- window.log === defaultLogger) {
347
- window.log = _log;
348
- }
349
-
350
- return defaultLogger;
351
- };
352
-
353
- defaultLogger.getLoggers = function getLoggers() {
354
- return _loggersByName;
355
- };
356
-
357
- // ES6 default export, for compatibility
358
- defaultLogger['default'] = defaultLogger;
359
-
360
- return defaultLogger;
361
- }));
362
- }(loglevel));
363
-
364
- const log = loglevel.exports;
365
-
366
- /**
367
- * A registry for lightweight internationalization (i18n) in applications using
368
- * the Catalyst design system. The registry stores translations and provides
369
- * methods for setting the locale, registering translations, and retrieving
370
- * translated messages.
371
- */
372
- class CatI18nRegistry {
373
- constructor() {
374
- // hide constructor
375
- this.id = (Math.random() + 1).toString(36).substring(2);
376
- this.i18n = new Map();
377
- // In rare cases, the registry can be initialized twice. This can happen in
378
- // a micro frontend architecture where the registry is initialized in the
379
- // host application and in the micro frontend. To prevent the registry in
380
- // one application from overwriting the registry in the other, we listen for
381
- // events that are dispatched when messages are added or removed in other
382
- // applications and add or remove messages if the event was not dispatched
383
- // by this registry.
384
- window.addEventListener('cat-i18n-setLocale', event => {
385
- const { detail } = event || {};
386
- if (detail && detail.id !== this.id) {
387
- this.setLocale(detail.locale, true);
388
- }
389
- });
390
- window.addEventListener('cat-i18n-set', event => {
391
- const { detail } = event || {};
392
- if (detail && detail.id !== this.id) {
393
- this.set(detail.i18n, true);
394
- }
395
- });
396
- window.addEventListener('cat-i18n-clear', event => {
397
- const { detail } = event || {};
398
- if (detail && detail.id !== this.id) {
399
- this.clear(true);
400
- }
401
- });
402
- }
403
- static getInstance() {
404
- if (!CatI18nRegistry.instance) {
405
- CatI18nRegistry.instance = new CatI18nRegistry();
406
- }
407
- return CatI18nRegistry.instance;
408
- }
409
- getLocale() {
410
- return this._locale ?? window?.navigator?.language ?? 'en';
411
- }
412
- setLocale(locale, silent = false) {
413
- try {
414
- this._locale = Intl.getCanonicalLocales(locale)[0];
415
- log.info(`[CatI18nRegistry::${this.id}] Set locale: ${this._locale}`);
416
- !silent && window.dispatchEvent(this.buildEvent('cat-i18n-setLocale', { locale, id: this.id }));
417
- }
418
- catch (err) {
419
- log.error(`[CatI18nRegistry::${this.id}] Invalid locale: ${locale}`);
420
- }
421
- }
422
- set(i18n, silent = false) {
423
- if (typeof i18n === 'function') {
424
- this._translator = i18n;
425
- log.info(`[CatI18nRegistry::${this.id}] Registered translator`);
426
- }
427
- else {
428
- const i18nEntries = Object.entries(i18n);
429
- i18nEntries.forEach(([key, message]) => this.i18n.set(key, message));
430
- log.info(`[CatI18nRegistry::${this.id}] Registered ${i18nEntries.length !== 1 ? 'messages' : 'message'}`);
431
- }
432
- !silent && window.dispatchEvent(this.buildEvent('cat-i18n-set', { i18n, id: this.id }));
433
- }
434
- clear(silent = false) {
435
- this.i18n.clear();
436
- log.info(`[CatI18nRegistry::${this.id}] Cleared messages`);
437
- !silent && window.dispatchEvent(this.buildEvent('cat-i18n-clear'));
438
- }
439
- t(key, params) {
440
- const message = this._translator?.(key, params) ??
441
- this.i18n.get(key)?.replace(/{{\s*([-a-zA-Z._]+)\s*}}/g, (_match, key) => `${params?.[key] ?? ''}`);
442
- if (message === undefined) {
443
- log.error(`[CatI18nRegistry::${this.id}] Unknown message key: ${key}`);
444
- return key;
445
- }
446
- return message;
447
- }
448
- buildEvent(name, detail) {
449
- return new CustomEvent(name, {
450
- bubbles: true,
451
- composed: true,
452
- detail
453
- });
454
- }
455
- }
456
- const catI18nRegistry = CatI18nRegistry.getInstance();
457
-
458
- const chevronDoubleLeft16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7.53 4.53a.75.75 0 0 0-1.06-1.06l-4 4a.75.75 0 0 0 0 1.06l4 4a.75.75 0 0 0 1.06-1.06L4.06 8z"/><path d="M12.53 4.53a.75.75 0 0 0-1.06-1.06l-4 4a.75.75 0 0 0 0 1.06l4 4a.75.75 0 1 0 1.06-1.06L9.06 8z"/></svg>`;
459
-
460
- const chevronDoubleRight16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.53 3.47a.75.75 0 0 0-1.06 1.06L6.94 8l-3.47 3.47a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06z"/><path d="M9.53 3.47a.75.75 0 0 0-1.06 1.06L11.94 8l-3.47 3.47a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06z"/></svg>`;
461
-
462
- const chevronLeft16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M10.53 3.47a.75.75 0 0 1 0 1.06L7.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0" clip-rule="evenodd"/></svg>`;
463
-
464
- const chevronRight16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06" clip-rule="evenodd"/></svg>`;
465
-
466
- const cross16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.53 3.47a.75.75 0 0 0-1.06 1.06L6.94 8l-3.47 3.47a.75.75 0 1 0 1.06 1.06L8 9.06l3.47 3.47a.75.75 0 1 0 1.06-1.06L9.06 8l3.47-3.47a.75.75 0 0 0-1.06-1.06L8 6.94z"/></svg>`;
467
-
468
- const alertCircleOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.25-8a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0z"/><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12M12 3.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5" clip-rule="evenodd"/></svg>`;
469
-
470
- const calendarOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17 2.25a.75.75 0 0 1 .75.75v.25H18A2.75 2.75 0 0 1 20.75 6v12A2.75 2.75 0 0 1 18 20.75H6A2.75 2.75 0 0 1 3.25 18V6A2.75 2.75 0 0 1 6 3.25h.25V3a.75.75 0 0 1 1.5 0v.25h8.5V3a.75.75 0 0 1 .75-.75M6 4.75c-.69 0-1.25.56-1.25 1.25v2.25h14.5V6c0-.69-.56-1.25-1.25-1.25zm-1.25 5V18c0 .69.56 1.25 1.25 1.25h12c.69 0 1.25-.56 1.25-1.25V9.75z" clip-rule="evenodd"/></svg>`;
471
-
472
- const checkCircleFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m4.768-12.36a1 1 0 1 0-1.536-1.28l-4.3 5.159-2.225-2.226a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.475-.067z" clip-rule="evenodd"/></svg>`;
473
-
474
- const chevronDownOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M6.47 9.47a.75.75 0 0 1 1.06 0L12 13.94l4.47-4.47a.75.75 0 1 1 1.06 1.06l-5 5a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06" clip-rule="evenodd"/></svg>`;
475
-
476
- const chevronLeftOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.53 6.47a.75.75 0 0 1 0 1.06L10.06 12l4.47 4.47a.75.75 0 1 1-1.06 1.06l-5-5a.75.75 0 0 1 0-1.06l5-5a.75.75 0 0 1 1.06 0" clip-rule="evenodd"/></svg>`;
477
-
478
- const chevronRightOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.47 6.47a.75.75 0 0 1 1.06 0l5 5a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 1 1-1.06-1.06L13.94 12 9.47 7.53a.75.75 0 0 1 0-1.06" clip-rule="evenodd"/></svg>`;
479
-
480
- const clockFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m1-15a1 1 0 1 0-2 0v5a1 1 0 0 0 1 1h5a1 1 0 1 0 0-2h-4z" clip-rule="evenodd"/></svg>`;
481
-
482
- const clockOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.75 7a.75.75 0 0 0-1.5 0v5c0 .414.336.75.75.75h5a.75.75 0 0 0 0-1.5h-4.25z"/><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25M3.75 12a8.25 8.25 0 1 1 16.5 0 8.25 8.25 0 0 1-16.5 0" clip-rule="evenodd"/></svg>`;
483
-
484
- const crossCircleFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414" clip-rule="evenodd"/></svg>`;
485
-
486
- const crossCircleOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.47 8.47a.75.75 0 0 1 1.06 0L12 10.94l2.47-2.47a.75.75 0 1 1 1.06 1.06L13.06 12l2.47 2.47a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 0-1.06"/><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25M3.75 12a8.25 8.25 0 1 1 16.5 0 8.25 8.25 0 0 1-16.5 0" clip-rule="evenodd"/></svg>`;
487
-
488
- const crossOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.53 6.47a.75.75 0 0 0-1.06 1.06L10.94 12l-4.47 4.47a.75.75 0 1 0 1.06 1.06L12 13.06l4.47 4.47a.75.75 0 1 0 1.06-1.06L13.06 12l4.47-4.47a.75.75 0 0 0-1.06-1.06L12 10.94z"/></svg>`;
489
-
490
- const dangerFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 3.25c-.429 0-.85.113-1.22.328a2.5 2.5 0 0 0-.899.891L2.577 16.981a2.55 2.55 0 0 0-.007 2.491c.212.381.519.7.891.926a2.44 2.44 0 0 0 1.234.352h14.61a2.44 2.44 0 0 0 1.233-.352 2.5 2.5 0 0 0 .892-.926 2.55 2.55 0 0 0-.007-2.491L14.119 4.469a2.5 2.5 0 0 0-.899-.891A2.44 2.44 0 0 0 12 3.25M12 8a1 1 0 0 1 1 1v3.5a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1m1 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/></svg>`;
491
-
492
- const eyeClosedOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.608 7.948a.75.75 0 1 0-1.234.853 12.4 12.4 0 0 0 2.255 2.438l-2.574 2.574a.75.75 0 0 0 1.061 1.06l2.738-2.737c1.283.824 2.777 1.433 4.396 1.58V17a.75.75 0 0 0 1.5 0v-3.284c1.618-.148 3.11-.76 4.392-1.584l2.742 2.742a.75.75 0 0 0 1.06-1.06l-2.579-2.58a12.5 12.5 0 0 0 2.251-2.432.75.75 0 0 0-1.232-.855C17.965 9.99 15.144 12.25 12 12.25c-3.153 0-5.978-2.255-7.392-4.302"/></svg>`;
493
-
494
- const eyeOpenOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5M9.75 12a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12 4.25c-2.735 0-5.158 1.37-6.872 2.948-.862.794-1.567 1.66-2.062 2.475-.479.79-.816 1.62-.816 2.327s.337 1.538.816 2.327c.495.815 1.2 1.68 2.062 2.475C6.842 18.38 9.265 19.75 12 19.75c2.737 0 5.16-1.379 6.873-2.96.861-.795 1.566-1.662 2.06-2.475.479-.786.817-1.614.817-2.315s-.338-1.529-.817-2.315c-.494-.813-1.199-1.68-2.06-2.475C17.16 5.629 14.737 4.25 12 4.25M3.75 12c0-.293.167-.837.598-1.548.416-.685 1.03-1.444 1.796-2.15C7.688 6.88 9.764 5.75 12 5.75c2.234 0 4.31 1.136 5.855 2.562.767.708 1.38 1.468 1.797 2.153.433.71.598 1.25.598 1.535s-.165.824-.598 1.535c-.416.685-1.03 1.445-1.797 2.153-1.544 1.426-3.621 2.562-5.855 2.562s-4.312-1.13-5.856-2.552c-.767-.706-1.38-1.465-1.796-2.15-.431-.71-.598-1.255-.598-1.548" clip-rule="evenodd"/></svg>`;
495
-
496
- const infoCircleFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12M13 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m0 3.5a1 1 0 1 0-2 0V16a1 1 0 1 0 2 0z" clip-rule="evenodd"/></svg>`;
497
-
498
- const starCircleFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10m-7.82-3.001L12 5 9.82 8.999l-4.477.838 3.129 3.31-.587 4.516L12 15.71l4.114 1.953-.586-4.517 3.13-3.31z" clip-rule="evenodd"/></svg>`;
499
-
500
- class CatIconRegistry {
501
- constructor() {
502
- // hide constructor
503
- this.id = (Math.random() + 1).toString(36).substring(2);
504
- this.icons = new Map();
505
- // ignore syncing in backwards compatible manner
506
- this.syncIcons = true;
507
- // register default icons that are used in the framework by other components
508
- this.addIcons({
509
- 'alert-primary': starCircleFilled,
510
- 'alert-secondary': clockFilled,
511
- 'alert-info': infoCircleFilled,
512
- 'alert-success': checkCircleFilled,
513
- 'alert-warning': dangerFilled,
514
- 'alert-danger': crossCircleFilled,
515
- 'datepicker-month-prev': chevronLeft16,
516
- 'datepicker-month-next': chevronRight16,
517
- 'datepicker-year-prev': chevronDoubleLeft16,
518
- 'datepicker-year-next': chevronDoubleRight16,
519
- 'datepicker-calendar': calendarOutlined,
520
- 'timepicker-clock': clockOutlined,
521
- 'dialog-close': crossOutlined,
522
- 'input-close': crossCircleOutlined,
523
- 'input-error': alertCircleOutlined,
524
- 'input-password-show': eyeOpenOutlined,
525
- 'input-password-hide': eyeClosedOutlined,
526
- 'notification-close': crossCircleOutlined,
527
- 'pagination-left': chevronLeftOutlined,
528
- 'pagination-right': chevronRightOutlined,
529
- 'select-clear': cross16,
530
- 'select-open': chevronDownOutlined
531
- }, '$cat', true);
532
- // In rare cases, the registry can be initialized twice. This can happen in
533
- // a micro frontend architecture where the registry is initialized in the
534
- // host application and in the micro frontend. To prevent the registry in
535
- // one application from overwriting the registry in the other, we listen for
536
- // events that are dispatched when icons are added or removed in other
537
- // applications and add or remove icons if the event was not dispatched by
538
- // this registry.
539
- window.addEventListener('cat-icons-added', event => {
540
- const { detail } = event || {};
541
- if (this.syncIcons && detail && detail.id !== this.id) {
542
- this.addIcons(detail.icons, detail.setName, true);
543
- }
544
- });
545
- window.addEventListener('cat-icons-removed', event => {
546
- const { detail } = event || {};
547
- if (this.syncIcons && detail && detail.id !== this.id) {
548
- this.removeIcons(detail.names, detail.setName, true);
549
- }
550
- });
551
- }
552
- static getInstance() {
553
- if (!CatIconRegistry.instance) {
554
- CatIconRegistry.instance = new CatIconRegistry();
555
- }
556
- return CatIconRegistry.instance;
557
- }
558
- getIcon(name, setName) {
559
- const icon = this.icons.get(this.buildName(name, setName));
560
- if (!icon) {
561
- log.error(`[CatIconRegistry::${this.id}] Unknown icon${setName ? ` in set ${setName}` : ''}: ${name}`);
562
- }
563
- return icon;
564
- }
565
- addIcons(icons, setName, silent = false) {
566
- const iconEntries = Object.entries(icons);
567
- const iconSize = iconEntries.length;
568
- iconEntries.forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));
569
- log.info(`[CatIconRegistry::${this.id}] Added ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` to set ${setName}` : ''}`);
570
- !silent && window.dispatchEvent(this.buildEvent('cat-icons-added', { id: this.id, icons, setName }));
571
- return this;
572
- }
573
- removeIcons(names, setName, silent = false) {
574
- const iconSize = names.length;
575
- names.forEach(name => this.icons.delete(this.buildName(name, setName)));
576
- log.info(`[CatIconRegistry::${this.id}] Removed ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` from set ${setName}` : ''}`);
577
- !silent && window.dispatchEvent(this.buildEvent('cat-icons-removed', { id: this.id, names, setName }));
578
- return this;
579
- }
580
- buildName(name, setName) {
581
- return setName ? `${setName}:${name}` : name;
582
- }
583
- buildEvent(name, detail) {
584
- return new CustomEvent(name, {
585
- bubbles: true,
586
- composed: true,
587
- detail
588
- });
589
- }
590
- }
591
- const catIconRegistry = CatIconRegistry.getInstance();
592
-
593
- function isFunction(value) {
594
- return typeof value === 'function';
595
- }
596
-
597
- function createErrorClass(createImpl) {
598
- const _super = (instance) => {
599
- Error.call(instance);
600
- instance.stack = new Error().stack;
601
- };
602
- const ctorFunc = createImpl(_super);
603
- ctorFunc.prototype = Object.create(Error.prototype);
604
- ctorFunc.prototype.constructor = ctorFunc;
605
- return ctorFunc;
606
- }
607
-
608
- const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {
609
- _super(this);
610
- this.message = errors
611
- ? `${errors.length} errors occurred during unsubscription:
612
- ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}`
613
- : '';
614
- this.name = 'UnsubscriptionError';
615
- this.errors = errors;
616
- });
617
-
618
- function arrRemove(arr, item) {
619
- if (arr) {
620
- const index = arr.indexOf(item);
621
- 0 <= index && arr.splice(index, 1);
622
- }
623
- }
624
-
625
- class Subscription {
626
- constructor(initialTeardown) {
627
- this.initialTeardown = initialTeardown;
628
- this.closed = false;
629
- this._parentage = null;
630
- this._finalizers = null;
631
- }
632
- unsubscribe() {
633
- let errors;
634
- if (!this.closed) {
635
- this.closed = true;
636
- const { _parentage } = this;
637
- if (_parentage) {
638
- this._parentage = null;
639
- if (Array.isArray(_parentage)) {
640
- for (const parent of _parentage) {
641
- parent.remove(this);
642
- }
643
- }
644
- else {
645
- _parentage.remove(this);
646
- }
647
- }
648
- const { initialTeardown: initialFinalizer } = this;
649
- if (isFunction(initialFinalizer)) {
650
- try {
651
- initialFinalizer();
652
- }
653
- catch (e) {
654
- errors = e instanceof UnsubscriptionError ? e.errors : [e];
655
- }
656
- }
657
- const { _finalizers } = this;
658
- if (_finalizers) {
659
- this._finalizers = null;
660
- for (const finalizer of _finalizers) {
661
- try {
662
- execFinalizer(finalizer);
663
- }
664
- catch (err) {
665
- errors = errors !== null && errors !== void 0 ? errors : [];
666
- if (err instanceof UnsubscriptionError) {
667
- errors = [...errors, ...err.errors];
668
- }
669
- else {
670
- errors.push(err);
671
- }
672
- }
673
- }
674
- }
675
- if (errors) {
676
- throw new UnsubscriptionError(errors);
677
- }
678
- }
679
- }
680
- add(teardown) {
681
- var _a;
682
- if (teardown && teardown !== this) {
683
- if (this.closed) {
684
- execFinalizer(teardown);
685
- }
686
- else {
687
- if (teardown instanceof Subscription) {
688
- if (teardown.closed || teardown._hasParent(this)) {
689
- return;
690
- }
691
- teardown._addParent(this);
692
- }
693
- (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
694
- }
695
- }
696
- }
697
- _hasParent(parent) {
698
- const { _parentage } = this;
699
- return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
700
- }
701
- _addParent(parent) {
702
- const { _parentage } = this;
703
- this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
704
- }
705
- _removeParent(parent) {
706
- const { _parentage } = this;
707
- if (_parentage === parent) {
708
- this._parentage = null;
709
- }
710
- else if (Array.isArray(_parentage)) {
711
- arrRemove(_parentage, parent);
712
- }
713
- }
714
- remove(teardown) {
715
- const { _finalizers } = this;
716
- _finalizers && arrRemove(_finalizers, teardown);
717
- if (teardown instanceof Subscription) {
718
- teardown._removeParent(this);
719
- }
720
- }
721
- }
722
- Subscription.EMPTY = (() => {
723
- const empty = new Subscription();
724
- empty.closed = true;
725
- return empty;
726
- })();
727
- const EMPTY_SUBSCRIPTION = Subscription.EMPTY;
728
- function isSubscription(value) {
729
- return (value instanceof Subscription ||
730
- (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
731
- }
732
- function execFinalizer(finalizer) {
733
- if (isFunction(finalizer)) {
734
- finalizer();
735
- }
736
- else {
737
- finalizer.unsubscribe();
738
- }
739
- }
740
-
741
- const config = {
742
- onUnhandledError: null,
743
- onStoppedNotification: null,
744
- Promise: undefined,
745
- useDeprecatedSynchronousErrorHandling: false,
746
- useDeprecatedNextContext: false,
747
- };
748
-
749
- const timeoutProvider = {
750
- setTimeout(handler, timeout, ...args) {
751
- const { delegate } = timeoutProvider;
752
- if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
753
- return delegate.setTimeout(handler, timeout, ...args);
754
- }
755
- return setTimeout(handler, timeout, ...args);
756
- },
757
- clearTimeout(handle) {
758
- const { delegate } = timeoutProvider;
759
- return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
760
- },
761
- delegate: undefined,
762
- };
763
-
764
- function reportUnhandledError(err) {
765
- timeoutProvider.setTimeout(() => {
766
- const { onUnhandledError } = config;
767
- if (onUnhandledError) {
768
- onUnhandledError(err);
769
- }
770
- else {
771
- throw err;
772
- }
773
- });
774
- }
775
-
776
- function noop() { }
777
-
778
- const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();
779
- function errorNotification(error) {
780
- return createNotification('E', undefined, error);
781
- }
782
- function nextNotification(value) {
783
- return createNotification('N', value, undefined);
784
- }
785
- function createNotification(kind, value, error) {
786
- return {
787
- kind,
788
- value,
789
- error,
790
- };
791
- }
792
-
793
- let context = null;
794
- function errorContext(cb) {
795
- if (config.useDeprecatedSynchronousErrorHandling) {
796
- const isRoot = !context;
797
- if (isRoot) {
798
- context = { errorThrown: false, error: null };
799
- }
800
- cb();
801
- if (isRoot) {
802
- const { errorThrown, error } = context;
803
- context = null;
804
- if (errorThrown) {
805
- throw error;
806
- }
807
- }
808
- }
809
- else {
810
- cb();
811
- }
812
- }
813
-
814
- class Subscriber extends Subscription {
815
- constructor(destination) {
816
- super();
817
- this.isStopped = false;
818
- if (destination) {
819
- this.destination = destination;
820
- if (isSubscription(destination)) {
821
- destination.add(this);
822
- }
823
- }
824
- else {
825
- this.destination = EMPTY_OBSERVER;
826
- }
827
- }
828
- static create(next, error, complete) {
829
- return new SafeSubscriber(next, error, complete);
830
- }
831
- next(value) {
832
- if (this.isStopped) {
833
- handleStoppedNotification(nextNotification(value), this);
834
- }
835
- else {
836
- this._next(value);
837
- }
838
- }
839
- error(err) {
840
- if (this.isStopped) {
841
- handleStoppedNotification(errorNotification(err), this);
842
- }
843
- else {
844
- this.isStopped = true;
845
- this._error(err);
846
- }
847
- }
848
- complete() {
849
- if (this.isStopped) {
850
- handleStoppedNotification(COMPLETE_NOTIFICATION, this);
851
- }
852
- else {
853
- this.isStopped = true;
854
- this._complete();
855
- }
856
- }
857
- unsubscribe() {
858
- if (!this.closed) {
859
- this.isStopped = true;
860
- super.unsubscribe();
861
- this.destination = null;
862
- }
863
- }
864
- _next(value) {
865
- this.destination.next(value);
866
- }
867
- _error(err) {
868
- try {
869
- this.destination.error(err);
870
- }
871
- finally {
872
- this.unsubscribe();
873
- }
874
- }
875
- _complete() {
876
- try {
877
- this.destination.complete();
878
- }
879
- finally {
880
- this.unsubscribe();
881
- }
882
- }
883
- }
884
- const _bind = Function.prototype.bind;
885
- function bind(fn, thisArg) {
886
- return _bind.call(fn, thisArg);
887
- }
888
- class ConsumerObserver {
889
- constructor(partialObserver) {
890
- this.partialObserver = partialObserver;
891
- }
892
- next(value) {
893
- const { partialObserver } = this;
894
- if (partialObserver.next) {
895
- try {
896
- partialObserver.next(value);
897
- }
898
- catch (error) {
899
- handleUnhandledError(error);
900
- }
901
- }
902
- }
903
- error(err) {
904
- const { partialObserver } = this;
905
- if (partialObserver.error) {
906
- try {
907
- partialObserver.error(err);
908
- }
909
- catch (error) {
910
- handleUnhandledError(error);
911
- }
912
- }
913
- else {
914
- handleUnhandledError(err);
915
- }
916
- }
917
- complete() {
918
- const { partialObserver } = this;
919
- if (partialObserver.complete) {
920
- try {
921
- partialObserver.complete();
922
- }
923
- catch (error) {
924
- handleUnhandledError(error);
925
- }
926
- }
927
- }
928
- }
929
- class SafeSubscriber extends Subscriber {
930
- constructor(observerOrNext, error, complete) {
931
- super();
932
- let partialObserver;
933
- if (isFunction(observerOrNext) || !observerOrNext) {
934
- partialObserver = {
935
- next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),
936
- error: error !== null && error !== void 0 ? error : undefined,
937
- complete: complete !== null && complete !== void 0 ? complete : undefined,
938
- };
939
- }
940
- else {
941
- let context;
942
- if (this && config.useDeprecatedNextContext) {
943
- context = Object.create(observerOrNext);
944
- context.unsubscribe = () => this.unsubscribe();
945
- partialObserver = {
946
- next: observerOrNext.next && bind(observerOrNext.next, context),
947
- error: observerOrNext.error && bind(observerOrNext.error, context),
948
- complete: observerOrNext.complete && bind(observerOrNext.complete, context),
949
- };
950
- }
951
- else {
952
- partialObserver = observerOrNext;
953
- }
954
- }
955
- this.destination = new ConsumerObserver(partialObserver);
956
- }
957
- }
958
- function handleUnhandledError(error) {
959
- {
960
- reportUnhandledError(error);
961
- }
962
- }
963
- function defaultErrorHandler(err) {
964
- throw err;
965
- }
966
- function handleStoppedNotification(notification, subscriber) {
967
- const { onStoppedNotification } = config;
968
- onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));
969
- }
970
- const EMPTY_OBSERVER = {
971
- closed: true,
972
- next: noop,
973
- error: defaultErrorHandler,
974
- complete: noop,
975
- };
976
-
977
- const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();
978
-
979
- function identity(x) {
980
- return x;
981
- }
982
-
983
- function pipeFromArray(fns) {
984
- if (fns.length === 0) {
985
- return identity;
986
- }
987
- if (fns.length === 1) {
988
- return fns[0];
989
- }
990
- return function piped(input) {
991
- return fns.reduce((prev, fn) => fn(prev), input);
992
- };
993
- }
994
-
995
- class Observable {
996
- constructor(subscribe) {
997
- if (subscribe) {
998
- this._subscribe = subscribe;
999
- }
1000
- }
1001
- lift(operator) {
1002
- const observable = new Observable();
1003
- observable.source = this;
1004
- observable.operator = operator;
1005
- return observable;
1006
- }
1007
- subscribe(observerOrNext, error, complete) {
1008
- const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
1009
- errorContext(() => {
1010
- const { operator, source } = this;
1011
- subscriber.add(operator
1012
- ?
1013
- operator.call(subscriber, source)
1014
- : source
1015
- ?
1016
- this._subscribe(subscriber)
1017
- :
1018
- this._trySubscribe(subscriber));
1019
- });
1020
- return subscriber;
1021
- }
1022
- _trySubscribe(sink) {
1023
- try {
1024
- return this._subscribe(sink);
1025
- }
1026
- catch (err) {
1027
- sink.error(err);
1028
- }
1029
- }
1030
- forEach(next, promiseCtor) {
1031
- promiseCtor = getPromiseCtor(promiseCtor);
1032
- return new promiseCtor((resolve, reject) => {
1033
- const subscriber = new SafeSubscriber({
1034
- next: (value) => {
1035
- try {
1036
- next(value);
1037
- }
1038
- catch (err) {
1039
- reject(err);
1040
- subscriber.unsubscribe();
1041
- }
1042
- },
1043
- error: reject,
1044
- complete: resolve,
1045
- });
1046
- this.subscribe(subscriber);
1047
- });
1048
- }
1049
- _subscribe(subscriber) {
1050
- var _a;
1051
- return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
1052
- }
1053
- [observable]() {
1054
- return this;
1055
- }
1056
- pipe(...operations) {
1057
- return pipeFromArray(operations)(this);
1058
- }
1059
- toPromise(promiseCtor) {
1060
- promiseCtor = getPromiseCtor(promiseCtor);
1061
- return new promiseCtor((resolve, reject) => {
1062
- let value;
1063
- this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));
1064
- });
1065
- }
1066
- }
1067
- Observable.create = (subscribe) => {
1068
- return new Observable(subscribe);
1069
- };
1070
- function getPromiseCtor(promiseCtor) {
1071
- var _a;
1072
- return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
1073
- }
1074
- function isObserver(value) {
1075
- return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
1076
- }
1077
- function isSubscriber(value) {
1078
- return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
1079
- }
1080
-
1081
- function hasLift(source) {
1082
- return isFunction(source === null || source === void 0 ? void 0 : source.lift);
1083
- }
1084
- function operate(init) {
1085
- return (source) => {
1086
- if (hasLift(source)) {
1087
- return source.lift(function (liftedSource) {
1088
- try {
1089
- return init(liftedSource, this);
1090
- }
1091
- catch (err) {
1092
- this.error(err);
1093
- }
1094
- });
1095
- }
1096
- throw new TypeError('Unable to lift unknown Observable type');
1097
- };
1098
- }
1099
-
1100
- function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
1101
- return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
1102
- }
1103
- class OperatorSubscriber extends Subscriber {
1104
- constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
1105
- super(destination);
1106
- this.onFinalize = onFinalize;
1107
- this.shouldUnsubscribe = shouldUnsubscribe;
1108
- this._next = onNext
1109
- ? function (value) {
1110
- try {
1111
- onNext(value);
1112
- }
1113
- catch (err) {
1114
- destination.error(err);
1115
- }
1116
- }
1117
- : super._next;
1118
- this._error = onError
1119
- ? function (err) {
1120
- try {
1121
- onError(err);
1122
- }
1123
- catch (err) {
1124
- destination.error(err);
1125
- }
1126
- finally {
1127
- this.unsubscribe();
1128
- }
1129
- }
1130
- : super._error;
1131
- this._complete = onComplete
1132
- ? function () {
1133
- try {
1134
- onComplete();
1135
- }
1136
- catch (err) {
1137
- destination.error(err);
1138
- }
1139
- finally {
1140
- this.unsubscribe();
1141
- }
1142
- }
1143
- : super._complete;
1144
- }
1145
- unsubscribe() {
1146
- var _a;
1147
- if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
1148
- const { closed } = this;
1149
- super.unsubscribe();
1150
- !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
1151
- }
1152
- }
1153
- }
1154
-
1155
- function isScheduler(value) {
1156
- return value && isFunction(value.schedule);
1157
- }
1158
-
1159
- function last(arr) {
1160
- return arr[arr.length - 1];
1161
- }
1162
- function popScheduler(args) {
1163
- return isScheduler(last(args)) ? args.pop() : undefined;
1164
- }
1165
- function popNumber(args, defaultValue) {
1166
- return typeof last(args) === 'number' ? args.pop() : defaultValue;
1167
- }
1168
-
1169
- /******************************************************************************
1170
- Copyright (c) Microsoft Corporation.
1171
-
1172
- Permission to use, copy, modify, and/or distribute this software for any
1173
- purpose with or without fee is hereby granted.
1174
-
1175
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1176
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1177
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1178
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1179
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1180
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1181
- PERFORMANCE OF THIS SOFTWARE.
1182
- ***************************************************************************** */
1183
-
1184
- function __awaiter(thisArg, _arguments, P, generator) {
1185
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1186
- return new (P || (P = Promise))(function (resolve, reject) {
1187
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1188
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1189
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1190
- step((generator = generator.apply(thisArg, _arguments || [])).next());
1191
- });
1192
- }
1193
-
1194
- function __values(o) {
1195
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1196
- if (m) return m.call(o);
1197
- if (o && typeof o.length === "number") return {
1198
- next: function () {
1199
- if (o && i >= o.length) o = void 0;
1200
- return { value: o && o[i++], done: !o };
1201
- }
1202
- };
1203
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1204
- }
1205
-
1206
- function __await(v) {
1207
- return this instanceof __await ? (this.v = v, this) : new __await(v);
1208
- }
1209
-
1210
- function __asyncGenerator(thisArg, _arguments, generator) {
1211
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1212
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
1213
- return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
1214
- function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
1215
- function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
1216
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
1217
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
1218
- function fulfill(value) { resume("next", value); }
1219
- function reject(value) { resume("throw", value); }
1220
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
1221
- }
1222
-
1223
- function __asyncValues(o) {
1224
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1225
- var m = o[Symbol.asyncIterator], i;
1226
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
1227
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
1228
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
1229
- }
1230
-
1231
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1232
- var e = new Error(message);
1233
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1234
- };
1235
-
1236
- const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');
1237
-
1238
- function isPromise(value) {
1239
- return isFunction(value === null || value === void 0 ? void 0 : value.then);
1240
- }
1241
-
1242
- function isInteropObservable(input) {
1243
- return isFunction(input[observable]);
1244
- }
1245
-
1246
- function isAsyncIterable(obj) {
1247
- return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
1248
- }
1249
-
1250
- function createInvalidObservableTypeError(input) {
1251
- return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);
1252
- }
1253
-
1254
- function getSymbolIterator() {
1255
- if (typeof Symbol !== 'function' || !Symbol.iterator) {
1256
- return '@@iterator';
1257
- }
1258
- return Symbol.iterator;
1259
- }
1260
- const iterator = getSymbolIterator();
1261
-
1262
- function isIterable(input) {
1263
- return isFunction(input === null || input === void 0 ? void 0 : input[iterator]);
1264
- }
1265
-
1266
- function readableStreamLikeToAsyncGenerator(readableStream) {
1267
- return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {
1268
- const reader = readableStream.getReader();
1269
- try {
1270
- while (true) {
1271
- const { value, done } = yield __await(reader.read());
1272
- if (done) {
1273
- return yield __await(void 0);
1274
- }
1275
- yield yield __await(value);
1276
- }
1277
- }
1278
- finally {
1279
- reader.releaseLock();
1280
- }
1281
- });
1282
- }
1283
- function isReadableStreamLike(obj) {
1284
- return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
1285
- }
1286
-
1287
- function innerFrom(input) {
1288
- if (input instanceof Observable) {
1289
- return input;
1290
- }
1291
- if (input != null) {
1292
- if (isInteropObservable(input)) {
1293
- return fromInteropObservable(input);
1294
- }
1295
- if (isArrayLike(input)) {
1296
- return fromArrayLike(input);
1297
- }
1298
- if (isPromise(input)) {
1299
- return fromPromise(input);
1300
- }
1301
- if (isAsyncIterable(input)) {
1302
- return fromAsyncIterable(input);
1303
- }
1304
- if (isIterable(input)) {
1305
- return fromIterable(input);
1306
- }
1307
- if (isReadableStreamLike(input)) {
1308
- return fromReadableStreamLike(input);
1309
- }
1310
- }
1311
- throw createInvalidObservableTypeError(input);
1312
- }
1313
- function fromInteropObservable(obj) {
1314
- return new Observable((subscriber) => {
1315
- const obs = obj[observable]();
1316
- if (isFunction(obs.subscribe)) {
1317
- return obs.subscribe(subscriber);
1318
- }
1319
- throw new TypeError('Provided object does not correctly implement Symbol.observable');
1320
- });
1321
- }
1322
- function fromArrayLike(array) {
1323
- return new Observable((subscriber) => {
1324
- for (let i = 0; i < array.length && !subscriber.closed; i++) {
1325
- subscriber.next(array[i]);
1326
- }
1327
- subscriber.complete();
1328
- });
1329
- }
1330
- function fromPromise(promise) {
1331
- return new Observable((subscriber) => {
1332
- promise
1333
- .then((value) => {
1334
- if (!subscriber.closed) {
1335
- subscriber.next(value);
1336
- subscriber.complete();
1337
- }
1338
- }, (err) => subscriber.error(err))
1339
- .then(null, reportUnhandledError);
1340
- });
1341
- }
1342
- function fromIterable(iterable) {
1343
- return new Observable((subscriber) => {
1344
- for (const value of iterable) {
1345
- subscriber.next(value);
1346
- if (subscriber.closed) {
1347
- return;
1348
- }
1349
- }
1350
- subscriber.complete();
1351
- });
1352
- }
1353
- function fromAsyncIterable(asyncIterable) {
1354
- return new Observable((subscriber) => {
1355
- process(asyncIterable, subscriber).catch((err) => subscriber.error(err));
1356
- });
1357
- }
1358
- function fromReadableStreamLike(readableStream) {
1359
- return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
1360
- }
1361
- function process(asyncIterable, subscriber) {
1362
- var asyncIterable_1, asyncIterable_1_1;
1363
- var e_1, _a;
1364
- return __awaiter(this, void 0, void 0, function* () {
1365
- try {
1366
- for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {
1367
- const value = asyncIterable_1_1.value;
1368
- subscriber.next(value);
1369
- if (subscriber.closed) {
1370
- return;
1371
- }
1372
- }
1373
- }
1374
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1375
- finally {
1376
- try {
1377
- if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);
1378
- }
1379
- finally { if (e_1) throw e_1.error; }
1380
- }
1381
- subscriber.complete();
1382
- });
1383
- }
1384
-
1385
- function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {
1386
- const scheduleSubscription = scheduler.schedule(function () {
1387
- work();
1388
- if (repeat) {
1389
- parentSubscription.add(this.schedule(null, delay));
1390
- }
1391
- else {
1392
- this.unsubscribe();
1393
- }
1394
- }, delay);
1395
- parentSubscription.add(scheduleSubscription);
1396
- if (!repeat) {
1397
- return scheduleSubscription;
1398
- }
1399
- }
1400
-
1401
- function observeOn(scheduler, delay = 0) {
1402
- return operate((source, subscriber) => {
1403
- source.subscribe(createOperatorSubscriber(subscriber, (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));
1404
- });
1405
- }
1406
-
1407
- function subscribeOn(scheduler, delay = 0) {
1408
- return operate((source, subscriber) => {
1409
- subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));
1410
- });
1411
- }
1412
-
1413
- function scheduleObservable(input, scheduler) {
1414
- return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
1415
- }
1416
-
1417
- function schedulePromise(input, scheduler) {
1418
- return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
1419
- }
1420
-
1421
- function scheduleArray(input, scheduler) {
1422
- return new Observable((subscriber) => {
1423
- let i = 0;
1424
- return scheduler.schedule(function () {
1425
- if (i === input.length) {
1426
- subscriber.complete();
1427
- }
1428
- else {
1429
- subscriber.next(input[i++]);
1430
- if (!subscriber.closed) {
1431
- this.schedule();
1432
- }
1433
- }
1434
- });
1435
- });
1436
- }
1437
-
1438
- function scheduleIterable(input, scheduler) {
1439
- return new Observable((subscriber) => {
1440
- let iterator$1;
1441
- executeSchedule(subscriber, scheduler, () => {
1442
- iterator$1 = input[iterator]();
1443
- executeSchedule(subscriber, scheduler, () => {
1444
- let value;
1445
- let done;
1446
- try {
1447
- ({ value, done } = iterator$1.next());
1448
- }
1449
- catch (err) {
1450
- subscriber.error(err);
1451
- return;
1452
- }
1453
- if (done) {
1454
- subscriber.complete();
1455
- }
1456
- else {
1457
- subscriber.next(value);
1458
- }
1459
- }, 0, true);
1460
- });
1461
- return () => isFunction(iterator$1 === null || iterator$1 === void 0 ? void 0 : iterator$1.return) && iterator$1.return();
1462
- });
1463
- }
1464
-
1465
- function scheduleAsyncIterable(input, scheduler) {
1466
- if (!input) {
1467
- throw new Error('Iterable cannot be null');
1468
- }
1469
- return new Observable((subscriber) => {
1470
- executeSchedule(subscriber, scheduler, () => {
1471
- const iterator = input[Symbol.asyncIterator]();
1472
- executeSchedule(subscriber, scheduler, () => {
1473
- iterator.next().then((result) => {
1474
- if (result.done) {
1475
- subscriber.complete();
1476
- }
1477
- else {
1478
- subscriber.next(result.value);
1479
- }
1480
- });
1481
- }, 0, true);
1482
- });
1483
- });
1484
- }
1485
-
1486
- function scheduleReadableStreamLike(input, scheduler) {
1487
- return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);
1488
- }
1489
-
1490
- function scheduled(input, scheduler) {
1491
- if (input != null) {
1492
- if (isInteropObservable(input)) {
1493
- return scheduleObservable(input, scheduler);
1494
- }
1495
- if (isArrayLike(input)) {
1496
- return scheduleArray(input, scheduler);
1497
- }
1498
- if (isPromise(input)) {
1499
- return schedulePromise(input, scheduler);
1500
- }
1501
- if (isAsyncIterable(input)) {
1502
- return scheduleAsyncIterable(input, scheduler);
1503
- }
1504
- if (isIterable(input)) {
1505
- return scheduleIterable(input, scheduler);
1506
- }
1507
- if (isReadableStreamLike(input)) {
1508
- return scheduleReadableStreamLike(input, scheduler);
1509
- }
1510
- }
1511
- throw createInvalidObservableTypeError(input);
1512
- }
1513
-
1514
- function from(input, scheduler) {
1515
- return scheduler ? scheduled(input, scheduler) : innerFrom(input);
1516
- }
1517
-
1518
- function of(...args) {
1519
- const scheduler = popScheduler(args);
1520
- return from(args, scheduler);
1521
- }
1522
-
1523
- exports.CatI18nRegistry = CatI18nRegistry;
1524
- exports.CatIconRegistry = CatIconRegistry;
1525
- exports.EMPTY_SUBSCRIPTION = EMPTY_SUBSCRIPTION;
1526
- exports.Observable = Observable;
1527
- exports.Subscription = Subscription;
1528
- exports.arrRemove = arrRemove;
1529
- exports.catI18nRegistry = catI18nRegistry;
1530
- exports.catIconRegistry = catIconRegistry;
1531
- exports.commonjsGlobal = commonjsGlobal;
1532
- exports.createErrorClass = createErrorClass;
1533
- exports.createOperatorSubscriber = createOperatorSubscriber;
1534
- exports.errorContext = errorContext;
1535
- exports.executeSchedule = executeSchedule;
1536
- exports.from = from;
1537
- exports.identity = identity;
1538
- exports.innerFrom = innerFrom;
1539
- exports.isArrayLike = isArrayLike;
1540
- exports.isFunction = isFunction;
1541
- exports.isScheduler = isScheduler;
1542
- exports.log = log;
1543
- exports.noop = noop;
1544
- exports.of = of;
1545
- exports.operate = operate;
1546
- exports.popNumber = popNumber;
1547
- exports.popScheduler = popScheduler;
1548
-
1549
- //# sourceMappingURL=of-958251e4.js.map