@luzmo/analytics-components-kit 1.0.1-alpha.96 → 1.0.1-alpha.97

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 (663) hide show
  1. package/angular/README.md +1 -1
  2. package/angular/components/viz-item-menu.component.ts +25 -0
  3. package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
  4. package/angular/esm/components/viz-item-menu.component.js +49 -0
  5. package/angular/esm/index.d.ts +3 -3
  6. package/angular/esm/index.js +3 -3
  7. package/angular/esm/types.d.ts +2 -2
  8. package/angular/index.ts +3 -3
  9. package/angular/types.ts +2 -2
  10. package/components/ai-chat-message-assistant/ai-chat-message-assistant.d.ts +29 -0
  11. package/components/ai-chat-message-assistant/index.cjs +52 -0
  12. package/components/ai-chat-message-assistant/index.d.ts +7 -0
  13. package/components/ai-chat-message-assistant/index.js +0 -1
  14. package/components/ai-chat-message-user/ai-chat-message-user.d.ts +13 -0
  15. package/components/ai-chat-message-user/index.cjs +19 -0
  16. package/components/ai-chat-message-user/index.d.ts +7 -0
  17. package/components/ai-chat-messages-container/ai-chat-messages-container.d.ts +11 -0
  18. package/components/ai-chat-messages-container/index.cjs +20 -1
  19. package/components/ai-chat-messages-container/index.d.ts +7 -0
  20. package/components/ai-chat-messages-container/index.js +2 -2
  21. package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +83 -0
  22. package/components/ai-interaction-textarea/index.cjs +20 -1
  23. package/components/ai-interaction-textarea/index.d.ts +7 -0
  24. package/components/ai-interaction-textarea/index.js +1 -2
  25. package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
  26. package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
  27. package/components/area-chart-options.de-D_LVLa1H.cjs +20 -0
  28. package/components/area-chart-options.en-IauEvPHP.cjs +20 -0
  29. package/components/area-chart-options.es-CmPycXn2.cjs +20 -0
  30. package/components/area-chart-options.fr-BMnkGWlJ.cjs +20 -0
  31. package/components/area-chart-options.nl-C7-N_idS.cjs +20 -0
  32. package/components/area-chart-slots.config-Dx_ysVZK.cjs +20 -0
  33. package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
  34. package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
  35. package/components/bar-chart-options.de-Dr5zKz8Q.cjs +20 -0
  36. package/components/bar-chart-options.en-DdQ2PYrw.cjs +20 -0
  37. package/components/bar-chart-options.es-DgYVxn9U.cjs +20 -0
  38. package/components/bar-chart-options.fr-rteFm93C.cjs +20 -0
  39. package/components/bar-chart-options.nl--gwlkpc0.cjs +20 -0
  40. package/components/bar-chart-slots.config-c_9ABPOI.cjs +20 -0
  41. package/components/bliss-DQej6Odb.cjs +20 -0
  42. package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
  43. package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
  44. package/components/box-plot-options.de-QbWt-xja.cjs +20 -0
  45. package/components/box-plot-options.en-CZhtAYXJ.cjs +20 -0
  46. package/components/box-plot-options.es-lyXLMKKo.cjs +20 -0
  47. package/components/box-plot-options.fr-BXh76t2K.cjs +20 -0
  48. package/components/box-plot-options.nl-DDAzT-zP.cjs +20 -0
  49. package/components/box-plot-slots.config-K-1CiWO-.cjs +20 -0
  50. package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
  51. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
  52. package/components/bubble-chart-options.de-D2Z88fwi.cjs +20 -0
  53. package/components/bubble-chart-options.en-CP9PhuPw.cjs +20 -0
  54. package/components/bubble-chart-options.es-B6mTDtxs.cjs +20 -0
  55. package/components/bubble-chart-options.fr-BMPe3Z5G.cjs +20 -0
  56. package/components/bubble-chart-options.nl-5thQrFoi.cjs +20 -0
  57. package/components/bubble-chart-slots.config-BwSwgleO.cjs +20 -0
  58. package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
  59. package/components/bullet-chart-options.config-tWb6Fio-.cjs +20 -0
  60. package/components/bullet-chart-options.de-D0XaMKPn.cjs +20 -0
  61. package/components/bullet-chart-options.en-BPjbk6Lk.cjs +20 -0
  62. package/components/bullet-chart-options.es-DxC9GWBS.cjs +20 -0
  63. package/components/bullet-chart-options.fr-Cf_rodY7.cjs +20 -0
  64. package/components/bullet-chart-options.nl-BdIjKMZf.cjs +20 -0
  65. package/components/bullet-chart-slots.config-DQarxMR7.cjs +20 -0
  66. package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
  67. package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
  68. package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
  69. package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
  70. package/components/choropleth-map-options.de-C4ko9lE4.cjs +20 -0
  71. package/components/choropleth-map-options.en-DVWBmXFe.cjs +20 -0
  72. package/components/choropleth-map-options.es-v5dYm1W3.cjs +20 -0
  73. package/components/choropleth-map-options.fr-Bpk_J4Gw.cjs +20 -0
  74. package/components/choropleth-map-options.nl-CyDZDpyE.cjs +20 -0
  75. package/components/choropleth-map-slots.config-CFERs0ca.cjs +20 -0
  76. package/components/circle-pack-chart-options.config-DWql72cN.cjs +20 -0
  77. package/components/circle-pack-chart-options.de-BKCxSgFo.cjs +20 -0
  78. package/components/circle-pack-chart-options.en-8QoEZniy.cjs +20 -0
  79. package/components/circle-pack-chart-options.es-BAdMklie.cjs +20 -0
  80. package/components/circle-pack-chart-options.fr-Dx2iO7nE.cjs +20 -0
  81. package/components/circle-pack-chart-options.nl-BEbtjCy_.cjs +20 -0
  82. package/components/circle-pack-chart-slots.config-B18aqdH1.cjs +20 -0
  83. package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
  84. package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
  85. package/components/circular-gauge-options.de-CzEREduR.cjs +20 -0
  86. package/components/circular-gauge-options.en--hMYjiKb.cjs +20 -0
  87. package/components/circular-gauge-options.es-bS5N1QyR.cjs +20 -0
  88. package/components/circular-gauge-options.fr-VgkkhIDb.cjs +20 -0
  89. package/components/circular-gauge-options.nl-B-E_GXJl.cjs +20 -0
  90. package/components/circular-gauge-slots.config-Cd-nkNPm.cjs +20 -0
  91. package/components/classic-CW66MgMj.cjs +20 -0
  92. package/components/classic-dark-DCtf8kpl.cjs +20 -0
  93. package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
  94. package/components/color-Czp4Im5q.cjs +20 -0
  95. package/components/color-palettes-DhNHcib8.cjs +20 -0
  96. package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
  97. package/components/color-range-utils-DYYR-iwx.cjs +20 -0
  98. package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
  99. package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
  100. package/components/column-chart-options.de-BU__cJy3.cjs +20 -0
  101. package/components/column-chart-options.en-DdQ2PYrw.cjs +20 -0
  102. package/components/column-chart-options.es-CkaTU6qn.cjs +20 -0
  103. package/components/column-chart-options.fr-rteFm93C.cjs +20 -0
  104. package/components/column-chart-options.nl-Bhe6rcUo.cjs +20 -0
  105. package/components/column-chart-slots.config-C0nGjkmv.cjs +20 -0
  106. package/components/combination-chart-options.config-CyYEp-gX.cjs +20 -0
  107. package/components/combination-chart-options.de-CuVQ-JHu.cjs +20 -0
  108. package/components/combination-chart-options.en-BPcGTsP4.cjs +20 -0
  109. package/components/combination-chart-options.es-Dy7jzzFy.cjs +20 -0
  110. package/components/combination-chart-options.fr-CLUyqNH7.cjs +20 -0
  111. package/components/combination-chart-options.nl-BF6joCMV.cjs +20 -0
  112. package/components/combination-chart-slots.config-CY07Q5Hw.cjs +20 -0
  113. package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
  114. package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
  115. package/components/conditional-number-options.de-R9Mtj45x.cjs +20 -0
  116. package/components/conditional-number-options.en-C-nOJ85m.cjs +20 -0
  117. package/components/conditional-number-options.es-C41csR3J.cjs +20 -0
  118. package/components/conditional-number-options.fr-DgaXesnu.cjs +20 -0
  119. package/components/conditional-number-options.nl-CJ5teRtT.cjs +20 -0
  120. package/components/conditional-number-slots.config-CD5ZwXuY.cjs +20 -0
  121. package/components/cs-I9E81keK.cjs +20 -0
  122. package/components/da-QkdvupDg.cjs +20 -0
  123. package/components/dataset-icon/dataset-icon.d.ts +45 -0
  124. package/components/dataset-icon/index.cjs +20 -1
  125. package/components/dataset-icon/index.d.ts +7 -0
  126. package/components/dataset-icon/index.js +1 -2
  127. package/components/dataset-selector-list/dataset-selector-list.d.ts +94 -0
  128. package/components/dataset-selector-list/index.cjs +20 -1
  129. package/components/dataset-selector-list/index.d.ts +7 -0
  130. package/components/dataset-selector-list/index.js +32 -35
  131. package/components/dataset-selector-row/dataset-selector-row.d.ts +85 -0
  132. package/components/dataset-selector-row/index.cjs +28 -9
  133. package/components/dataset-selector-row/index.d.ts +7 -0
  134. package/components/dataset-selector-row/index.js +50 -52
  135. package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
  136. package/components/date-comparison-filter-options.config-QaoWaFUn.cjs +20 -0
  137. package/components/date-comparison-filter-options.de-CJBePtFH.cjs +20 -0
  138. package/components/date-comparison-filter-options.en-Of-X7-Ft.cjs +20 -0
  139. package/components/date-comparison-filter-options.es-CU3KrdQh.cjs +20 -0
  140. package/components/date-comparison-filter-options.fr-U0cC2xXg.cjs +20 -0
  141. package/components/date-comparison-filter-options.nl-DJGHjXwg.cjs +20 -0
  142. package/components/date-comparison-filter-slots.config-CrA5ijD3.cjs +20 -0
  143. package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
  144. package/components/date-filter-options.config-n-zhWaYa.cjs +20 -0
  145. package/components/date-filter-options.de-Cav0BXbX.cjs +20 -0
  146. package/components/date-filter-options.en-B7MjV7xe.cjs +20 -0
  147. package/components/date-filter-options.es-C__wCKac.cjs +20 -0
  148. package/components/date-filter-options.fr-CFqwPRzc.cjs +20 -0
  149. package/components/date-filter-options.nl-CHOlmw93.cjs +20 -0
  150. package/components/date-filter-slots.config-CrA5ijD3.cjs +20 -0
  151. package/components/de-COKGBX9L.cjs +20 -0
  152. package/components/de-Dn5mUzha.cjs +20 -0
  153. package/components/decompose-numeric-format-B3rVVHpO.cjs +20 -0
  154. package/components/default-DcRD5JRU.cjs +20 -0
  155. package/components/default-dark-1299UcUs.cjs +20 -0
  156. package/components/display-settings/display-settings.d.ts +90 -0
  157. package/components/display-settings/index.cjs +20 -0
  158. package/components/display-settings/index.d.ts +7 -0
  159. package/components/display-settings/index.js +1 -1
  160. package/components/display-settings-binning/display-settings-binning.d.ts +33 -0
  161. package/components/display-settings-binning/index.cjs +24 -5
  162. package/components/display-settings-binning/index.d.ts +7 -0
  163. package/components/display-settings-binning/index.js +29 -30
  164. package/components/display-settings-datetime/display-settings-datetime.d.ts +86 -0
  165. package/components/display-settings-datetime/index.cjs +215 -0
  166. package/components/display-settings-datetime/index.d.ts +7 -0
  167. package/components/display-settings-datetime/index.js +112 -120
  168. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +31 -0
  169. package/components/display-settings-grand-totals/index.cjs +44 -0
  170. package/components/display-settings-grand-totals/index.d.ts +7 -0
  171. package/components/display-settings-grand-totals/index.js +23 -24
  172. package/components/display-settings-numeric/display-settings-numeric.d.ts +84 -0
  173. package/components/display-settings-numeric/helpers/constants.d.ts +19 -0
  174. package/components/display-settings-numeric/index.cjs +184 -0
  175. package/components/display-settings-numeric/index.d.ts +7 -0
  176. package/components/display-settings-numeric/index.js +190 -206
  177. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +68 -0
  178. package/components/display-settings-period-over-period/helpers/constants.d.ts +44 -0
  179. package/components/display-settings-period-over-period/index.cjs +224 -0
  180. package/components/display-settings-period-over-period/index.d.ts +7 -0
  181. package/components/display-settings-period-over-period/index.js +91 -97
  182. package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
  183. package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
  184. package/components/donut-chart-options.de-LQ01wQGN.cjs +20 -0
  185. package/components/donut-chart-options.en-DHCYs2el.cjs +20 -0
  186. package/components/donut-chart-options.es-BLDU1xpY.cjs +20 -0
  187. package/components/donut-chart-options.fr-C33dLw52.cjs +20 -0
  188. package/components/donut-chart-options.nl-h5-SSy_L.cjs +20 -0
  189. package/components/donut-chart-slots.config-DBowIZNO.cjs +20 -0
  190. package/components/draggable-data-item/draggable-data-item.d.ts +26 -0
  191. package/components/draggable-data-item/index.cjs +48 -0
  192. package/components/draggable-data-item/index.d.ts +8 -0
  193. package/components/draggable-data-item/index.js +45 -46
  194. package/components/draggable-data-item/types.d.ts +21 -0
  195. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +34 -0
  196. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -0
  197. package/components/draggable-data-item-level/index.cjs +50 -0
  198. package/components/draggable-data-item-level/index.d.ts +7 -0
  199. package/components/draggable-data-item-level/index.js +70 -73
  200. package/components/draggable-data-item-level/types.d.ts +12 -0
  201. package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
  202. package/components/dropdown-filter-options.config-DJvfCTk7.cjs +20 -0
  203. package/components/dropdown-filter-options.de-WLFUtnO_.cjs +20 -0
  204. package/components/dropdown-filter-options.en-txvgrhI8.cjs +20 -0
  205. package/components/dropdown-filter-options.es-C-U0fQJO.cjs +20 -0
  206. package/components/dropdown-filter-options.fr-Bl7uZNdT.cjs +20 -0
  207. package/components/dropdown-filter-options.nl-DIvw6DFh.cjs +20 -0
  208. package/components/dropdown-filter-slots.config-0wn6pMvi.cjs +20 -0
  209. package/components/droppable-slot/droppable-slot.d.ts +86 -0
  210. package/components/droppable-slot/index.cjs +84 -0
  211. package/components/droppable-slot/index.d.ts +8 -0
  212. package/components/droppable-slot/index.js +208 -223
  213. package/components/droppable-slot/item-slots-configs/index.d.ts +45 -0
  214. package/components/droppable-slot/item-slots-configs/slot-labels.const.d.ts +8 -0
  215. package/components/droppable-slot/types.d.ts +9 -0
  216. package/components/edit-item/edit-item.d.ts +55 -0
  217. package/components/edit-item/index.cjs +53 -0
  218. package/components/edit-item/index.d.ts +7 -0
  219. package/components/edit-item/index.js +116 -119
  220. package/components/edit-option/edit-option.d.ts +24 -0
  221. package/components/edit-option/helpers/control-markup.d.ts +14 -0
  222. package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
  223. package/components/edit-option/helpers/control-templates/color-palette-picker-template.d.ts +2 -0
  224. package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
  225. package/components/edit-option/helpers/control-templates/color-range-template.d.ts +2 -0
  226. package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
  227. package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
  228. package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
  229. package/components/edit-option/helpers/control-templates/position-picker-template.d.ts +2 -0
  230. package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
  231. package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
  232. package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
  233. package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
  234. package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
  235. package/components/edit-option/helpers/generate-callback.d.ts +1 -0
  236. package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
  237. package/components/edit-option/helpers/get-default-value.d.ts +1 -0
  238. package/components/edit-option/helpers/get-enum-values.d.ts +1 -0
  239. package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
  240. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
  241. package/components/edit-option/index.cjs +20 -0
  242. package/components/edit-option/index.d.ts +7 -0
  243. package/components/edit-option/index.js +1 -1
  244. package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
  245. package/components/edit-option-action-button-group/index.cjs +52 -0
  246. package/components/edit-option-action-button-group/index.d.ts +7 -0
  247. package/components/edit-option-action-button-group/index.js +52 -53
  248. package/components/edit-option-base/edit-option-base.d.ts +23 -0
  249. package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
  250. package/components/edit-option-base-tFr8Qg2B.cjs +53 -0
  251. package/components/edit-option-color-palette-picker/edit-option-color-palette-picker.d.ts +42 -0
  252. package/components/edit-option-color-palette-picker/index.cjs +37 -0
  253. package/components/edit-option-color-palette-picker/index.d.ts +7 -0
  254. package/components/edit-option-color-palette-picker/index.js +1 -1
  255. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +28 -0
  256. package/components/edit-option-color-picker/index.cjs +20 -1
  257. package/components/edit-option-color-picker/index.d.ts +7 -0
  258. package/components/edit-option-color-picker/index.js +1 -1
  259. package/components/edit-option-color-range/edit-option-color-range.d.ts +99 -0
  260. package/components/edit-option-color-range/index.cjs +85 -0
  261. package/components/edit-option-color-range/index.d.ts +7 -0
  262. package/components/edit-option-color-range/index.js +106 -117
  263. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +17 -0
  264. package/components/edit-option-multi-language-field/index.cjs +22 -3
  265. package/components/edit-option-multi-language-field/index.d.ts +7 -0
  266. package/components/edit-option-multi-language-field/index.js +26 -27
  267. package/components/edit-option-number-field/edit-option-number-field.d.ts +21 -0
  268. package/components/edit-option-number-field/index.cjs +20 -1
  269. package/components/edit-option-number-field/index.d.ts +7 -0
  270. package/components/edit-option-number-field/index.js +1 -1
  271. package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
  272. package/components/edit-option-picker/index.cjs +24 -5
  273. package/components/edit-option-picker/index.d.ts +7 -0
  274. package/components/edit-option-picker/index.js +7 -7
  275. package/components/edit-option-position-picker/edit-option-position-picker.d.ts +13 -0
  276. package/components/edit-option-position-picker/index.cjs +25 -0
  277. package/components/edit-option-position-picker/index.d.ts +7 -0
  278. package/components/edit-option-position-picker/index.js +21 -25
  279. package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +30 -0
  280. package/components/edit-option-positions-number-field/index.cjs +42 -0
  281. package/components/edit-option-positions-number-field/index.d.ts +7 -0
  282. package/components/edit-option-positions-number-field/index.js +76 -81
  283. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
  284. package/components/edit-option-radio-button-group/index.cjs +25 -6
  285. package/components/edit-option-radio-button-group/index.d.ts +7 -0
  286. package/components/edit-option-radio-button-group/index.js +21 -22
  287. package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
  288. package/components/edit-option-slider/index.cjs +20 -1
  289. package/components/edit-option-slider/index.d.ts +7 -0
  290. package/components/edit-option-slider/index.js +1 -1
  291. package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
  292. package/components/edit-option-switch/index.cjs +30 -0
  293. package/components/edit-option-switch/index.d.ts +7 -0
  294. package/components/edit-option-switch/index.js +1 -1
  295. package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
  296. package/components/edit-option-text-field/index.cjs +21 -2
  297. package/components/edit-option-text-field/index.d.ts +7 -0
  298. package/components/edit-option-text-field/index.js +22 -23
  299. package/components/en-D3ihEGXg.js +1483 -0
  300. package/components/en-DZcn_iz_.cjs +20 -0
  301. package/components/en-GB-TqvgIw9B.cjs +20 -0
  302. package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
  303. package/components/es-CaKfa7fn.cjs +20 -0
  304. package/components/es-CwyPlN5d.cjs +20 -0
  305. package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
  306. package/components/evolution-number-options.config-Bc9eKYnn.cjs +20 -0
  307. package/components/evolution-number-options.de-BVv1Uutc.cjs +20 -0
  308. package/components/evolution-number-options.en-CiZmE5r7.cjs +20 -0
  309. package/components/evolution-number-options.es-k2eY1Y3G.cjs +20 -0
  310. package/components/evolution-number-options.fr-B47Fwd-D.cjs +20 -0
  311. package/components/evolution-number-options.nl-CTppS5EY.cjs +20 -0
  312. package/components/evolution-number-slots.config-CNNVp6vR.cjs +20 -0
  313. package/components/extrapolate-color-C0n1UDs-.cjs +20 -0
  314. package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
  315. package/components/fi-rijeZE5V.cjs +20 -0
  316. package/components/filter-data-item-picker/filter-data-item-picker.d.ts +76 -0
  317. package/components/filter-data-item-picker/index.cjs +47 -0
  318. package/components/filter-data-item-picker/index.d.ts +7 -0
  319. package/components/filter-data-item-picker/index.js +85 -86
  320. package/components/filter-expression-picker/filter-expression-picker.d.ts +74 -0
  321. package/components/filter-expression-picker/index.cjs +20 -0
  322. package/components/filter-expression-picker/index.d.ts +7 -0
  323. package/components/filter-expression-picker/index.js +1 -1
  324. package/components/filter-group/filter-group.d.ts +26 -0
  325. package/components/filter-group/index.d.ts +7 -0
  326. package/components/filter-item/filter-item.d.ts +76 -0
  327. package/components/filter-item/index.cjs +52 -0
  328. package/components/filter-item/index.d.ts +7 -0
  329. package/components/filter-item/index.js +109 -119
  330. package/components/filter-parameter-picker/filter-parameter-picker.d.ts +25 -0
  331. package/components/filter-parameter-picker/index.d.ts +7 -0
  332. package/components/filter-value-picker/filter-value-picker.d.ts +65 -0
  333. package/components/filter-value-picker/index.cjs +51 -0
  334. package/components/filter-value-picker/index.d.ts +7 -0
  335. package/components/filter-value-picker/index.js +34 -36
  336. package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +43 -0
  337. package/components/filter-value-picker-datetime/index.cjs +39 -0
  338. package/components/filter-value-picker-datetime/index.d.ts +7 -0
  339. package/components/filter-value-picker-datetime/index.js +56 -71
  340. package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +82 -0
  341. package/components/filter-value-picker-hierarchy/index.cjs +46 -0
  342. package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
  343. package/components/filter-value-picker-hierarchy/index.js +113 -124
  344. package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +83 -0
  345. package/components/filter-value-picker-numeric/index.cjs +46 -0
  346. package/components/filter-value-picker-numeric/index.d.ts +7 -0
  347. package/components/filter-value-picker-numeric/index.js +101 -110
  348. package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
  349. package/components/focusable-QLh-LlNt.cjs +20 -0
  350. package/components/fr-BcgE-6S_.cjs +20 -0
  351. package/components/fr-DiZbjx_a.cjs +20 -0
  352. package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
  353. package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
  354. package/components/funnel-chart-options.de-DRAGes5d.cjs +20 -0
  355. package/components/funnel-chart-options.en-b6BBKfZh.cjs +20 -0
  356. package/components/funnel-chart-options.es-DfDw5S5g.cjs +20 -0
  357. package/components/funnel-chart-options.fr-DWkPkC47.cjs +20 -0
  358. package/components/funnel-chart-options.nl-BdAL0ZJP.cjs +20 -0
  359. package/components/funnel-chart-slots.config-GKBCY9xN.cjs +20 -0
  360. package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
  361. package/components/get-css-variable-Pzks_rOx.cjs +24 -0
  362. package/components/grid/actions.d.ts +3 -0
  363. package/components/grid/grid-item-actions-menu.d.ts +35 -0
  364. package/components/grid/grid.d.ts +150 -0
  365. package/components/grid/index.cjs +313 -0
  366. package/components/grid/index.d.ts +10 -0
  367. package/components/grid/index.js +2610 -1878
  368. package/components/he-O6Ih8Bqh.cjs +20 -0
  369. package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
  370. package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
  371. package/components/heat-map-options.de-CCzVMy-R.cjs +20 -0
  372. package/components/heat-map-options.en-Bg7i7QKn.cjs +20 -0
  373. package/components/heat-map-options.es-BYyHRdIH.cjs +20 -0
  374. package/components/heat-map-options.fr-CLB-XMRA.cjs +20 -0
  375. package/components/heat-map-options.nl-BHrmi96k.cjs +20 -0
  376. package/components/heat-map-slots.config-D7cSAVdX.cjs +20 -0
  377. package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
  378. package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
  379. package/components/heat-table-options.de-cnjPxQep.cjs +20 -0
  380. package/components/heat-table-options.en-Bjqpkm75.cjs +20 -0
  381. package/components/heat-table-options.es-IaNf_Ge4.cjs +20 -0
  382. package/components/heat-table-options.fr-BdZnJYlb.cjs +20 -0
  383. package/components/heat-table-options.nl-DGS7vzoT.cjs +20 -0
  384. package/components/heat-table-slots.config-GGX3BCh1.cjs +20 -0
  385. package/components/helpers-9I0oLoUB.cjs +20 -0
  386. package/components/helpers-bR8Ibjqh.js +79 -0
  387. package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
  388. package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
  389. package/components/hexbin-map-options.de-DUp41p9I.cjs +20 -0
  390. package/components/hexbin-map-options.en-B10UanAQ.cjs +20 -0
  391. package/components/hexbin-map-options.es-97IUVMSg.cjs +20 -0
  392. package/components/hexbin-map-options.fr-Bh9Swyi3.cjs +20 -0
  393. package/components/hexbin-map-options.nl-BzyMf0JQ.cjs +20 -0
  394. package/components/hexbin-map-slots.config-D7cSAVdX.cjs +20 -0
  395. package/components/hu-BnZ8y3xQ.cjs +20 -0
  396. package/components/image-options.config-Dqhc2c3b.cjs +20 -0
  397. package/components/image-options.de-CBkRiIbw.cjs +20 -0
  398. package/components/image-options.en-DflcU_2H.cjs +20 -0
  399. package/components/image-options.es-CRbNv384.cjs +20 -0
  400. package/components/image-options.fr-ycH7UoX5.cjs +20 -0
  401. package/components/image-options.nl-DQL45o0j.cjs +20 -0
  402. package/components/image-slots.config-mPXMR1CE.cjs +20 -0
  403. package/components/index-6PmXiNch.cjs +20 -0
  404. package/components/index-BNAmjOkm.cjs +38 -0
  405. package/components/index-BekTY3Em.cjs +121 -0
  406. package/components/index-CFL6gmIu.cjs +20 -0
  407. package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
  408. package/components/index-DNPULp4A.js +1755 -0
  409. package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
  410. package/components/index-DhDgy1sp.cjs +20 -0
  411. package/components/index-DvkzMbLt.cjs +249 -0
  412. package/components/index-Vdyb9z2D.cjs +20 -0
  413. package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
  414. package/components/index.cjs +20 -1
  415. package/components/index.js +13 -13
  416. package/components/it-PshtLMkq.cjs +20 -0
  417. package/components/item-context-configs.cjs +226 -0
  418. package/components/item-list.cjs +19 -0
  419. package/components/item-menu/item-list/item-list.d.ts +37 -0
  420. package/components/item-options-configs.cjs +20 -1
  421. package/components/item-options-configs.js +37 -37
  422. package/components/item-slots-configs.cjs +20 -0
  423. package/components/ja-KIS2HdaG.cjs +20 -0
  424. package/components/ko--l4qmjLV.cjs +20 -0
  425. package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
  426. package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
  427. package/components/line-chart-options.de-zuguhS7L.cjs +20 -0
  428. package/components/line-chart-options.en-C88UT2iR.cjs +20 -0
  429. package/components/line-chart-options.es-CvABRdF7.cjs +20 -0
  430. package/components/line-chart-options.fr-BtfgIPkW.cjs +20 -0
  431. package/components/line-chart-options.nl-mAxtSkJo.cjs +20 -0
  432. package/components/line-chart-slots.config-Dx_ysVZK.cjs +20 -0
  433. package/components/localize-C4zNlrwK.cjs +20 -0
  434. package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
  435. package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
  436. package/components/marker-map-options.config-CvhCylSC.cjs +20 -0
  437. package/components/marker-map-options.de-BsQQMw02.cjs +20 -0
  438. package/components/marker-map-options.en-CS9itUOA.cjs +20 -0
  439. package/components/marker-map-options.es-A5ZV4oul.cjs +20 -0
  440. package/components/marker-map-options.fr-yEc1vbcL.cjs +20 -0
  441. package/components/marker-map-options.nl-YdcS3JJg.cjs +20 -0
  442. package/components/marker-map-slots.config-D7cSAVdX.cjs +20 -0
  443. package/components/mk-DZlj-edb.cjs +20 -0
  444. package/components/nl-BKlDqOXb.cjs +20 -0
  445. package/components/nl-Bot6bJ4g.cjs +20 -0
  446. package/components/no-D_SzxhTu.cjs +20 -0
  447. package/components/ohlc-chart-options.config-BLlRV_bs.cjs +20 -0
  448. package/components/ohlc-chart-options.de-D82a4TlN.cjs +20 -0
  449. package/components/ohlc-chart-options.en-WsfJ9z1E.cjs +20 -0
  450. package/components/ohlc-chart-options.es-BLKIOFho.cjs +20 -0
  451. package/components/ohlc-chart-options.fr-D6YoAH4U.cjs +20 -0
  452. package/components/ohlc-chart-options.nl-lWVHjRUM.cjs +20 -0
  453. package/components/ohlc-chart-slots.config-DMomcHMV.cjs +20 -0
  454. package/components/orion-CfUR1e5D.cjs +20 -0
  455. package/components/parallel-coordinates-plot-options.config-B9eRq_Dj.cjs +20 -0
  456. package/components/parallel-coordinates-plot-options.de-Dm5-9Du6.cjs +20 -0
  457. package/components/parallel-coordinates-plot-options.en-mGJiceE7.cjs +20 -0
  458. package/components/parallel-coordinates-plot-options.es-UhSh9vHw.cjs +20 -0
  459. package/components/parallel-coordinates-plot-options.fr-DNjANPoh.cjs +20 -0
  460. package/components/parallel-coordinates-plot-options.nl-DCXPdyr2.cjs +20 -0
  461. package/components/parallel-coordinates-plot-slots.config--fk40ZDu.cjs +20 -0
  462. package/components/periods.const-3jA-ECRf.cjs +20 -0
  463. package/components/pinky-DptTgIM4.cjs +20 -0
  464. package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
  465. package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
  466. package/components/pivot-table-options.de-CEaD9SHr.cjs +20 -0
  467. package/components/pivot-table-options.en-DC07VN7H.cjs +20 -0
  468. package/components/pivot-table-options.es-Xm6ENByP.cjs +20 -0
  469. package/components/pivot-table-options.fr-ClLROt4b.cjs +20 -0
  470. package/components/pivot-table-options.nl-Dk2Oeu8i.cjs +20 -0
  471. package/components/pivot-table-slots.config-45V_Gdm7.cjs +20 -0
  472. package/components/pl-PIK23rK_.cjs +20 -0
  473. package/components/pt-Dqlu4MS5.cjs +20 -0
  474. package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
  475. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
  476. package/components/pyramid-chart-options.de-DKas0NiC.cjs +20 -0
  477. package/components/pyramid-chart-options.en-L6DFdrRz.cjs +20 -0
  478. package/components/pyramid-chart-options.es-Cu0g6t6A.cjs +20 -0
  479. package/components/pyramid-chart-options.fr-CreHLwD_.cjs +20 -0
  480. package/components/pyramid-chart-options.nl-CRbkXz3i.cjs +20 -0
  481. package/components/pyramid-chart-slots.config-D5F0WX2d.cjs +20 -0
  482. package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
  483. package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
  484. package/components/radar-chart-options.de-BGHs6QoY.cjs +20 -0
  485. package/components/radar-chart-options.en-DXlfL8Qm.cjs +20 -0
  486. package/components/radar-chart-options.es-DBw1arWW.cjs +20 -0
  487. package/components/radar-chart-options.fr-CKBFCZK0.cjs +20 -0
  488. package/components/radar-chart-options.nl-k4gGr6lf.cjs +20 -0
  489. package/components/radar-chart-slots.config-BEigR_Ml.cjs +20 -0
  490. package/components/radiant-Dv7GVveL.cjs +20 -0
  491. package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
  492. package/components/regular-table-options.config-YRuoijIk.cjs +20 -0
  493. package/components/regular-table-options.de-DHgnwaEe.cjs +20 -0
  494. package/components/regular-table-options.en-DPoF7r6r.cjs +20 -0
  495. package/components/regular-table-options.es-8cbzQG40.cjs +20 -0
  496. package/components/regular-table-options.fr-D4dSaBN-.cjs +20 -0
  497. package/components/regular-table-options.nl-DvIvjTvR.cjs +20 -0
  498. package/components/regular-table-slots.config-RLnMgOXn.cjs +20 -0
  499. package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
  500. package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
  501. package/components/route-map-options.de-w5wuIvwf.cjs +20 -0
  502. package/components/route-map-options.en-Co0Fbjkz.cjs +20 -0
  503. package/components/route-map-options.es-Cjasm-ZQ.cjs +20 -0
  504. package/components/route-map-options.fr-C1SCfKLH.cjs +20 -0
  505. package/components/route-map-options.nl-CYmB51pE.cjs +20 -0
  506. package/components/route-map-slots.config-DsVJBR3D.cjs +20 -0
  507. package/components/royale-Ooq8M7Ef.cjs +20 -0
  508. package/components/ru-zyNDTB04.cjs +20 -0
  509. package/components/sankey-diagram-options.config-D7OSvSqm.cjs +20 -0
  510. package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
  511. package/components/sankey-diagram-options.de-BOtJSpbI.cjs +20 -0
  512. package/components/sankey-diagram-options.en-DMx4MkN-.cjs +20 -0
  513. package/components/sankey-diagram-options.es-BdDSG9DB.cjs +20 -0
  514. package/components/sankey-diagram-options.fr-D1MrJM4P.cjs +20 -0
  515. package/components/sankey-diagram-options.nl-DW_wVZ1O.cjs +20 -0
  516. package/components/sankey-diagram-slots.config-CiyYElLX.cjs +20 -0
  517. package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
  518. package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
  519. package/components/scatter-plot-options.de-fSoIvHJy.cjs +20 -0
  520. package/components/scatter-plot-options.en-CGCdpOtQ.cjs +20 -0
  521. package/components/scatter-plot-options.es-CLRJMSqn.cjs +20 -0
  522. package/components/scatter-plot-options.fr-Da2McGuN.cjs +20 -0
  523. package/components/scatter-plot-options.nl-CRWq01rL.cjs +20 -0
  524. package/components/scatter-plot-slots.config-47cB5_RC.cjs +20 -0
  525. package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
  526. package/components/search-filter-options.config-Oqco9BKj.cjs +20 -0
  527. package/components/search-filter-options.de-BK66ORWq.cjs +20 -0
  528. package/components/search-filter-options.en-CDPrPilw.cjs +20 -0
  529. package/components/search-filter-options.es-D7Z_PcC1.cjs +20 -0
  530. package/components/search-filter-options.fr-DhaK1uUa.cjs +20 -0
  531. package/components/search-filter-options.nl-CAA7cBhK.cjs +20 -0
  532. package/components/search-filter-slots.config-DeHkvc2Q.cjs +20 -0
  533. package/components/seasonal-OSKpFyta.cjs +20 -0
  534. package/components/set-locale-BRRalqne.cjs +20 -0
  535. package/components/{set-locale-Dp3N_gXN.js → set-locale-hKTMz37h.js} +1 -8
  536. package/components/sized-mixin-DcvJLFeo.cjs +20 -0
  537. package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
  538. package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
  539. package/components/slicer-filter-options.de-DRazS_m2.cjs +20 -0
  540. package/components/slicer-filter-options.en-CpMgGFQr.cjs +20 -0
  541. package/components/slicer-filter-options.es-CS_RNuGQ.cjs +20 -0
  542. package/components/slicer-filter-options.fr-CfCs-AJo.cjs +20 -0
  543. package/components/slicer-filter-options.nl-C_n1KiTW.cjs +20 -0
  544. package/components/slicer-filter-slots.config-V7hURjKI.cjs +20 -0
  545. package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
  546. package/components/slider-filter-options.config-k45I-t6G.cjs +20 -0
  547. package/components/slider-filter-options.de-BgUkQGYO.cjs +20 -0
  548. package/components/slider-filter-options.en-Dvn-ux4N.cjs +20 -0
  549. package/components/slider-filter-options.es-B9ObSQWh.cjs +20 -0
  550. package/components/slider-filter-options.fr-DI6QMjqa.cjs +20 -0
  551. package/components/slider-filter-options.nl-autc8gPj.cjs +20 -0
  552. package/components/slider-filter-slots.config-B--K9cpP.cjs +20 -0
  553. package/components/slot-contents-picker/index.cjs +146 -0
  554. package/components/slot-contents-picker/index.d.ts +7 -0
  555. package/components/slot-contents-picker/index.js +194 -205
  556. package/components/slot-contents-picker/slot-contents-picker.d.ts +113 -0
  557. package/components/slot-menu/index.cjs +62 -0
  558. package/components/slot-menu/index.d.ts +8 -0
  559. package/components/slot-menu/index.js +171 -184
  560. package/components/slot-menu/slot-menu.d.ts +111 -0
  561. package/components/slot-menu/types.d.ts +25 -0
  562. package/components/slot-menu-list/index.cjs +35 -0
  563. package/components/slot-menu-list/index.d.ts +7 -0
  564. package/components/slot-menu-list/index.js +97 -103
  565. package/components/slot-menu-list/slot-menu-list.d.ts +35 -0
  566. package/components/spacer-options.config-mPXMR1CE.cjs +20 -0
  567. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
  568. package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
  569. package/components/speedometer-chart-options.de-D5SIAUZA.cjs +20 -0
  570. package/components/speedometer-chart-options.en-BUj6JXhT.cjs +20 -0
  571. package/components/speedometer-chart-options.es-DalX0e7D.cjs +20 -0
  572. package/components/speedometer-chart-options.fr-Dqn95u64.cjs +20 -0
  573. package/components/speedometer-chart-options.nl-Bo6cV2j0.cjs +20 -0
  574. package/components/speedometer-chart-slots.config-Cd-nkNPm.cjs +20 -0
  575. package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
  576. package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
  577. package/components/spike-map-options.de-_47BiyJQ.cjs +20 -0
  578. package/components/spike-map-options.en-B9InMjtg.cjs +20 -0
  579. package/components/spike-map-options.es-e-sVsx0P.cjs +20 -0
  580. package/components/spike-map-options.fr-DPpYI3Yd.cjs +20 -0
  581. package/components/spike-map-options.nl-DOJHgdzZ.cjs +20 -0
  582. package/components/spike-map-slots.config-BM5-Dlub.cjs +20 -0
  583. package/components/strip-plot-options.config-CKy1s16H.cjs +20 -0
  584. package/components/strip-plot-options.de-DwOrv0sQ.cjs +20 -0
  585. package/components/strip-plot-options.en-CjD5zNiU.cjs +20 -0
  586. package/components/strip-plot-options.es-D_ZS1l9j.cjs +20 -0
  587. package/components/strip-plot-options.fr-C6gKZaLg.cjs +20 -0
  588. package/components/strip-plot-options.nl-BkQ9nc9g.cjs +20 -0
  589. package/components/strip-plot-slots.config-DDUlLO8K.cjs +20 -0
  590. package/components/sunburst-chart-options.config-Yrxc2i57.cjs +20 -0
  591. package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
  592. package/components/sunburst-chart-options.de-BDu_ZCdb.cjs +20 -0
  593. package/components/sunburst-chart-options.en-D9Rr49yw.cjs +20 -0
  594. package/components/sunburst-chart-options.es-Ba8WDFHg.cjs +20 -0
  595. package/components/sunburst-chart-options.fr-1Ecu2sp2.cjs +20 -0
  596. package/components/sunburst-chart-options.nl-BbOLWrEh.cjs +20 -0
  597. package/components/sunburst-chart-slots.config-B18aqdH1.cjs +20 -0
  598. package/components/sv-1DPTltNQ.cjs +20 -0
  599. package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
  600. package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
  601. package/components/symbol-map-options.de-BpGDOFd7.cjs +20 -0
  602. package/components/symbol-map-options.en-DfbVAChu.cjs +20 -0
  603. package/components/symbol-map-options.es-DwitkQlR.cjs +20 -0
  604. package/components/symbol-map-options.fr-CmMvfUDf.cjs +20 -0
  605. package/components/symbol-map-options.nl-DxnQtnnP.cjs +20 -0
  606. package/components/symbol-map-slots.config-Dm_FRGHA.cjs +20 -0
  607. package/components/text-options.config-BFB3rEmt.cjs +20 -0
  608. package/components/text-options.de-DLr2-jBn.cjs +20 -0
  609. package/components/text-options.en-LfsMtwo6.cjs +20 -0
  610. package/components/text-options.es-BLQBqlvK.cjs +20 -0
  611. package/components/text-options.fr-B8x29grG.cjs +20 -0
  612. package/components/text-options.nl-DzglrI3i.cjs +20 -0
  613. package/components/text-slots.config-BMBEkf0O.cjs +20 -0
  614. package/components/tr-BkmWvOG2.cjs +20 -0
  615. package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
  616. package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
  617. package/components/treemap-chart-options.de-Crku8ynJ.cjs +20 -0
  618. package/components/treemap-chart-options.en-zSWDcqFt.cjs +20 -0
  619. package/components/treemap-chart-options.es-DXX2PyUh.cjs +20 -0
  620. package/components/treemap-chart-options.fr-B93bhLpR.cjs +20 -0
  621. package/components/treemap-chart-options.nl-ButbMHmU.cjs +20 -0
  622. package/components/treemap-chart-slots.config-C3bnHCyy.cjs +20 -0
  623. package/components/types-VPf7E5dD.cjs +20 -0
  624. package/components/urban-BLQl5Oye.cjs +20 -0
  625. package/components/utils.cjs +20 -0
  626. package/components/utils.js +94 -97
  627. package/components/venn-diagram-options.config-mPXMR1CE.cjs +20 -0
  628. package/components/venn-diagram-slots.config-GytlZGbF.cjs +20 -0
  629. package/components/video-options.config-B0asgYt8.cjs +20 -0
  630. package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
  631. package/components/video-options.de-DZUy2pUo.cjs +20 -0
  632. package/components/video-options.en-D69d612-.cjs +20 -0
  633. package/components/video-options.es-BUKi6Pyc.cjs +20 -0
  634. package/components/video-options.fr-B7b4NJso.cjs +20 -0
  635. package/components/video-options.nl-CSiCG3Vu.cjs +20 -0
  636. package/components/video-slots.config-mPXMR1CE.cjs +20 -0
  637. package/components/vivid-BpRn83MR.cjs +20 -0
  638. package/components/viz-item-menu/index.cjs +51 -0
  639. package/components/viz-item-menu/index.d.ts +8 -0
  640. package/components/viz-item-menu/index.js +209 -0
  641. package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
  642. package/components/wordcloud-chart-options.config-BKtJT8Va.cjs +20 -0
  643. package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
  644. package/components/wordcloud-chart-options.de-DnJjN2l-.cjs +20 -0
  645. package/components/wordcloud-chart-options.en-Ca5fXbS9.cjs +20 -0
  646. package/components/wordcloud-chart-options.es-TkHFgMUu.cjs +20 -0
  647. package/components/wordcloud-chart-options.fr-Dz53DWyA.cjs +20 -0
  648. package/components/wordcloud-chart-options.nl-Cy_9TRvD.cjs +20 -0
  649. package/components/wordcloud-chart-slots.config-D7CiYopX.cjs +20 -0
  650. package/components/zh-CN-DTZ4OmdP.cjs +20 -0
  651. package/components/zh-TW-DTZ4OmdP.cjs +20 -0
  652. package/custom-elements.json +43 -23
  653. package/index.d.ts +1 -1
  654. package/package.json +5 -5
  655. package/types.d.ts +2 -2
  656. package/angular/components/widget-menu.component.ts +0 -25
  657. package/angular/esm/components/widget-menu.component.d.ts +0 -13
  658. package/angular/esm/components/widget-menu.component.js +0 -49
  659. package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
  660. package/components/en-BOTjhwEc.js +0 -1488
  661. package/components/helpers-v1bPALRP.js +0 -91
  662. package/components/index-CDi4fe3N.js +0 -1716
  663. package/components/widget-menu/index.js +0 -213
@@ -0,0 +1,1755 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ var T = class {
21
+ constructor() {
22
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
23
+ }
24
+ subscribe(t) {
25
+ return this.listeners.add(t), this.onSubscribe(), () => {
26
+ this.listeners.delete(t), this.onUnsubscribe();
27
+ };
28
+ }
29
+ hasListeners() {
30
+ return this.listeners.size > 0;
31
+ }
32
+ onSubscribe() {
33
+ }
34
+ onUnsubscribe() {
35
+ }
36
+ }, X = {
37
+ // We need the wrapper function syntax below instead of direct references to
38
+ // global setTimeout etc.
39
+ //
40
+ // BAD: `setTimeout: setTimeout`
41
+ // GOOD: `setTimeout: (cb, delay) => setTimeout(cb, delay)`
42
+ //
43
+ // If we use direct references here, then anything that wants to spy on or
44
+ // replace the global setTimeout (like tests) won't work since we'll already
45
+ // have a hard reference to the original implementation at the time when this
46
+ // file was imported.
47
+ setTimeout: (t, e) => setTimeout(t, e),
48
+ clearTimeout: (t) => clearTimeout(t),
49
+ setInterval: (t, e) => setInterval(t, e),
50
+ clearInterval: (t) => clearInterval(t)
51
+ }, Y = class {
52
+ // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
53
+ // type at app boot; and if we leave that type, then any new timer provider
54
+ // would need to support ReturnType<typeof setTimeout>, which is infeasible.
55
+ //
56
+ // We settle for type safety for the TimeoutProvider type, and accept that
57
+ // this class is unsafe internally to allow for extension.
58
+ #t = X;
59
+ #e = !1;
60
+ setTimeoutProvider(t) {
61
+ this.#t = t;
62
+ }
63
+ setTimeout(t, e) {
64
+ return this.#t.setTimeout(t, e);
65
+ }
66
+ clearTimeout(t) {
67
+ this.#t.clearTimeout(t);
68
+ }
69
+ setInterval(t, e) {
70
+ return this.#t.setInterval(t, e);
71
+ }
72
+ clearInterval(t) {
73
+ this.#t.clearInterval(t);
74
+ }
75
+ }, Q = new Y();
76
+ function tt(t) {
77
+ setTimeout(t, 0);
78
+ }
79
+ var M = typeof window > "u" || "Deno" in globalThis;
80
+ function v() {
81
+ }
82
+ function et(t, e) {
83
+ return typeof t == "function" ? t(e) : t;
84
+ }
85
+ function st(t) {
86
+ return typeof t == "number" && t >= 0 && t !== 1 / 0;
87
+ }
88
+ function it(t, e) {
89
+ return Math.max(t + (e || 0) - Date.now(), 0);
90
+ }
91
+ function E(t, e) {
92
+ return typeof t == "function" ? t(e) : t;
93
+ }
94
+ function rt(t, e) {
95
+ return typeof t == "function" ? t(e) : t;
96
+ }
97
+ function U(t, e) {
98
+ const {
99
+ type: s = "all",
100
+ exact: i,
101
+ fetchStatus: n,
102
+ predicate: a,
103
+ queryKey: o,
104
+ stale: r
105
+ } = t;
106
+ if (o) {
107
+ if (i) {
108
+ if (e.queryHash !== j(o, e.options))
109
+ return !1;
110
+ } else if (!F(e.queryKey, o))
111
+ return !1;
112
+ }
113
+ if (s !== "all") {
114
+ const u = e.isActive();
115
+ if (s === "active" && !u || s === "inactive" && u)
116
+ return !1;
117
+ }
118
+ return !(typeof r == "boolean" && e.isStale() !== r || n && n !== e.state.fetchStatus || a && !a(e));
119
+ }
120
+ function x(t, e) {
121
+ const { exact: s, status: i, predicate: n, mutationKey: a } = t;
122
+ if (a) {
123
+ if (!e.options.mutationKey)
124
+ return !1;
125
+ if (s) {
126
+ if (P(e.options.mutationKey) !== P(a))
127
+ return !1;
128
+ } else if (!F(e.options.mutationKey, a))
129
+ return !1;
130
+ }
131
+ return !(i && e.state.status !== i || n && !n(e));
132
+ }
133
+ function j(t, e) {
134
+ return (e?.queryKeyHashFn || P)(t);
135
+ }
136
+ function P(t) {
137
+ return JSON.stringify(
138
+ t,
139
+ (e, s) => R(s) ? Object.keys(s).sort().reduce((i, n) => (i[n] = s[n], i), {}) : s
140
+ );
141
+ }
142
+ function F(t, e) {
143
+ return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((s) => F(t[s], e[s])) : !1;
144
+ }
145
+ var nt = Object.prototype.hasOwnProperty;
146
+ function $(t, e) {
147
+ if (t === e)
148
+ return t;
149
+ const s = L(t) && L(e);
150
+ if (!s && !(R(t) && R(e))) return e;
151
+ const n = (s ? t : Object.keys(t)).length, a = s ? e : Object.keys(e), o = a.length, r = s ? new Array(o) : {};
152
+ let u = 0;
153
+ for (let h = 0; h < o; h++) {
154
+ const d = s ? h : a[h], l = t[d], m = e[d];
155
+ if (l === m) {
156
+ r[d] = l, (s ? h < n : nt.call(t, d)) && u++;
157
+ continue;
158
+ }
159
+ if (l === null || m === null || typeof l != "object" || typeof m != "object") {
160
+ r[d] = m;
161
+ continue;
162
+ }
163
+ const b = $(l, m);
164
+ r[d] = b, b === l && u++;
165
+ }
166
+ return n === o && u === n ? t : r;
167
+ }
168
+ function L(t) {
169
+ return Array.isArray(t) && t.length === Object.keys(t).length;
170
+ }
171
+ function R(t) {
172
+ if (!H(t))
173
+ return !1;
174
+ const e = t.constructor;
175
+ if (e === void 0)
176
+ return !0;
177
+ const s = e.prototype;
178
+ return !(!H(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
179
+ }
180
+ function H(t) {
181
+ return Object.prototype.toString.call(t) === "[object Object]";
182
+ }
183
+ function at(t) {
184
+ return new Promise((e) => {
185
+ Q.setTimeout(e, t);
186
+ });
187
+ }
188
+ function ot(t, e, s) {
189
+ return typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ? $(t, e) : e;
190
+ }
191
+ function ut(t, e, s = 0) {
192
+ const i = [...t, e];
193
+ return s && i.length > s ? i.slice(1) : i;
194
+ }
195
+ function ht(t, e, s = 0) {
196
+ const i = [e, ...t];
197
+ return s && i.length > s ? i.slice(0, -1) : i;
198
+ }
199
+ var I = Symbol();
200
+ function J(t, e) {
201
+ return !t.queryFn && e?.initialPromise ? () => e.initialPromise : !t.queryFn || t.queryFn === I ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
202
+ }
203
+ var ct = class extends T {
204
+ #t;
205
+ #e;
206
+ #s;
207
+ constructor() {
208
+ super(), this.#s = (t) => {
209
+ if (!M && window.addEventListener) {
210
+ const e = () => t();
211
+ return window.addEventListener("visibilitychange", e, !1), () => {
212
+ window.removeEventListener("visibilitychange", e);
213
+ };
214
+ }
215
+ };
216
+ }
217
+ onSubscribe() {
218
+ this.#e || this.setEventListener(this.#s);
219
+ }
220
+ onUnsubscribe() {
221
+ this.hasListeners() || (this.#e?.(), this.#e = void 0);
222
+ }
223
+ setEventListener(t) {
224
+ this.#s = t, this.#e?.(), this.#e = t((e) => {
225
+ typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
226
+ });
227
+ }
228
+ setFocused(t) {
229
+ this.#t !== t && (this.#t = t, this.onFocus());
230
+ }
231
+ onFocus() {
232
+ const t = this.isFocused();
233
+ this.listeners.forEach((e) => {
234
+ e(t);
235
+ });
236
+ }
237
+ isFocused() {
238
+ return typeof this.#t == "boolean" ? this.#t : globalThis.document?.visibilityState !== "hidden";
239
+ }
240
+ }, z = new ct();
241
+ function lt() {
242
+ let t, e;
243
+ const s = new Promise((n, a) => {
244
+ t = n, e = a;
245
+ });
246
+ s.status = "pending", s.catch(() => {
247
+ });
248
+ function i(n) {
249
+ Object.assign(s, n), delete s.resolve, delete s.reject;
250
+ }
251
+ return s.resolve = (n) => {
252
+ i({
253
+ status: "fulfilled",
254
+ value: n
255
+ }), t(n);
256
+ }, s.reject = (n) => {
257
+ i({
258
+ status: "rejected",
259
+ reason: n
260
+ }), e(n);
261
+ }, s;
262
+ }
263
+ var dt = tt;
264
+ function ft() {
265
+ let t = [], e = 0, s = (r) => {
266
+ r();
267
+ }, i = (r) => {
268
+ r();
269
+ }, n = dt;
270
+ const a = (r) => {
271
+ e ? t.push(r) : n(() => {
272
+ s(r);
273
+ });
274
+ }, o = () => {
275
+ const r = t;
276
+ t = [], r.length && n(() => {
277
+ i(() => {
278
+ r.forEach((u) => {
279
+ s(u);
280
+ });
281
+ });
282
+ });
283
+ };
284
+ return {
285
+ batch: (r) => {
286
+ let u;
287
+ e++;
288
+ try {
289
+ u = r();
290
+ } finally {
291
+ e--, e || o();
292
+ }
293
+ return u;
294
+ },
295
+ /**
296
+ * All calls to the wrapped function will be batched.
297
+ */
298
+ batchCalls: (r) => (...u) => {
299
+ a(() => {
300
+ r(...u);
301
+ });
302
+ },
303
+ schedule: a,
304
+ /**
305
+ * Use this method to set a custom notify function.
306
+ * This can be used to for example wrap notifications with `React.act` while running tests.
307
+ */
308
+ setNotifyFunction: (r) => {
309
+ s = r;
310
+ },
311
+ /**
312
+ * Use this method to set a custom function to batch notifications together into a single tick.
313
+ * By default React Query will use the batch function provided by ReactDOM or React Native.
314
+ */
315
+ setBatchNotifyFunction: (r) => {
316
+ i = r;
317
+ },
318
+ setScheduler: (r) => {
319
+ n = r;
320
+ }
321
+ };
322
+ }
323
+ var y = ft(), yt = class extends T {
324
+ #t = !0;
325
+ #e;
326
+ #s;
327
+ constructor() {
328
+ super(), this.#s = (t) => {
329
+ if (!M && window.addEventListener) {
330
+ const e = () => t(!0), s = () => t(!1);
331
+ return window.addEventListener("online", e, !1), window.addEventListener("offline", s, !1), () => {
332
+ window.removeEventListener("online", e), window.removeEventListener("offline", s);
333
+ };
334
+ }
335
+ };
336
+ }
337
+ onSubscribe() {
338
+ this.#e || this.setEventListener(this.#s);
339
+ }
340
+ onUnsubscribe() {
341
+ this.hasListeners() || (this.#e?.(), this.#e = void 0);
342
+ }
343
+ setEventListener(t) {
344
+ this.#s = t, this.#e?.(), this.#e = t(this.setOnline.bind(this));
345
+ }
346
+ setOnline(t) {
347
+ this.#t !== t && (this.#t = t, this.listeners.forEach((s) => {
348
+ s(t);
349
+ }));
350
+ }
351
+ isOnline() {
352
+ return this.#t;
353
+ }
354
+ }, D = new yt();
355
+ function pt(t) {
356
+ return Math.min(1e3 * 2 ** t, 3e4);
357
+ }
358
+ function B(t) {
359
+ return (t ?? "online") === "online" ? D.isOnline() : !0;
360
+ }
361
+ var K = class extends Error {
362
+ constructor(t) {
363
+ super("CancelledError"), this.revert = t?.revert, this.silent = t?.silent;
364
+ }
365
+ };
366
+ function W(t) {
367
+ let e = !1, s = 0, i;
368
+ const n = lt(), a = () => n.status !== "pending", o = (c) => {
369
+ if (!a()) {
370
+ const p = new K(c);
371
+ m(p), t.onCancel?.(p);
372
+ }
373
+ }, r = () => {
374
+ e = !0;
375
+ }, u = () => {
376
+ e = !1;
377
+ }, h = () => z.isFocused() && (t.networkMode === "always" || D.isOnline()) && t.canRun(), d = () => B(t.networkMode) && t.canRun(), l = (c) => {
378
+ a() || (i?.(), n.resolve(c));
379
+ }, m = (c) => {
380
+ a() || (i?.(), n.reject(c));
381
+ }, b = () => new Promise((c) => {
382
+ i = (p) => {
383
+ (a() || h()) && c(p);
384
+ }, t.onPause?.();
385
+ }).then(() => {
386
+ i = void 0, a() || t.onContinue?.();
387
+ }), f = () => {
388
+ if (a())
389
+ return;
390
+ let c;
391
+ const p = s === 0 ? t.initialPromise : void 0;
392
+ try {
393
+ c = p ?? t.fn();
394
+ } catch (g) {
395
+ c = Promise.reject(g);
396
+ }
397
+ Promise.resolve(c).then(l).catch((g) => {
398
+ if (a())
399
+ return;
400
+ const w = t.retry ?? (M ? 0 : 3), O = t.retryDelay ?? pt, q = typeof O == "function" ? O(s, g) : O, S = w === !0 || typeof w == "number" && s < w || typeof w == "function" && w(s, g);
401
+ if (e || !S) {
402
+ m(g);
403
+ return;
404
+ }
405
+ s++, t.onFail?.(s, g), at(q).then(() => h() ? void 0 : b()).then(() => {
406
+ e ? m(g) : f();
407
+ });
408
+ });
409
+ };
410
+ return {
411
+ promise: n,
412
+ status: () => n.status,
413
+ cancel: o,
414
+ continue: () => (i?.(), n),
415
+ cancelRetry: r,
416
+ continueRetry: u,
417
+ canStart: d,
418
+ start: () => (d() ? f() : b().then(f), n)
419
+ };
420
+ }
421
+ var Z = class {
422
+ #t;
423
+ destroy() {
424
+ this.clearGcTimeout();
425
+ }
426
+ scheduleGc() {
427
+ this.clearGcTimeout(), st(this.gcTime) && (this.#t = Q.setTimeout(() => {
428
+ this.optionalRemove();
429
+ }, this.gcTime));
430
+ }
431
+ updateGcTime(t) {
432
+ this.gcTime = Math.max(
433
+ this.gcTime || 0,
434
+ t ?? (M ? 1 / 0 : 300 * 1e3)
435
+ );
436
+ }
437
+ clearGcTimeout() {
438
+ this.#t && (Q.clearTimeout(this.#t), this.#t = void 0);
439
+ }
440
+ }, mt = class extends Z {
441
+ #t;
442
+ #e;
443
+ #s;
444
+ #r;
445
+ #i;
446
+ #a;
447
+ #o;
448
+ constructor(t) {
449
+ super(), this.#o = !1, this.#a = t.defaultOptions, this.setOptions(t.options), this.observers = [], this.#r = t.client, this.#s = this.#r.getQueryCache(), this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.#t = N(this.options), this.state = t.state ?? this.#t, this.scheduleGc();
450
+ }
451
+ get meta() {
452
+ return this.options.meta;
453
+ }
454
+ get promise() {
455
+ return this.#i?.promise;
456
+ }
457
+ setOptions(t) {
458
+ if (this.options = { ...this.#a, ...t }, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
459
+ const e = N(this.options);
460
+ e.data !== void 0 && (this.setState(
461
+ G(e.data, e.dataUpdatedAt)
462
+ ), this.#t = e);
463
+ }
464
+ }
465
+ optionalRemove() {
466
+ !this.observers.length && this.state.fetchStatus === "idle" && this.#s.remove(this);
467
+ }
468
+ setData(t, e) {
469
+ const s = ot(this.state.data, t, this.options);
470
+ return this.#n({
471
+ data: s,
472
+ type: "success",
473
+ dataUpdatedAt: e?.updatedAt,
474
+ manual: e?.manual
475
+ }), s;
476
+ }
477
+ setState(t, e) {
478
+ this.#n({ type: "setState", state: t, setStateOptions: e });
479
+ }
480
+ cancel(t) {
481
+ const e = this.#i?.promise;
482
+ return this.#i?.cancel(t), e ? e.then(v).catch(v) : Promise.resolve();
483
+ }
484
+ destroy() {
485
+ super.destroy(), this.cancel({ silent: !0 });
486
+ }
487
+ reset() {
488
+ this.destroy(), this.setState(this.#t);
489
+ }
490
+ isActive() {
491
+ return this.observers.some(
492
+ (t) => rt(t.options.enabled, this) !== !1
493
+ );
494
+ }
495
+ isDisabled() {
496
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === I || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
497
+ }
498
+ isStatic() {
499
+ return this.getObserversCount() > 0 ? this.observers.some(
500
+ (t) => E(t.options.staleTime, this) === "static"
501
+ ) : !1;
502
+ }
503
+ isStale() {
504
+ return this.getObserversCount() > 0 ? this.observers.some(
505
+ (t) => t.getCurrentResult().isStale
506
+ ) : this.state.data === void 0 || this.state.isInvalidated;
507
+ }
508
+ isStaleByTime(t = 0) {
509
+ return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !it(this.state.dataUpdatedAt, t);
510
+ }
511
+ onFocus() {
512
+ this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
513
+ }
514
+ onOnline() {
515
+ this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
516
+ }
517
+ addObserver(t) {
518
+ this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), this.#s.notify({ type: "observerAdded", query: this, observer: t }));
519
+ }
520
+ removeObserver(t) {
521
+ this.observers.includes(t) && (this.observers = this.observers.filter((e) => e !== t), this.observers.length || (this.#i && (this.#o ? this.#i.cancel({ revert: !0 }) : this.#i.cancelRetry()), this.scheduleGc()), this.#s.notify({ type: "observerRemoved", query: this, observer: t }));
522
+ }
523
+ getObserversCount() {
524
+ return this.observers.length;
525
+ }
526
+ invalidate() {
527
+ this.state.isInvalidated || this.#n({ type: "invalidate" });
528
+ }
529
+ async fetch(t, e) {
530
+ if (this.state.fetchStatus !== "idle" && // If the promise in the retyer is already rejected, we have to definitely
531
+ // re-start the fetch; there is a chance that the query is still in a
532
+ // pending state when that happens
533
+ this.#i?.status() !== "rejected") {
534
+ if (this.state.data !== void 0 && e?.cancelRefetch)
535
+ this.cancel({ silent: !0 });
536
+ else if (this.#i)
537
+ return this.#i.continueRetry(), this.#i.promise;
538
+ }
539
+ if (t && this.setOptions(t), !this.options.queryFn) {
540
+ const r = this.observers.find((u) => u.options.queryFn);
541
+ r && this.setOptions(r.options);
542
+ }
543
+ const s = new AbortController(), i = (r) => {
544
+ Object.defineProperty(r, "signal", {
545
+ enumerable: !0,
546
+ get: () => (this.#o = !0, s.signal)
547
+ });
548
+ }, n = () => {
549
+ const r = J(this.options, e), h = (() => {
550
+ const d = {
551
+ client: this.#r,
552
+ queryKey: this.queryKey,
553
+ meta: this.meta
554
+ };
555
+ return i(d), d;
556
+ })();
557
+ return this.#o = !1, this.options.persister ? this.options.persister(
558
+ r,
559
+ h,
560
+ this
561
+ ) : r(h);
562
+ }, o = (() => {
563
+ const r = {
564
+ fetchOptions: e,
565
+ options: this.options,
566
+ queryKey: this.queryKey,
567
+ client: this.#r,
568
+ state: this.state,
569
+ fetchFn: n
570
+ };
571
+ return i(r), r;
572
+ })();
573
+ this.options.behavior?.onFetch(o, this), this.#e = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== o.fetchOptions?.meta) && this.#n({ type: "fetch", meta: o.fetchOptions?.meta }), this.#i = W({
574
+ initialPromise: e?.initialPromise,
575
+ fn: o.fetchFn,
576
+ onCancel: (r) => {
577
+ r instanceof K && r.revert && this.setState({
578
+ ...this.#e,
579
+ fetchStatus: "idle"
580
+ }), s.abort();
581
+ },
582
+ onFail: (r, u) => {
583
+ this.#n({ type: "failed", failureCount: r, error: u });
584
+ },
585
+ onPause: () => {
586
+ this.#n({ type: "pause" });
587
+ },
588
+ onContinue: () => {
589
+ this.#n({ type: "continue" });
590
+ },
591
+ retry: o.options.retry,
592
+ retryDelay: o.options.retryDelay,
593
+ networkMode: o.options.networkMode,
594
+ canRun: () => !0
595
+ });
596
+ try {
597
+ const r = await this.#i.start();
598
+ if (r === void 0)
599
+ throw new Error(`${this.queryHash} data is undefined`);
600
+ return this.setData(r), this.#s.config.onSuccess?.(r, this), this.#s.config.onSettled?.(
601
+ r,
602
+ this.state.error,
603
+ this
604
+ ), r;
605
+ } catch (r) {
606
+ if (r instanceof K) {
607
+ if (r.silent)
608
+ return this.#i.promise;
609
+ if (r.revert) {
610
+ if (this.state.data === void 0)
611
+ throw r;
612
+ return this.state.data;
613
+ }
614
+ }
615
+ throw this.#n({
616
+ type: "error",
617
+ error: r
618
+ }), this.#s.config.onError?.(
619
+ r,
620
+ this
621
+ ), this.#s.config.onSettled?.(
622
+ this.state.data,
623
+ r,
624
+ this
625
+ ), r;
626
+ } finally {
627
+ this.scheduleGc();
628
+ }
629
+ }
630
+ #n(t) {
631
+ const e = (s) => {
632
+ switch (t.type) {
633
+ case "failed":
634
+ return {
635
+ ...s,
636
+ fetchFailureCount: t.failureCount,
637
+ fetchFailureReason: t.error
638
+ };
639
+ case "pause":
640
+ return {
641
+ ...s,
642
+ fetchStatus: "paused"
643
+ };
644
+ case "continue":
645
+ return {
646
+ ...s,
647
+ fetchStatus: "fetching"
648
+ };
649
+ case "fetch":
650
+ return {
651
+ ...s,
652
+ ...vt(s.data, this.options),
653
+ fetchMeta: t.meta ?? null
654
+ };
655
+ case "success":
656
+ const i = {
657
+ ...s,
658
+ ...G(t.data, t.dataUpdatedAt),
659
+ dataUpdateCount: s.dataUpdateCount + 1,
660
+ ...!t.manual && {
661
+ fetchStatus: "idle",
662
+ fetchFailureCount: 0,
663
+ fetchFailureReason: null
664
+ }
665
+ };
666
+ return this.#e = t.manual ? i : void 0, i;
667
+ case "error":
668
+ const n = t.error;
669
+ return {
670
+ ...s,
671
+ error: n,
672
+ errorUpdateCount: s.errorUpdateCount + 1,
673
+ errorUpdatedAt: Date.now(),
674
+ fetchFailureCount: s.fetchFailureCount + 1,
675
+ fetchFailureReason: n,
676
+ fetchStatus: "idle",
677
+ status: "error"
678
+ };
679
+ case "invalidate":
680
+ return {
681
+ ...s,
682
+ isInvalidated: !0
683
+ };
684
+ case "setState":
685
+ return {
686
+ ...s,
687
+ ...t.state
688
+ };
689
+ }
690
+ };
691
+ this.state = e(this.state), y.batch(() => {
692
+ this.observers.forEach((s) => {
693
+ s.onQueryUpdate();
694
+ }), this.#s.notify({ query: this, type: "updated", action: t });
695
+ });
696
+ }
697
+ };
698
+ function vt(t, e) {
699
+ return {
700
+ fetchFailureCount: 0,
701
+ fetchFailureReason: null,
702
+ fetchStatus: B(e.networkMode) ? "fetching" : "paused",
703
+ ...t === void 0 && {
704
+ error: null,
705
+ status: "pending"
706
+ }
707
+ };
708
+ }
709
+ function G(t, e) {
710
+ return {
711
+ data: t,
712
+ dataUpdatedAt: e ?? Date.now(),
713
+ error: null,
714
+ isInvalidated: !1,
715
+ status: "success"
716
+ };
717
+ }
718
+ function N(t) {
719
+ const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, i = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
720
+ return {
721
+ data: e,
722
+ dataUpdateCount: 0,
723
+ dataUpdatedAt: s ? i ?? Date.now() : 0,
724
+ error: null,
725
+ errorUpdateCount: 0,
726
+ errorUpdatedAt: 0,
727
+ fetchFailureCount: 0,
728
+ fetchFailureReason: null,
729
+ fetchMeta: null,
730
+ isInvalidated: !1,
731
+ status: s ? "success" : "pending",
732
+ fetchStatus: "idle"
733
+ };
734
+ }
735
+ function V(t) {
736
+ return {
737
+ onFetch: (e, s) => {
738
+ const i = e.options, n = e.fetchOptions?.meta?.fetchMore?.direction, a = e.state.data?.pages || [], o = e.state.data?.pageParams || [];
739
+ let r = { pages: [], pageParams: [] }, u = 0;
740
+ const h = async () => {
741
+ let d = !1;
742
+ const l = (f) => {
743
+ Object.defineProperty(f, "signal", {
744
+ enumerable: !0,
745
+ get: () => (e.signal.aborted ? d = !0 : e.signal.addEventListener("abort", () => {
746
+ d = !0;
747
+ }), e.signal)
748
+ });
749
+ }, m = J(e.options, e.fetchOptions), b = async (f, c, p) => {
750
+ if (d)
751
+ return Promise.reject();
752
+ if (c == null && f.pages.length)
753
+ return Promise.resolve(f);
754
+ const w = (() => {
755
+ const k = {
756
+ client: e.client,
757
+ queryKey: e.queryKey,
758
+ pageParam: c,
759
+ direction: p ? "backward" : "forward",
760
+ meta: e.options.meta
761
+ };
762
+ return l(k), k;
763
+ })(), O = await m(w), { maxPages: q } = e.options, S = p ? ht : ut;
764
+ return {
765
+ pages: S(f.pages, O, q),
766
+ pageParams: S(f.pageParams, c, q)
767
+ };
768
+ };
769
+ if (n && a.length) {
770
+ const f = n === "backward", c = f ? gt : _, p = {
771
+ pages: a,
772
+ pageParams: o
773
+ }, g = c(i, p);
774
+ r = await b(p, g, f);
775
+ } else {
776
+ const f = t ?? a.length;
777
+ do {
778
+ const c = u === 0 ? o[0] ?? i.initialPageParam : _(i, r);
779
+ if (u > 0 && c == null)
780
+ break;
781
+ r = await b(r, c), u++;
782
+ } while (u < f);
783
+ }
784
+ return r;
785
+ };
786
+ e.options.persister ? e.fetchFn = () => e.options.persister?.(
787
+ h,
788
+ {
789
+ client: e.client,
790
+ queryKey: e.queryKey,
791
+ meta: e.options.meta,
792
+ signal: e.signal
793
+ },
794
+ s
795
+ ) : e.fetchFn = h;
796
+ }
797
+ };
798
+ }
799
+ function _(t, { pages: e, pageParams: s }) {
800
+ const i = e.length - 1;
801
+ return e.length > 0 ? t.getNextPageParam(
802
+ e[i],
803
+ e,
804
+ s[i],
805
+ s
806
+ ) : void 0;
807
+ }
808
+ function gt(t, { pages: e, pageParams: s }) {
809
+ return e.length > 0 ? t.getPreviousPageParam?.(e[0], e, s[0], s) : void 0;
810
+ }
811
+ var bt = class extends Z {
812
+ #t;
813
+ #e;
814
+ #s;
815
+ #r;
816
+ constructor(t) {
817
+ super(), this.#t = t.client, this.mutationId = t.mutationId, this.#s = t.mutationCache, this.#e = [], this.state = t.state || wt(), this.setOptions(t.options), this.scheduleGc();
818
+ }
819
+ setOptions(t) {
820
+ this.options = t, this.updateGcTime(this.options.gcTime);
821
+ }
822
+ get meta() {
823
+ return this.options.meta;
824
+ }
825
+ addObserver(t) {
826
+ this.#e.includes(t) || (this.#e.push(t), this.clearGcTimeout(), this.#s.notify({
827
+ type: "observerAdded",
828
+ mutation: this,
829
+ observer: t
830
+ }));
831
+ }
832
+ removeObserver(t) {
833
+ this.#e = this.#e.filter((e) => e !== t), this.scheduleGc(), this.#s.notify({
834
+ type: "observerRemoved",
835
+ mutation: this,
836
+ observer: t
837
+ });
838
+ }
839
+ optionalRemove() {
840
+ this.#e.length || (this.state.status === "pending" ? this.scheduleGc() : this.#s.remove(this));
841
+ }
842
+ continue() {
843
+ return this.#r?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
844
+ this.execute(this.state.variables);
845
+ }
846
+ async execute(t) {
847
+ const e = () => {
848
+ this.#i({ type: "continue" });
849
+ }, s = {
850
+ client: this.#t,
851
+ meta: this.options.meta,
852
+ mutationKey: this.options.mutationKey
853
+ };
854
+ this.#r = W({
855
+ fn: () => this.options.mutationFn ? this.options.mutationFn(t, s) : Promise.reject(new Error("No mutationFn found")),
856
+ onFail: (a, o) => {
857
+ this.#i({ type: "failed", failureCount: a, error: o });
858
+ },
859
+ onPause: () => {
860
+ this.#i({ type: "pause" });
861
+ },
862
+ onContinue: e,
863
+ retry: this.options.retry ?? 0,
864
+ retryDelay: this.options.retryDelay,
865
+ networkMode: this.options.networkMode,
866
+ canRun: () => this.#s.canRun(this)
867
+ });
868
+ const i = this.state.status === "pending", n = !this.#r.canStart();
869
+ try {
870
+ if (i)
871
+ e();
872
+ else {
873
+ this.#i({ type: "pending", variables: t, isPaused: n }), await this.#s.config.onMutate?.(
874
+ t,
875
+ this,
876
+ s
877
+ );
878
+ const o = await this.options.onMutate?.(
879
+ t,
880
+ s
881
+ );
882
+ o !== this.state.context && this.#i({
883
+ type: "pending",
884
+ context: o,
885
+ variables: t,
886
+ isPaused: n
887
+ });
888
+ }
889
+ const a = await this.#r.start();
890
+ return await this.#s.config.onSuccess?.(
891
+ a,
892
+ t,
893
+ this.state.context,
894
+ this,
895
+ s
896
+ ), await this.options.onSuccess?.(
897
+ a,
898
+ t,
899
+ this.state.context,
900
+ s
901
+ ), await this.#s.config.onSettled?.(
902
+ a,
903
+ null,
904
+ this.state.variables,
905
+ this.state.context,
906
+ this,
907
+ s
908
+ ), await this.options.onSettled?.(
909
+ a,
910
+ null,
911
+ t,
912
+ this.state.context,
913
+ s
914
+ ), this.#i({ type: "success", data: a }), a;
915
+ } catch (a) {
916
+ try {
917
+ throw await this.#s.config.onError?.(
918
+ a,
919
+ t,
920
+ this.state.context,
921
+ this,
922
+ s
923
+ ), await this.options.onError?.(
924
+ a,
925
+ t,
926
+ this.state.context,
927
+ s
928
+ ), await this.#s.config.onSettled?.(
929
+ void 0,
930
+ a,
931
+ this.state.variables,
932
+ this.state.context,
933
+ this,
934
+ s
935
+ ), await this.options.onSettled?.(
936
+ void 0,
937
+ a,
938
+ t,
939
+ this.state.context,
940
+ s
941
+ ), a;
942
+ } finally {
943
+ this.#i({ type: "error", error: a });
944
+ }
945
+ } finally {
946
+ this.#s.runNext(this);
947
+ }
948
+ }
949
+ #i(t) {
950
+ const e = (s) => {
951
+ switch (t.type) {
952
+ case "failed":
953
+ return {
954
+ ...s,
955
+ failureCount: t.failureCount,
956
+ failureReason: t.error
957
+ };
958
+ case "pause":
959
+ return {
960
+ ...s,
961
+ isPaused: !0
962
+ };
963
+ case "continue":
964
+ return {
965
+ ...s,
966
+ isPaused: !1
967
+ };
968
+ case "pending":
969
+ return {
970
+ ...s,
971
+ context: t.context,
972
+ data: void 0,
973
+ failureCount: 0,
974
+ failureReason: null,
975
+ error: null,
976
+ isPaused: t.isPaused,
977
+ status: "pending",
978
+ variables: t.variables,
979
+ submittedAt: Date.now()
980
+ };
981
+ case "success":
982
+ return {
983
+ ...s,
984
+ data: t.data,
985
+ failureCount: 0,
986
+ failureReason: null,
987
+ error: null,
988
+ status: "success",
989
+ isPaused: !1
990
+ };
991
+ case "error":
992
+ return {
993
+ ...s,
994
+ data: void 0,
995
+ error: t.error,
996
+ failureCount: s.failureCount + 1,
997
+ failureReason: t.error,
998
+ isPaused: !1,
999
+ status: "error"
1000
+ };
1001
+ }
1002
+ };
1003
+ this.state = e(this.state), y.batch(() => {
1004
+ this.#e.forEach((s) => {
1005
+ s.onMutationUpdate(t);
1006
+ }), this.#s.notify({
1007
+ mutation: this,
1008
+ type: "updated",
1009
+ action: t
1010
+ });
1011
+ });
1012
+ }
1013
+ };
1014
+ function wt() {
1015
+ return {
1016
+ context: void 0,
1017
+ data: void 0,
1018
+ error: null,
1019
+ failureCount: 0,
1020
+ failureReason: null,
1021
+ isPaused: !1,
1022
+ status: "idle",
1023
+ variables: void 0,
1024
+ submittedAt: 0
1025
+ };
1026
+ }
1027
+ var Ct = class extends T {
1028
+ constructor(t = {}) {
1029
+ super(), this.config = t, this.#t = /* @__PURE__ */ new Set(), this.#e = /* @__PURE__ */ new Map(), this.#s = 0;
1030
+ }
1031
+ #t;
1032
+ #e;
1033
+ #s;
1034
+ build(t, e, s) {
1035
+ const i = new bt({
1036
+ client: t,
1037
+ mutationCache: this,
1038
+ mutationId: ++this.#s,
1039
+ options: t.defaultMutationOptions(e),
1040
+ state: s
1041
+ });
1042
+ return this.add(i), i;
1043
+ }
1044
+ add(t) {
1045
+ this.#t.add(t);
1046
+ const e = A(t);
1047
+ if (typeof e == "string") {
1048
+ const s = this.#e.get(e);
1049
+ s ? s.push(t) : this.#e.set(e, [t]);
1050
+ }
1051
+ this.notify({ type: "added", mutation: t });
1052
+ }
1053
+ remove(t) {
1054
+ if (this.#t.delete(t)) {
1055
+ const e = A(t);
1056
+ if (typeof e == "string") {
1057
+ const s = this.#e.get(e);
1058
+ if (s)
1059
+ if (s.length > 1) {
1060
+ const i = s.indexOf(t);
1061
+ i !== -1 && s.splice(i, 1);
1062
+ } else s[0] === t && this.#e.delete(e);
1063
+ }
1064
+ }
1065
+ this.notify({ type: "removed", mutation: t });
1066
+ }
1067
+ canRun(t) {
1068
+ const e = A(t);
1069
+ if (typeof e == "string") {
1070
+ const i = this.#e.get(e)?.find(
1071
+ (n) => n.state.status === "pending"
1072
+ );
1073
+ return !i || i === t;
1074
+ } else
1075
+ return !0;
1076
+ }
1077
+ runNext(t) {
1078
+ const e = A(t);
1079
+ return typeof e == "string" ? this.#e.get(e)?.find((i) => i !== t && i.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
1080
+ }
1081
+ clear() {
1082
+ y.batch(() => {
1083
+ this.#t.forEach((t) => {
1084
+ this.notify({ type: "removed", mutation: t });
1085
+ }), this.#t.clear(), this.#e.clear();
1086
+ });
1087
+ }
1088
+ getAll() {
1089
+ return Array.from(this.#t);
1090
+ }
1091
+ find(t) {
1092
+ const e = { exact: !0, ...t };
1093
+ return this.getAll().find(
1094
+ (s) => x(e, s)
1095
+ );
1096
+ }
1097
+ findAll(t = {}) {
1098
+ return this.getAll().filter((e) => x(t, e));
1099
+ }
1100
+ notify(t) {
1101
+ y.batch(() => {
1102
+ this.listeners.forEach((e) => {
1103
+ e(t);
1104
+ });
1105
+ });
1106
+ }
1107
+ resumePausedMutations() {
1108
+ const t = this.getAll().filter((e) => e.state.isPaused);
1109
+ return y.batch(
1110
+ () => Promise.all(
1111
+ t.map((e) => e.continue().catch(v))
1112
+ )
1113
+ );
1114
+ }
1115
+ };
1116
+ function A(t) {
1117
+ return t.options.scope?.id;
1118
+ }
1119
+ var Ot = class extends T {
1120
+ constructor(t = {}) {
1121
+ super(), this.config = t, this.#t = /* @__PURE__ */ new Map();
1122
+ }
1123
+ #t;
1124
+ build(t, e, s) {
1125
+ const i = e.queryKey, n = e.queryHash ?? j(i, e);
1126
+ let a = this.get(n);
1127
+ return a || (a = new mt({
1128
+ client: t,
1129
+ queryKey: i,
1130
+ queryHash: n,
1131
+ options: t.defaultQueryOptions(e),
1132
+ state: s,
1133
+ defaultOptions: t.getQueryDefaults(i)
1134
+ }), this.add(a)), a;
1135
+ }
1136
+ add(t) {
1137
+ this.#t.has(t.queryHash) || (this.#t.set(t.queryHash, t), this.notify({
1138
+ type: "added",
1139
+ query: t
1140
+ }));
1141
+ }
1142
+ remove(t) {
1143
+ const e = this.#t.get(t.queryHash);
1144
+ e && (t.destroy(), e === t && this.#t.delete(t.queryHash), this.notify({ type: "removed", query: t }));
1145
+ }
1146
+ clear() {
1147
+ y.batch(() => {
1148
+ this.getAll().forEach((t) => {
1149
+ this.remove(t);
1150
+ });
1151
+ });
1152
+ }
1153
+ get(t) {
1154
+ return this.#t.get(t);
1155
+ }
1156
+ getAll() {
1157
+ return [...this.#t.values()];
1158
+ }
1159
+ find(t) {
1160
+ const e = { exact: !0, ...t };
1161
+ return this.getAll().find(
1162
+ (s) => U(e, s)
1163
+ );
1164
+ }
1165
+ findAll(t = {}) {
1166
+ const e = this.getAll();
1167
+ return Object.keys(t).length > 0 ? e.filter((s) => U(t, s)) : e;
1168
+ }
1169
+ notify(t) {
1170
+ y.batch(() => {
1171
+ this.listeners.forEach((e) => {
1172
+ e(t);
1173
+ });
1174
+ });
1175
+ }
1176
+ onFocus() {
1177
+ y.batch(() => {
1178
+ this.getAll().forEach((t) => {
1179
+ t.onFocus();
1180
+ });
1181
+ });
1182
+ }
1183
+ onOnline() {
1184
+ y.batch(() => {
1185
+ this.getAll().forEach((t) => {
1186
+ t.onOnline();
1187
+ });
1188
+ });
1189
+ }
1190
+ }, Pt = class {
1191
+ #t;
1192
+ #e;
1193
+ #s;
1194
+ #r;
1195
+ #i;
1196
+ #a;
1197
+ #o;
1198
+ #n;
1199
+ constructor(t = {}) {
1200
+ this.#t = t.queryCache || new Ot(), this.#e = t.mutationCache || new Ct(), this.#s = t.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1201
+ }
1202
+ mount() {
1203
+ this.#a++, this.#a === 1 && (this.#o = z.subscribe(async (t) => {
1204
+ t && (await this.resumePausedMutations(), this.#t.onFocus());
1205
+ }), this.#n = D.subscribe(async (t) => {
1206
+ t && (await this.resumePausedMutations(), this.#t.onOnline());
1207
+ }));
1208
+ }
1209
+ unmount() {
1210
+ this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#n?.(), this.#n = void 0);
1211
+ }
1212
+ isFetching(t) {
1213
+ return this.#t.findAll({ ...t, fetchStatus: "fetching" }).length;
1214
+ }
1215
+ isMutating(t) {
1216
+ return this.#e.findAll({ ...t, status: "pending" }).length;
1217
+ }
1218
+ /**
1219
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
1220
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
1221
+ *
1222
+ * Hint: Do not use this function inside a component, because it won't receive updates.
1223
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
1224
+ */
1225
+ getQueryData(t) {
1226
+ const e = this.defaultQueryOptions({ queryKey: t });
1227
+ return this.#t.get(e.queryHash)?.state.data;
1228
+ }
1229
+ ensureQueryData(t) {
1230
+ const e = this.defaultQueryOptions(t), s = this.#t.build(this, e), i = s.state.data;
1231
+ return i === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && s.isStaleByTime(E(e.staleTime, s)) && this.prefetchQuery(e), Promise.resolve(i));
1232
+ }
1233
+ getQueriesData(t) {
1234
+ return this.#t.findAll(t).map(({ queryKey: e, state: s }) => {
1235
+ const i = s.data;
1236
+ return [e, i];
1237
+ });
1238
+ }
1239
+ setQueryData(t, e, s) {
1240
+ const i = this.defaultQueryOptions({ queryKey: t }), a = this.#t.get(
1241
+ i.queryHash
1242
+ )?.state.data, o = et(e, a);
1243
+ if (o !== void 0)
1244
+ return this.#t.build(this, i).setData(o, { ...s, manual: !0 });
1245
+ }
1246
+ setQueriesData(t, e, s) {
1247
+ return y.batch(
1248
+ () => this.#t.findAll(t).map(({ queryKey: i }) => [
1249
+ i,
1250
+ this.setQueryData(i, e, s)
1251
+ ])
1252
+ );
1253
+ }
1254
+ getQueryState(t) {
1255
+ const e = this.defaultQueryOptions({ queryKey: t });
1256
+ return this.#t.get(
1257
+ e.queryHash
1258
+ )?.state;
1259
+ }
1260
+ removeQueries(t) {
1261
+ const e = this.#t;
1262
+ y.batch(() => {
1263
+ e.findAll(t).forEach((s) => {
1264
+ e.remove(s);
1265
+ });
1266
+ });
1267
+ }
1268
+ resetQueries(t, e) {
1269
+ const s = this.#t;
1270
+ return y.batch(() => (s.findAll(t).forEach((i) => {
1271
+ i.reset();
1272
+ }), this.refetchQueries(
1273
+ {
1274
+ type: "active",
1275
+ ...t
1276
+ },
1277
+ e
1278
+ )));
1279
+ }
1280
+ cancelQueries(t, e = {}) {
1281
+ const s = { revert: !0, ...e }, i = y.batch(
1282
+ () => this.#t.findAll(t).map((n) => n.cancel(s))
1283
+ );
1284
+ return Promise.all(i).then(v).catch(v);
1285
+ }
1286
+ invalidateQueries(t, e = {}) {
1287
+ return y.batch(() => (this.#t.findAll(t).forEach((s) => {
1288
+ s.invalidate();
1289
+ }), t?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
1290
+ {
1291
+ ...t,
1292
+ type: t?.refetchType ?? t?.type ?? "active"
1293
+ },
1294
+ e
1295
+ )));
1296
+ }
1297
+ refetchQueries(t, e = {}) {
1298
+ const s = {
1299
+ ...e,
1300
+ cancelRefetch: e.cancelRefetch ?? !0
1301
+ }, i = y.batch(
1302
+ () => this.#t.findAll(t).filter((n) => !n.isDisabled() && !n.isStatic()).map((n) => {
1303
+ let a = n.fetch(void 0, s);
1304
+ return s.throwOnError || (a = a.catch(v)), n.state.fetchStatus === "paused" ? Promise.resolve() : a;
1305
+ })
1306
+ );
1307
+ return Promise.all(i).then(v);
1308
+ }
1309
+ fetchQuery(t) {
1310
+ const e = this.defaultQueryOptions(t);
1311
+ e.retry === void 0 && (e.retry = !1);
1312
+ const s = this.#t.build(this, e);
1313
+ return s.isStaleByTime(
1314
+ E(e.staleTime, s)
1315
+ ) ? s.fetch(e) : Promise.resolve(s.state.data);
1316
+ }
1317
+ prefetchQuery(t) {
1318
+ return this.fetchQuery(t).then(v).catch(v);
1319
+ }
1320
+ fetchInfiniteQuery(t) {
1321
+ return t.behavior = V(t.pages), this.fetchQuery(t);
1322
+ }
1323
+ prefetchInfiniteQuery(t) {
1324
+ return this.fetchInfiniteQuery(t).then(v).catch(v);
1325
+ }
1326
+ ensureInfiniteQueryData(t) {
1327
+ return t.behavior = V(t.pages), this.ensureQueryData(t);
1328
+ }
1329
+ resumePausedMutations() {
1330
+ return D.isOnline() ? this.#e.resumePausedMutations() : Promise.resolve();
1331
+ }
1332
+ getQueryCache() {
1333
+ return this.#t;
1334
+ }
1335
+ getMutationCache() {
1336
+ return this.#e;
1337
+ }
1338
+ getDefaultOptions() {
1339
+ return this.#s;
1340
+ }
1341
+ setDefaultOptions(t) {
1342
+ this.#s = t;
1343
+ }
1344
+ setQueryDefaults(t, e) {
1345
+ this.#r.set(P(t), {
1346
+ queryKey: t,
1347
+ defaultOptions: e
1348
+ });
1349
+ }
1350
+ getQueryDefaults(t) {
1351
+ const e = [...this.#r.values()], s = {};
1352
+ return e.forEach((i) => {
1353
+ F(t, i.queryKey) && Object.assign(s, i.defaultOptions);
1354
+ }), s;
1355
+ }
1356
+ setMutationDefaults(t, e) {
1357
+ this.#i.set(P(t), {
1358
+ mutationKey: t,
1359
+ defaultOptions: e
1360
+ });
1361
+ }
1362
+ getMutationDefaults(t) {
1363
+ const e = [...this.#i.values()], s = {};
1364
+ return e.forEach((i) => {
1365
+ F(t, i.mutationKey) && Object.assign(s, i.defaultOptions);
1366
+ }), s;
1367
+ }
1368
+ defaultQueryOptions(t) {
1369
+ if (t._defaulted)
1370
+ return t;
1371
+ const e = {
1372
+ ...this.#s.queries,
1373
+ ...this.getQueryDefaults(t.queryKey),
1374
+ ...t,
1375
+ _defaulted: !0
1376
+ };
1377
+ return e.queryHash || (e.queryHash = j(
1378
+ e.queryKey,
1379
+ e
1380
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === I && (e.enabled = !1), e;
1381
+ }
1382
+ defaultMutationOptions(t) {
1383
+ return t?._defaulted ? t : {
1384
+ ...this.#s.mutations,
1385
+ ...t?.mutationKey && this.getMutationDefaults(t.mutationKey),
1386
+ ...t,
1387
+ _defaulted: !0
1388
+ };
1389
+ }
1390
+ clear() {
1391
+ this.#t.clear(), this.#e.clear();
1392
+ }
1393
+ };
1394
+ class C {
1395
+ constructor(e = {}) {
1396
+ this.availableDatasets = [], this.apiUrl = e.apiUrl || "https://api.luzmo.com", this.apiVersion = e.apiVersion || "0.1.0", this.authKey = e.authKey || "", this.authToken = e.authToken || "", this.queryClient = new Pt({
1397
+ defaultOptions: {
1398
+ queries: {
1399
+ staleTime: e.staleTime || 300 * 1e3,
1400
+ // 5 minutes
1401
+ gcTime: e.gcTime || 600 * 1e3,
1402
+ // 10 minutes
1403
+ retry: e.retry || 3,
1404
+ retryDelay: e.retryDelay || ((s) => Math.min(1e3 * 2 ** s, 3e4))
1405
+ }
1406
+ }
1407
+ }), this.initNetworkListeners();
1408
+ }
1409
+ /**
1410
+ * Set API configuration
1411
+ * @param config - API configuration
1412
+ */
1413
+ configure(e = {}) {
1414
+ if (e.apiVersion && (this.apiVersion = e.apiVersion), e.apiUrl && (this.apiUrl = e.apiUrl), e.authKey && (this.authKey = e.authKey), e.authToken && (this.authToken = e.authToken), e.staleTime || e.gcTime || e.retry) {
1415
+ const s = {};
1416
+ e.staleTime && (s.staleTime = e.staleTime), e.gcTime && (s.gcTime = e.gcTime), e.retry && (s.retry = e.retry), this.queryClient.setDefaultOptions({
1417
+ queries: {
1418
+ ...this.queryClient.getDefaultOptions().queries,
1419
+ ...s
1420
+ }
1421
+ });
1422
+ }
1423
+ }
1424
+ /**
1425
+ * Initialize network status listeners
1426
+ */
1427
+ initNetworkListeners() {
1428
+ typeof window < "u" && window.addEventListener("online", () => {
1429
+ console.warn("Network connection restored, refreshing data..."), this.refreshAll();
1430
+ });
1431
+ }
1432
+ /**
1433
+ * Get API headers
1434
+ * @param additionalHeaders - Additional headers to include
1435
+ * @returns Headers for API requests
1436
+ */
1437
+ getHeaders(e = {}) {
1438
+ return {
1439
+ "Content-Type": "application/json",
1440
+ ...e
1441
+ };
1442
+ }
1443
+ /**
1444
+ * Make API request with advanced error handling
1445
+ * Default method is POST and supports an optional JSON body
1446
+ * @param endpoint - API endpoint
1447
+ * @param jsonBody - Optional JSON body to send with request
1448
+ * @param options - Additional fetch options
1449
+ * @returns API response
1450
+ * @throws {Error} If API request fails
1451
+ */
1452
+ async fetchApi(e, s, i = {}) {
1453
+ const n = `${this.apiUrl}/${this.apiVersion}${e}`, o = {
1454
+ method: i.method || "POST",
1455
+ headers: this.getHeaders(i.headers),
1456
+ mode: "cors",
1457
+ ...i
1458
+ };
1459
+ s !== void 0 && (s.key = this.authKey, s.token = this.authToken, o.body = JSON.stringify(s));
1460
+ try {
1461
+ const r = await fetch(n, o);
1462
+ if (!r.ok) {
1463
+ const u = await r.json().catch(() => null);
1464
+ throw r.status === 401 || r.status === 403 ? new Error(
1465
+ "Authentication failed. Please check your API token."
1466
+ ) : r.status === 404 ? new Error(`Resource not found: ${e}`) : r.status === 429 ? new Error("Rate limit exceeded. Please try again later.") : new Error(
1467
+ u?.message || `API request failed with status ${r.status}`
1468
+ );
1469
+ }
1470
+ return await r.json();
1471
+ } catch (r) {
1472
+ throw console.error(`API request to ${e} failed:`, r), r instanceof Error && (r.endpoint = e, r.timestamp = (/* @__PURE__ */ new Date()).toISOString()), r;
1473
+ }
1474
+ }
1475
+ /**
1476
+ * Fetch all available datasets with pagination support
1477
+ * @param options - Pagination options
1478
+ * @returns Paginated list of datasets
1479
+ */
1480
+ async fetchAllDatasets(e = {}) {
1481
+ const s = e.offset || 0, i = e.limit || 50, n = ["datasets", s, i];
1482
+ return await this.queryClient.fetchQuery({
1483
+ queryKey: n,
1484
+ queryFn: async () => {
1485
+ const a = {
1486
+ action: "get",
1487
+ version: this.apiVersion,
1488
+ find: {
1489
+ where: {
1490
+ type: "dataset"
1491
+ },
1492
+ limit: i,
1493
+ offset: s
1494
+ }
1495
+ }, o = await this.fetchApi("/securable", a);
1496
+ return {
1497
+ data: o?.rows ?? [],
1498
+ pagination: {
1499
+ offset: s,
1500
+ limit: i,
1501
+ total: o?.count ?? 0,
1502
+ pages: Math.ceil((o?.count ?? 0) / i)
1503
+ }
1504
+ };
1505
+ }
1506
+ });
1507
+ }
1508
+ /**
1509
+ * Search datasets by name or description
1510
+ * @param query - Search query
1511
+ * @returns List of matching datasets
1512
+ */
1513
+ async searchDatasets(e, s) {
1514
+ if (!e)
1515
+ return { data: [] };
1516
+ const i = ["datasets", "search", e, s];
1517
+ return await this.queryClient.fetchQuery({
1518
+ queryKey: i,
1519
+ queryFn: async () => {
1520
+ const n = {
1521
+ action: "get",
1522
+ version: this.apiVersion,
1523
+ find: {
1524
+ where: {
1525
+ type: "dataset"
1526
+ }
1527
+ }
1528
+ };
1529
+ e?.length > 0 && (n.find.search = {
1530
+ match_types: ["name"],
1531
+ keyphrase: e
1532
+ }), s?.offset && (n.find.offset = s?.offset), s?.limit && (n.find.limit = s?.limit);
1533
+ const a = await this.fetchApi("/securable", n), o = {
1534
+ data: a?.rows ?? []
1535
+ };
1536
+ return s?.limit && (o.pagination = {
1537
+ offset: s?.offset ?? 0,
1538
+ limit: s?.limit,
1539
+ total: a?.count ?? 0,
1540
+ pages: Math.ceil((a?.count ?? 0) / s?.limit)
1541
+ }), o;
1542
+ }
1543
+ });
1544
+ }
1545
+ /**
1546
+ * Fetches multiple datasets with their associated columns and formulas metadata
1547
+ * @param datasetIds - Array of dataset IDs to fetch
1548
+ * @returns Promise that resolves to an array of DatasetMetadata objects containing:
1549
+ * - Basic dataset info (id, name, description)
1550
+ * - Columns with metadata including joins, hierarchy levels, and currency info
1551
+ * - Formulas with their expressions and currency associations
1552
+ * @throws Error if datasetIds is empty or null
1553
+ */
1554
+ async fetchDatasetsWithColumnsAndFormulas(e) {
1555
+ if (!e || e.length === 0)
1556
+ throw new Error("At least one dataset ID is required");
1557
+ const s = ["datasets", e, this.authKey, this.authToken];
1558
+ return await this.queryClient.fetchQuery({
1559
+ queryKey: s,
1560
+ queryFn: async () => {
1561
+ const i = {
1562
+ action: "get",
1563
+ version: this.apiVersion,
1564
+ find: {
1565
+ where: {
1566
+ type: "dataset",
1567
+ id: {
1568
+ in: e
1569
+ }
1570
+ },
1571
+ attributes: ["name", "id", "description"],
1572
+ include: [
1573
+ {
1574
+ model: "Column",
1575
+ attributes: [
1576
+ "id",
1577
+ "name",
1578
+ "description",
1579
+ "type",
1580
+ "subtype",
1581
+ "format",
1582
+ "hidden",
1583
+ "lowestLevel",
1584
+ "expression",
1585
+ "duration_levels",
1586
+ "duration_format"
1587
+ ],
1588
+ separate: !0,
1589
+ order: [["order", "asc"]],
1590
+ include: [
1591
+ {
1592
+ model: "Column",
1593
+ attributes: [
1594
+ "id",
1595
+ "securable_id",
1596
+ "hierarchy_enabled",
1597
+ "currency_id"
1598
+ ],
1599
+ as: "Joins"
1600
+ },
1601
+ {
1602
+ model: "HierarchyLevel",
1603
+ attributes: ["id", "level", "name"],
1604
+ as: "HierarchyLevels"
1605
+ },
1606
+ {
1607
+ model: "Currency",
1608
+ attributes: ["id", "name", "symbol"],
1609
+ as: "Currency"
1610
+ }
1611
+ ]
1612
+ },
1613
+ {
1614
+ model: "Formula",
1615
+ attributes: [
1616
+ "id",
1617
+ "name",
1618
+ "description",
1619
+ "type",
1620
+ "subtype",
1621
+ "format",
1622
+ "hidden",
1623
+ "lowestLevel",
1624
+ "expression",
1625
+ "duration_levels",
1626
+ "duration_format"
1627
+ ],
1628
+ include: [
1629
+ {
1630
+ model: "Currency",
1631
+ attributes: ["id", "name", "symbol"],
1632
+ as: "Currency"
1633
+ }
1634
+ ]
1635
+ }
1636
+ ]
1637
+ }
1638
+ };
1639
+ return (await this.fetchApi("/securable", i))?.rows ?? [];
1640
+ }
1641
+ });
1642
+ }
1643
+ /**
1644
+ * Fetch data from a dataset with filtering
1645
+ * @param datasetId - Dataset ID
1646
+ * @param queryParams - Query parameters (filters, sort, etc.)
1647
+ * @returns Dataset data
1648
+ */
1649
+ async fetchData(e) {
1650
+ if (!e) throw new Error("Query is required");
1651
+ const s = ["data", e];
1652
+ return await this.queryClient.fetchQuery({
1653
+ queryKey: s,
1654
+ queryFn: async () => {
1655
+ const i = {
1656
+ action: "get",
1657
+ version: this.apiVersion,
1658
+ find: {
1659
+ queries: [e]
1660
+ }
1661
+ }, n = await this.fetchApi("/data", i);
1662
+ return {
1663
+ data: n?.data || [],
1664
+ performance: n?.performance || {}
1665
+ };
1666
+ }
1667
+ });
1668
+ }
1669
+ /**
1670
+ * Refresh all queries
1671
+ */
1672
+ refreshAll() {
1673
+ this.queryClient.refetchQueries();
1674
+ }
1675
+ /**
1676
+ * Invalidate cached data for a dataset
1677
+ * @param datasetId - Dataset ID (optional)
1678
+ */
1679
+ invalidateDatasetData(e) {
1680
+ e ? (this.queryClient.invalidateQueries({ queryKey: ["dataset", e] }), this.queryClient.invalidateQueries({ queryKey: ["columns", e] })) : this.queryClient.invalidateQueries({ queryKey: ["datasets"] });
1681
+ }
1682
+ /**
1683
+ * Invalidate all cached data
1684
+ */
1685
+ invalidateAll() {
1686
+ this.queryClient.clear();
1687
+ }
1688
+ /**
1689
+ * Create a singleton instance
1690
+ * @param config - API configuration
1691
+ * @returns Singleton instance
1692
+ */
1693
+ static getInstance(e = {}) {
1694
+ return C.instance ? Object.keys(e).length > 0 && C.instance.configure(e) : C.instance = new C(e), C.instance;
1695
+ }
1696
+ async fetchDatasetsRecursive(e) {
1697
+ if (!e || e.length === 0)
1698
+ throw new Error("At least one dataset ID is required");
1699
+ const s = [...new Set(e)], i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), a = (o) => {
1700
+ o && !i.has(o) && !s.includes(o) && s.push(o);
1701
+ };
1702
+ for (; s.length > 0; ) {
1703
+ const o = [];
1704
+ for (; s.length > 0 && o.length < 50; ) {
1705
+ const r = s.shift();
1706
+ i.has(r) || o.push(r);
1707
+ }
1708
+ if (o.length !== 0)
1709
+ try {
1710
+ (await this.fetchDatasetsWithColumnsAndFormulas(o)).forEach((u) => {
1711
+ const h = this.postProcessDatasetMetadata(u);
1712
+ i.add(h.id), this.queryClient.setQueryData(["dataset", h.id], h), (h.outgoingJoins ?? []).map((l) => l.securable_id).filter((l) => !!l && l !== h.id).forEach((l) => {
1713
+ a(l);
1714
+ }), n.set(h.id, h), this.availableDatasets.some((l) => l.id === h.id) || this.availableDatasets.push({
1715
+ id: h.id,
1716
+ name: h.name,
1717
+ columns: h.columns
1718
+ });
1719
+ });
1720
+ } catch (r) {
1721
+ console.error("Error fetching datasets recursively:", r);
1722
+ }
1723
+ }
1724
+ return [...n.values()];
1725
+ }
1726
+ postProcessDatasetMetadata(e) {
1727
+ const s = [], i = (e.columns ?? []).map((n) => {
1728
+ const a = n.joins ?? (Array.isArray(n.joins) ? n.joins : []);
1729
+ Array.isArray(a) && a.length > 0 && s.push(...a);
1730
+ const { joins: o, ...r } = n;
1731
+ return {
1732
+ ...r,
1733
+ joins: a
1734
+ };
1735
+ });
1736
+ return {
1737
+ ...e,
1738
+ columns: i,
1739
+ formulas: e.formulas ?? [],
1740
+ outgoingJoins: s,
1741
+ dateLoaded: /* @__PURE__ */ new Date()
1742
+ };
1743
+ }
1744
+ getAvailableDatasets() {
1745
+ return this.availableDatasets;
1746
+ }
1747
+ getLinkedDatasetsIds(e) {
1748
+ const s = this.queryClient.getQueryData(["dataset", e]);
1749
+ return s ? (s.outgoingJoins ?? []).map((i) => i.securable_id).filter((i) => !!i && i !== e) : [];
1750
+ }
1751
+ }
1752
+ const Ft = C.getInstance();
1753
+ export {
1754
+ Ft as d
1755
+ };