@luzmo/analytics-components-kit 1.0.4-beta.4 → 1.0.5-beta.1
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.
- package/README.md +11 -5
- package/components/ad-hoc-slot-content-BxpvfmjT.js +29 -0
- package/components/ad-hoc-slot-content-DJUmB7pS.cjs +20 -0
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.js +1 -1
- package/components/ai-chat-BBc330Jm.js +3832 -0
- package/components/ai-chat-DLDSaC7W.cjs +300 -0
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/ai-interaction-textarea-BCH5_GBO.cjs +68 -0
- package/components/ai-interaction-textarea-DzHetSBZ.js +299 -0
- package/components/area-chart-options.config-CJYI-zcZ.cjs +20 -0
- package/components/area-chart-options.config-CxJWxcD9.js +146 -0
- package/components/area-chart-positioning.config-CjeYLy6C.js +55 -0
- package/components/area-chart-positioning.config-DVrykBho.cjs +20 -0
- package/components/area-chart-slots.config-B56LJaky.cjs +20 -0
- package/components/area-chart-slots.config-C22ZF9l0.js +55 -0
- package/components/bar-chart-options.config-BAatAyhW.js +220 -0
- package/components/bar-chart-options.config-D2a-U6kG.cjs +20 -0
- package/components/bar-chart-positioning.config-DpF15KcV.cjs +20 -0
- package/components/bar-chart-positioning.config-e-SAdpBe.js +59 -0
- package/components/bar-chart-slots.config-BbgFihbK.js +50 -0
- package/components/bar-chart-slots.config-CkOVmYcA.cjs +20 -0
- package/components/base-DSXeP3BL.cjs +20 -0
- package/components/base-a89RuUMb.js +249 -0
- package/components/base-store-D0jbv0bE.js +160 -0
- package/components/base-store-ab2wBsBE.cjs +20 -0
- package/components/box-plot-options.config-BuX2wNhp.js +296 -0
- package/components/box-plot-options.config-Di28EvZb.cjs +20 -0
- package/components/box-plot-positioning.config-Bq2INEtG.js +48 -0
- package/components/box-plot-positioning.config-DbwtHJ4q.cjs +20 -0
- package/components/box-plot-slots.config-DL-tTTn9.cjs +20 -0
- package/components/box-plot-slots.config-OeublT6p.js +40 -0
- package/components/bubble-chart-options.config-C_XQOHgH.js +115 -0
- package/components/bubble-chart-options.config-CnpBrIo6.cjs +20 -0
- package/components/bubble-chart-positioning.config--EBfDgdN.cjs +20 -0
- package/components/bubble-chart-positioning.config-DFnW4mJ9.js +55 -0
- package/components/bubble-chart-slots.config-Bdy20Xqs.js +47 -0
- package/components/bubble-chart-slots.config-smlOOwcK.cjs +20 -0
- package/components/bullet-chart-options.config-6nATAuC3.cjs +20 -0
- package/components/bullet-chart-options.config-h5BFyszP.js +75 -0
- package/components/bullet-chart-positioning.config-CZ46z07k.cjs +20 -0
- package/components/bullet-chart-positioning.config-DS2OmjBY.js +56 -0
- package/components/bullet-chart-slots.config-BaTbWYvU.cjs +20 -0
- package/components/bullet-chart-slots.config-Cqj3i1qo.js +46 -0
- package/components/choropleth-map-options.config-CmtZtBAC.cjs +20 -0
- package/components/choropleth-map-options.config-YCo77O3q.js +348 -0
- package/components/choropleth-map-positioning.config-Clm5IUT6.cjs +20 -0
- package/components/choropleth-map-positioning.config-DgANsGq1.js +55 -0
- package/components/choropleth-map-slots.config-ClMcW8wV.cjs +20 -0
- package/components/choropleth-map-slots.config-D4vxtdtH.js +53 -0
- package/components/circle-pack-chart-options.config-BA_G1sQ8.cjs +20 -0
- package/components/circle-pack-chart-options.config-C0cEtjgC.js +54 -0
- package/components/circle-pack-chart-positioning.config-2H1CrfH_.js +48 -0
- package/components/circle-pack-chart-positioning.config-qF0qGcEO.cjs +20 -0
- package/components/circle-pack-chart-slots.config-Dks8K3uQ.js +38 -0
- package/components/circle-pack-chart-slots.config-IH2KV7z1.cjs +20 -0
- package/components/circular-gauge-options.config-BtP-YDIr.cjs +20 -0
- package/components/circular-gauge-options.config-Cdnk-Sp0.js +188 -0
- package/components/circular-gauge-positioning.config-CMttD_BW.cjs +20 -0
- package/components/circular-gauge-positioning.config-CusKP9Tq.js +48 -0
- package/components/circular-gauge-slots.config-B6ajddW-.cjs +20 -0
- package/components/circular-gauge-slots.config-Wf4sHmk6.js +39 -0
- package/components/color-CXw2IfjN.js +3812 -0
- package/components/color-range-utils-u4ziqRRA.js +63 -0
- package/components/column-chart-options.config-DoZLlIRM.js +219 -0
- package/components/column-chart-options.config-eJ1Cexxe.cjs +20 -0
- package/components/column-chart-positioning.config-ColoutIT.cjs +20 -0
- package/components/column-chart-positioning.config-rRwPVTbj.js +55 -0
- package/components/column-chart-slots.config-BY6y_rvE.cjs +20 -0
- package/components/column-chart-slots.config-BhVqSbKw.js +50 -0
- package/components/combination-chart-options.config-C3kZ2fpK.cjs +20 -0
- package/components/combination-chart-options.config-D7ZXfn61.js +87 -0
- package/components/combination-chart-positioning.config-DAVrKW-6.cjs +20 -0
- package/components/combination-chart-positioning.config-uLf1RJQr.js +48 -0
- package/components/combination-chart-slots.config-CK8YBgUl.js +43 -0
- package/components/combination-chart-slots.config-Ciza_y3a.cjs +20 -0
- package/components/conditional-number-options.config-BwSMI5Ax.js +205 -0
- package/components/conditional-number-options.config-CadHLi0m.cjs +20 -0
- package/components/conditional-number-positioning.config-DZjwZfsH.js +48 -0
- package/components/conditional-number-positioning.config-Nwsh-WyG.cjs +20 -0
- package/components/conditional-number-slots.config-CWX6OuUa.cjs +20 -0
- package/components/conditional-number-slots.config-xSNaYD4u.js +39 -0
- package/components/convert-data-field-to-slot-content-BQkSy_8B.cjs +20 -0
- package/components/data-broker-BH5WDG0j.cjs +20 -0
- package/components/data-broker-CVDImE1j.js +1674 -0
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -1
- package/components/data-field-CFX9bhKN.js +121 -0
- package/components/data-field-bRmOqmAe.cjs +54 -0
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -1
- package/components/data-field-level-Cc6yEETi.js +246 -0
- package/components/data-field-level-Dnl27sxs.cjs +55 -0
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/data-field-panel-BDExLalA.cjs +87 -0
- package/components/data-field-panel-DcqVOzMO.js +385 -0
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +1 -1
- package/components/data-fields-select-B5aGtDYe.cjs +41 -0
- package/components/data-fields-select-CfAfiV-K.js +262 -0
- package/components/dataset-icon/index.js +1 -1
- package/components/dataset-icon-BXEgg_8O.js +125 -0
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +1 -1
- package/components/dataset-selector-list-WT2ZHjQ4.cjs +75 -0
- package/components/dataset-selector-list-bAFTW1Hr.js +313 -0
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +1 -1
- package/components/dataset-selector-row-CXrEKQrA.js +273 -0
- package/components/dataset-selector-row-CwkXH93E.cjs +79 -0
- package/components/date-comparison-filter-options.config--clPxHFt.cjs +20 -0
- package/components/date-comparison-filter-options.config-DCCm5Adt.js +126 -0
- package/components/date-comparison-filter-slots.config-KO9B0lfS.cjs +20 -0
- package/components/date-comparison-filter-slots.config-s7FcuKia.js +33 -0
- package/components/date-filter-options.config-BdNFe-Ds.cjs +20 -0
- package/components/date-filter-options.config-DBwcMXzp.js +118 -0
- package/components/date-filter-slots.config-BrQoD-EF.cjs +20 -0
- package/components/date-filter-slots.config-pbd3rG9z.js +37 -0
- package/components/de-DqwsqE-U.js +478 -0
- package/components/de-tUSOg_BJ.cjs +20 -0
- package/components/decorate-CaYbmmmm.js +28 -0
- package/components/display-settings/display-settings.d.ts +21 -2
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-DrcpHnKo.cjs +140 -0
- package/components/display-settings-Ec_smyRC.js +313 -0
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -1
- package/components/display-settings-binning-COpQPUin.js +110 -0
- package/components/display-settings-binning-XXJdJeGU.cjs +56 -0
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -1
- package/components/display-settings-datetime-DhSW10ln.cjs +217 -0
- package/components/display-settings-datetime-qj86dnHh.js +413 -0
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +1 -1
- package/components/display-settings-grand-totals-D6IDs0U1.js +89 -0
- package/components/display-settings-grand-totals-DTF0sqA1.cjs +44 -0
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +1 -1
- package/components/display-settings-numeric-Dt34JHyR.cjs +190 -0
- package/components/display-settings-numeric-Dy2EMcKa.js +479 -0
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +1 -1
- package/components/display-settings-period-over-period-B-ULI6yW.cjs +229 -0
- package/components/display-settings-period-over-period-BMzBnywY.js +433 -0
- package/components/donut-chart-options.config-Buas8fzJ.js +207 -0
- package/components/donut-chart-options.config-K-HkE7sL.cjs +20 -0
- package/components/donut-chart-positioning.config-BnmePhBH.cjs +20 -0
- package/components/donut-chart-positioning.config-CnZRc3e8.js +48 -0
- package/components/donut-chart-slots.config-CZWRHxZe.js +39 -0
- package/components/donut-chart-slots.config-RxPnpO6M.cjs +20 -0
- package/components/dropdown-filter-options.config-B-Vvy0Nq.cjs +20 -0
- package/components/dropdown-filter-options.config-gv1y1OkC.js +153 -0
- package/components/dropdown-filter-slots.config-BBZChIHC.cjs +20 -0
- package/components/dropdown-filter-slots.config-aP5hvp2K.js +38 -0
- package/components/en-B34alchz.cjs +20 -0
- package/components/en-GB-B3xz84vF.cjs +20 -0
- package/components/en-US-B34alchz.cjs +20 -0
- package/components/es-C-5Yqnck.js +478 -0
- package/components/es-Czecz2xB.cjs +20 -0
- package/components/evolution-number-options.config-B1IomzV1.js +228 -0
- package/components/evolution-number-options.config-Bt1FZqqQ.cjs +20 -0
- package/components/evolution-number-positioning.config-CKgGLWTm.cjs +20 -0
- package/components/evolution-number-positioning.config-DiKxJqRO.js +48 -0
- package/components/evolution-number-slots.config-CYxdcD-x.cjs +20 -0
- package/components/evolution-number-slots.config-eOQDWZyb.js +37 -0
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-expression-picker-DMZ4sgJ6.js +425 -0
- package/components/filter-expression-picker-Dq0X2lo3.cjs +38 -0
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -1
- package/components/filter-item-BEe-Y6l0.js +242 -0
- package/components/filter-item-BnxKP0Zg.cjs +58 -0
- package/components/filter-parameter-picker/index.js +1 -1
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/filter-value-picker-BxaX9BML.cjs +60 -0
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +1 -1
- package/components/filter-value-picker-datetime-BryAsOYH.cjs +42 -0
- package/components/filter-value-picker-datetime-DtZDr9fY.js +139 -0
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/filter-value-picker-hierarchy-BSKoZJ0F.cjs +47 -0
- package/components/filter-value-picker-hierarchy-D9BcuttQ.js +232 -0
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -1
- package/components/filter-value-picker-numeric-B2EcfNUR.cjs +48 -0
- package/components/filter-value-picker-numeric-CoU9l9wS.js +219 -0
- package/components/filter-value-picker-r1zs2IHx.js +151 -0
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/filters-C9DVFS6T.cjs +150 -0
- package/components/filters-DVTYmlI1.js +400 -0
- package/components/formatter-8m-wrIM-.cjs +20 -0
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/formula--lwYaW2w.cjs +45 -0
- package/components/formula-Ekyv6mpo.js +138 -0
- package/components/formula-codemirror-BZuBN5sE.cjs +215 -0
- package/components/formula-codemirror-DgTmL2Id.js +11973 -0
- package/components/formula-display-store-BunPLkc0.cjs +20 -0
- package/components/formula-display-store-ezef6EvF.js +1090 -0
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +3 -3
- package/components/formula-editor-CjVohoJB.cjs +218 -0
- package/components/formula-editor-DRpm9ej7.js +666 -0
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -1
- package/components/formula-field-DcgWLGBD.cjs +20 -0
- package/components/formula-field-TwMnyN0t.js +40 -0
- package/components/formula-input-base-D6QdnUOa.cjs +49 -0
- package/components/formula-input-base-Dxk5euNb.js +236 -0
- package/components/fr-BvgQLvx5.js +478 -0
- package/components/fr-CQyhQN6j.cjs +20 -0
- package/components/funnel-chart-options.config-BAIgb6x9.cjs +20 -0
- package/components/funnel-chart-options.config-DAv3185m.js +187 -0
- package/components/funnel-chart-positioning.config-DaHDyj7V.cjs +20 -0
- package/components/funnel-chart-positioning.config-DysRV01G.js +48 -0
- package/components/funnel-chart-slots.config-BsNj6Mbb.js +43 -0
- package/components/funnel-chart-slots.config-CSI5mdma.cjs +20 -0
- package/components/get-css-variable-B1BZoBcs.cjs +20 -0
- package/components/get-css-variable-COcan5CX.js +63 -0
- package/components/get-dataset-name-D4smY8ms.cjs +20 -0
- package/components/get-dataset-name-D_ZiWu64.js +27 -0
- package/components/groupings-Bzp2EA65.js +52 -0
- package/components/groupings-Wfp8piEu.cjs +20 -0
- package/components/heat-map-options.config-Ckw8voNV.js +224 -0
- package/components/heat-map-options.config-Ct-93RVQ.cjs +20 -0
- package/components/heat-map-positioning.config-C6CqosaH.js +48 -0
- package/components/heat-map-positioning.config-hFwq08ML.cjs +20 -0
- package/components/heat-map-slots.config-BFK5TF9k.js +37 -0
- package/components/heat-map-slots.config-D0mwjImu.cjs +20 -0
- package/components/heat-table-options.config-7IS5wa9l.cjs +20 -0
- package/components/heat-table-options.config-PpOf4o94.js +372 -0
- package/components/heat-table-positioning.config-B2RuWLH5.js +55 -0
- package/components/heat-table-positioning.config-MJ_ox9iT.cjs +20 -0
- package/components/heat-table-slots.config-3q2hG4nF.js +49 -0
- package/components/heat-table-slots.config-CH6Q9203.cjs +20 -0
- package/components/hexbin-map-options.config-CUAv6zuD.cjs +20 -0
- package/components/hexbin-map-options.config-D88DHYrl.js +276 -0
- package/components/hexbin-map-positioning.config-Dua5Z8M2.cjs +20 -0
- package/components/hexbin-map-positioning.config-IiGTpp68.js +48 -0
- package/components/hexbin-map-slots.config-BdkQVzI7.cjs +20 -0
- package/components/hexbin-map-slots.config-BfbHCCUe.js +37 -0
- package/components/image-options.config-ByIPpr29.js +153 -0
- package/components/image-options.config-DXqA7sAa.cjs +20 -0
- package/components/image-slots.config-B4MFjNWt.js +24 -0
- package/components/image-slots.config-DprzKxj3.cjs +20 -0
- package/components/index.cjs +1 -1
- package/components/index.js +55 -55
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.js +1 -1
- package/components/interactive-viz-item-O2zj8Ix3.cjs +247 -0
- package/components/interactive-viz-item-lBrlvX4F.js +693 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/item-grid-CmuMl0eC.cjs +113 -0
- package/components/item-grid-Cqi995vx.js +4559 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/item-option-CQw6Xsi2.cjs +252 -0
- package/components/item-option-Cg3zRKlU.js +969 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -1
- package/components/item-option-action-button-group-C1TU-ng7.js +118 -0
- package/components/item-option-action-button-group-DBdpU9Ac.cjs +53 -0
- package/components/item-option-base-4mpxvTpE.js +123 -0
- package/components/item-option-base-BtYcXg-E.cjs +56 -0
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -1
- package/components/item-option-color-palette-picker-4so22U-2.cjs +40 -0
- package/components/item-option-color-palette-picker-BBnhEOQj.js +2041 -0
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -1
- package/components/item-option-color-picker-CTTEHFVR.js +87 -0
- package/components/item-option-color-picker-CUBaIdL-.cjs +34 -0
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -1
- package/components/item-option-color-range-BuLEgB7a.js +220 -0
- package/components/item-option-color-range-H4nV-HoV.cjs +98 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -1
- package/components/item-option-multi-language-field-CXQj3kSW.js +82 -0
- package/components/item-option-multi-language-field-d25tETIC.cjs +33 -0
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -1
- package/components/item-option-number-field-CEQEjnu8.js +102 -0
- package/components/item-option-number-field-waG1zcr8.cjs +38 -0
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/item-option-panel-Bh4d0Ueb.cjs +67 -0
- package/components/item-option-panel-CVjT-rr8.js +183 -0
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/item-option-picker-CiEMwzho.js +77 -0
- package/components/item-option-picker-YTJ6noOW.cjs +37 -0
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/item-option-position-picker-DExAtVBF.cjs +32 -0
- package/components/item-option-position-picker-DVsG8inN.js +117 -0
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -1
- package/components/item-option-positions-number-field-7F1_3pxp.js +164 -0
- package/components/item-option-positions-number-field-Ju4e_B6g.cjs +49 -0
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -1
- package/components/item-option-radio-button-group-6w11UJC-.cjs +37 -0
- package/components/item-option-radio-button-group-CHZKF_oZ.js +74 -0
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/item-option-slider-CQCvF7wI.js +81 -0
- package/components/item-option-slider-DdkgydGa.cjs +33 -0
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -1
- package/components/item-option-switch-68EoGXKU.js +69 -0
- package/components/item-option-switch-IP4wvB7i.cjs +30 -0
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -1
- package/components/item-option-text-field-0CCtgD5i.js +80 -0
- package/components/item-option-text-field-Be4frWhI.cjs +33 -0
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +45 -45
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -1
- package/components/item-slot-drop/item-slot-drop.d.ts +1 -0
- package/components/item-slot-drop-C7BJJcZz.cjs +91 -0
- package/components/item-slot-drop-PlCmap_s.js +331 -0
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -1
- package/components/item-slot-drop-panel-BevGCcMh.js +355 -0
- package/components/item-slot-drop-panel-hs0gFwb-.cjs +57 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/item-slot-picker/item-slot-picker.d.ts +3 -0
- package/components/item-slot-picker-BzXlX-Zd.js +505 -0
- package/components/item-slot-picker-dmoR1ZyZ.cjs +174 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -1
- package/components/item-slot-picker-panel-B2TtJUIs.cjs +81 -0
- package/components/item-slot-picker-panel-DnvwcLGy.js +448 -0
- package/components/item-slots-configs.cjs +1 -1
- package/components/item-slots-configs.js +45 -45
- package/components/line-chart-options.config-DKQ1k4lg.cjs +20 -0
- package/components/line-chart-options.config-DMjvCs-4.js +168 -0
- package/components/line-chart-positioning.config-CYqzjNzS.cjs +20 -0
- package/components/line-chart-positioning.config-DAs0y-O6.js +55 -0
- package/components/line-chart-slots.config-Cjp4btvG.cjs +20 -0
- package/components/line-chart-slots.config-CrQEwa4W.js +55 -0
- package/components/load-data-fields-for-datasets-BVGaku2J.cjs +20 -0
- package/components/load-data-fields-for-datasets-DeXLqWt4.js +42 -0
- package/components/localized-mixin-BNAt_iYb.cjs +20 -0
- package/components/localized-mixin-GXZQgVAD.js +45 -0
- package/components/marker-map-options.config-C52a3boH.js +117 -0
- package/components/marker-map-options.config-DBPPcGN4.cjs +20 -0
- package/components/marker-map-positioning.config-BQ-kNUJI.js +48 -0
- package/components/marker-map-positioning.config-C5h5ydGa.cjs +20 -0
- package/components/marker-map-slots.config-BOQ8AwRv.cjs +20 -0
- package/components/marker-map-slots.config-eJAxjIaQ.js +37 -0
- package/components/nl-BwK5iXtO.cjs +20 -0
- package/components/nl-D-Wa6DnD.js +478 -0
- package/components/ohlc-chart-options.config-38qB2VKc.js +65 -0
- package/components/ohlc-chart-options.config-D9h-VLdq.cjs +20 -0
- package/components/ohlc-chart-positioning.config-BQyRY4rj.js +78 -0
- package/components/ohlc-chart-positioning.config-fqniDSHf.cjs +20 -0
- package/components/ohlc-chart-slots.config-CUBUexI-.cjs +20 -0
- package/components/ohlc-chart-slots.config-SOs4oD-Q.js +68 -0
- package/components/parallel-coordinates-plot-options.config-DfZ80jLX.js +42 -0
- package/components/parallel-coordinates-plot-options.config-ovgY0A7j.cjs +20 -0
- package/components/parallel-coordinates-plot-positioning.config-Bhyk-q40.cjs +20 -0
- package/components/parallel-coordinates-plot-positioning.config-DMUrvTKC.js +48 -0
- package/components/parallel-coordinates-plot-slots.config-BXZ-NmbH.cjs +20 -0
- package/components/parallel-coordinates-plot-slots.config-DgsHiCqT.js +46 -0
- package/components/pivot-table-options.config-5udtucDD.js +245 -0
- package/components/pivot-table-options.config-BxKo1DCU.cjs +20 -0
- package/components/pivot-table-positioning.config-CRPJ6cp9.cjs +20 -0
- package/components/pivot-table-positioning.config-kgOD7qg4.js +55 -0
- package/components/pivot-table-slots.config-CRL6EW5R.js +55 -0
- package/components/pivot-table-slots.config-VxbOGtmB.cjs +20 -0
- package/components/pragmatic-element-adapter-U3ppsQDe.cjs +24 -0
- package/components/pragmatic-element-adapter-e5LbH_lv.js +1252 -0
- package/components/pyramid-chart-options.config-iP2MzTeb.js +240 -0
- package/components/pyramid-chart-options.config-lioHQSoq.cjs +20 -0
- package/components/pyramid-chart-positioning.config-B3g4J0Fc.cjs +20 -0
- package/components/pyramid-chart-positioning.config-DzmnUNOa.js +55 -0
- package/components/pyramid-chart-slots.config-CN_Q2YsP.cjs +20 -0
- package/components/pyramid-chart-slots.config-DM3lYlDg.js +50 -0
- package/components/radar-chart-options.config-DhnoFEzo.cjs +20 -0
- package/components/radar-chart-options.config-aR5sQal-.js +130 -0
- package/components/radar-chart-positioning.config-DeMZx8WU.cjs +20 -0
- package/components/radar-chart-positioning.config-DtCHigcZ.js +55 -0
- package/components/radar-chart-slots.config-BISYnTom.cjs +20 -0
- package/components/radar-chart-slots.config-msW05r4n.js +53 -0
- package/components/regular-table-options.config-Bk6CBPgj.cjs +20 -0
- package/components/regular-table-options.config-kbARlJ1E.js +148 -0
- package/components/regular-table-slots.config-BU6Ff96U.cjs +20 -0
- package/components/regular-table-slots.config-DAwLOM5T.js +35 -0
- package/components/route-map-options.config-CAi93e7I.cjs +20 -0
- package/components/route-map-options.config-DCBAfq09.js +326 -0
- package/components/route-map-positioning.config-CNNkOriH.js +66 -0
- package/components/route-map-positioning.config-GRnTnxOT.cjs +20 -0
- package/components/route-map-slots.config-DNiRtoRC.js +59 -0
- package/components/route-map-slots.config-Dznp0DT3.cjs +20 -0
- package/components/sankey-diagram-options.config-CKjVnYnF.js +126 -0
- package/components/sankey-diagram-options.config-D7ZrZV0g.cjs +20 -0
- package/components/sankey-diagram-positioning.config-B4dTAI_t.cjs +20 -0
- package/components/sankey-diagram-positioning.config-DZzxWrlG.js +66 -0
- package/components/sankey-diagram-slots.config-CVD2P6RJ.js +61 -0
- package/components/sankey-diagram-slots.config-TKCUvHOD.cjs +20 -0
- package/components/scatter-plot-options.config--AfAxaGf.js +302 -0
- package/components/scatter-plot-options.config-DXqKb34r.cjs +20 -0
- package/components/scatter-plot-positioning.config-7DccAqx9.js +77 -0
- package/components/scatter-plot-positioning.config-CUxiLfKj.cjs +20 -0
- package/components/scatter-plot-slots.config-CPsk9FUg.cjs +20 -0
- package/components/scatter-plot-slots.config-D57rd66g.js +74 -0
- package/components/search-filter-options.config-DQwMOiXm.js +103 -0
- package/components/search-filter-options.config-DojMfRR_.cjs +20 -0
- package/components/search-filter-slots.config-AhwsTdYC.cjs +20 -0
- package/components/search-filter-slots.config-DQybwP4H.js +39 -0
- package/components/set-locale-BCnD4yp_.cjs +20 -0
- package/components/set-locale-CamOWu7o.js +43 -0
- package/components/slicer-filter-options.config-BhLn4U1W.cjs +20 -0
- package/components/slicer-filter-options.config-DVE33GEz.js +226 -0
- package/components/slicer-filter-positioning.config-DUivNE2P.cjs +20 -0
- package/components/slicer-filter-positioning.config-aOkoNRyY.js +48 -0
- package/components/slicer-filter-slots.config-Bcz9RsdR.js +44 -0
- package/components/slicer-filter-slots.config-zV15NWWS.cjs +20 -0
- package/components/slider-filter-options.config-B8am9mmE.cjs +20 -0
- package/components/slider-filter-options.config-BwaAvOvt.js +72 -0
- package/components/slider-filter-slots.config-Bc8Qk7fb.js +43 -0
- package/components/slider-filter-slots.config-D9Hra0zE.cjs +20 -0
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -1
- package/components/slot-menu/slot-menu.d.ts +7 -2
- package/components/slot-menu-Bgoo0gWv.cjs +71 -0
- package/components/slot-menu-Cb8piPji.js +422 -0
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/slot-menu-list/slot-menu-list.d.ts +7 -2
- package/components/slot-menu-list-Cy6tegSf.cjs +44 -0
- package/components/slot-menu-list-VuVIRNtr.js +346 -0
- package/components/slot-role-classification-Bvt3bI01.cjs +20 -0
- package/components/slot-role-classification-CCzj4WgN.js +133 -0
- package/components/slots-config-P_GXW0tl.js +77 -0
- package/components/slots-config-YdyClHLc.cjs +20 -0
- package/components/speedometer-chart-options.config-D4-8n5pn.js +246 -0
- package/components/speedometer-chart-options.config-DEW_D9w1.cjs +20 -0
- package/components/speedometer-chart-positioning.config-Dj6XK0gq.js +48 -0
- package/components/speedometer-chart-positioning.config-DzCh70X-.cjs +20 -0
- package/components/speedometer-chart-slots.config-1BqQZ2vP.cjs +20 -0
- package/components/speedometer-chart-slots.config-B4zqf0f_.js +39 -0
- package/components/spike-map-options.config-CM46vw7B.js +413 -0
- package/components/spike-map-options.config-LPAyKMHe.cjs +20 -0
- package/components/spike-map-positioning.config-BG2pKkf7.js +55 -0
- package/components/spike-map-positioning.config-BQIg4Z0U.cjs +20 -0
- package/components/spike-map-slots.config-B7OehIoc.cjs +20 -0
- package/components/spike-map-slots.config-BeXzuzh0.js +47 -0
- package/components/strip-plot-options.config-BlneYJOy.js +53 -0
- package/components/strip-plot-options.config-vBd38UQs.cjs +20 -0
- package/components/strip-plot-positioning.config-D3ZNgtC4.cjs +20 -0
- package/components/strip-plot-positioning.config-HZCVc6kX.js +48 -0
- package/components/strip-plot-slots.config-BGQIQtMK.js +38 -0
- package/components/strip-plot-slots.config-CAU0z3q4.cjs +20 -0
- package/components/sunburst-chart-options.config-8xopRyBB.js +160 -0
- package/components/sunburst-chart-options.config-CUFOuT2J.cjs +20 -0
- package/components/sunburst-chart-positioning.config-0O9eMweg.js +48 -0
- package/components/sunburst-chart-positioning.config-B-hCz3bI.cjs +20 -0
- package/components/sunburst-chart-slots.config-BCNUNkd9.cjs +20 -0
- package/components/sunburst-chart-slots.config-BhKeTqTo.js +38 -0
- package/components/symbol-map-options.config-CR07hvK0.cjs +20 -0
- package/components/symbol-map-options.config-nJAvVQIh.js +157 -0
- package/components/symbol-map-positioning.config-Dod98HkQ.js +55 -0
- package/components/symbol-map-positioning.config-aHnkaWU6.cjs +20 -0
- package/components/symbol-map-slots.config-D9E-oBE4.js +53 -0
- package/components/symbol-map-slots.config-Dz_tor5P.cjs +20 -0
- package/components/text-options.config-DCF3IVzO.js +67 -0
- package/components/text-options.config-JI2D64hs.cjs +20 -0
- package/components/text-slots.config-0A6csMfd.cjs +20 -0
- package/components/text-slots.config-C60nJ0OX.js +24 -0
- package/components/treemap-chart-options.config-RFQTphEG.js +184 -0
- package/components/treemap-chart-options.config-p21eSXKG.cjs +20 -0
- package/components/treemap-chart-positioning.config-XB1_FmX-.js +55 -0
- package/components/treemap-chart-positioning.config-qhPL49um.cjs +20 -0
- package/components/treemap-chart-slots.config-BJqqnUEF.cjs +20 -0
- package/components/treemap-chart-slots.config-CZRP7PZH.js +47 -0
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils/store.cjs +1 -1
- package/components/utils/store.js +2 -2
- package/components/utils-B1BzV2xl.cjs +20 -0
- package/components/utils-BMOxXnnX.js +240 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +3 -3
- package/components/v4-BK7K-jy_.js +49 -0
- package/components/validate-CJkVJaL1.cjs +20 -0
- package/components/validate-J3P0rm_n.js +28 -0
- package/components/venn-diagram-options.config-EmRhf40r.cjs +20 -0
- package/components/venn-diagram-options.config-uCJ5dei5.js +24 -0
- package/components/venn-diagram-positioning.config-Bh1ypVKP.js +55 -0
- package/components/venn-diagram-positioning.config-CimHfhlV.cjs +20 -0
- package/components/venn-diagram-slots.config-DOljH_uI.js +47 -0
- package/components/venn-diagram-slots.config-MpkJTf5q.cjs +20 -0
- package/components/video-options.config-Dh_lU4c1.cjs +20 -0
- package/components/video-options.config-DkLrX1gP.js +127 -0
- package/components/video-slots.config-Bmh6mcUv.cjs +20 -0
- package/components/video-slots.config-CqMIkttE.js +24 -0
- package/components/viz-item-menu/index.cjs +1 -1
- package/components/viz-item-menu/index.js +1 -1
- package/components/viz-item-menu-CTPd7QMx.cjs +55 -0
- package/components/viz-item-menu-sOvrO3Ku.js +170 -0
- package/components/wordcloud-chart-options.config-C2ZILp7a.js +90 -0
- package/components/wordcloud-chart-options.config-mx2CbmrI.cjs +20 -0
- package/components/wordcloud-chart-positioning.config-BR_g8Now.cjs +20 -0
- package/components/wordcloud-chart-positioning.config-CmakCQG0.js +55 -0
- package/components/wordcloud-chart-slots.config-B8s8B47F.js +45 -0
- package/components/wordcloud-chart-slots.config-C303nwAz.cjs +20 -0
- package/custom-elements.json +142 -5
- package/package.json +3 -3
- package/react/utils/formula/config/tests/build-datasets.test.d.ts +1 -0
- package/react/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
- package/react/utils/slot-content/render-calculation-label.d.ts +7 -0
- package/react/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +1 -0
- package/react/utils/slot-state/slot-store.d.ts +2 -2
- package/react/utils/store/index.d.ts +5 -5
- package/react/utils/store/store-registry.d.ts +1 -1
- package/types/slot.types.d.ts +10 -1
- package/utils/formula/config/tests/build-datasets.test.d.ts +1 -0
- package/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
- package/utils/slot-content/render-calculation-label.d.ts +7 -0
- package/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +1 -0
- package/utils/slot-state/slot-store.d.ts +2 -2
- package/utils/store/index.d.ts +5 -5
- package/utils/store/store-registry.d.ts +1 -1
- package/components/ai-chat-CpK99nb7.cjs +0 -300
- package/components/ai-chat-e2lg3FLg.js +0 -3835
- package/components/ai-interaction-textarea-CSrEsHXV.cjs +0 -68
- package/components/ai-interaction-textarea-cAXXLnoj.js +0 -299
- package/components/area-chart-options.config-Cf1VrUNv.cjs +0 -20
- package/components/area-chart-options.config-DdYBA1_Q.js +0 -146
- package/components/area-chart-positioning.config-CZgo9lkr.cjs +0 -20
- package/components/area-chart-positioning.config-DAEbeAVX.js +0 -55
- package/components/area-chart-slots.config-BOhwdLnr.cjs +0 -20
- package/components/area-chart-slots.config-Cmdkui4v.js +0 -55
- package/components/bar-chart-options.config-BF7Q15FL.cjs +0 -20
- package/components/bar-chart-options.config-Cx3n0tCr.js +0 -220
- package/components/bar-chart-positioning.config-71sM-GEA.js +0 -59
- package/components/bar-chart-positioning.config-9_GWwUur.cjs +0 -20
- package/components/bar-chart-slots.config-BWvrLYv5.js +0 -50
- package/components/bar-chart-slots.config-DMWjAd5a.cjs +0 -20
- package/components/base-DbEAseAh.cjs +0 -20
- package/components/base-store-DHC2m2Os.cjs +0 -20
- package/components/base-store-DmDe0dTU.js +0 -160
- package/components/base-vk9LuivN.js +0 -249
- package/components/box-plot-options.config-BkD5CYGz.cjs +0 -20
- package/components/box-plot-options.config-DB9iCCZg.js +0 -296
- package/components/box-plot-positioning.config-BxIFcn-c.cjs +0 -20
- package/components/box-plot-positioning.config-DIck_I13.js +0 -48
- package/components/box-plot-slots.config-5B_pTjPJ.cjs +0 -20
- package/components/box-plot-slots.config-BknEys-m.js +0 -40
- package/components/bubble-chart-options.config-4f9FUNhc.cjs +0 -20
- package/components/bubble-chart-options.config-D8o_9z0b.js +0 -115
- package/components/bubble-chart-positioning.config-BJi-Te33.js +0 -55
- package/components/bubble-chart-positioning.config-Cf7K70G6.cjs +0 -20
- package/components/bubble-chart-slots.config-Djb-py0h.js +0 -47
- package/components/bubble-chart-slots.config-VHKuntJk.cjs +0 -20
- package/components/bullet-chart-options.config-CmC75LQ8.js +0 -75
- package/components/bullet-chart-options.config-DDygYBiy.cjs +0 -20
- package/components/bullet-chart-positioning.config-3yE6MOJU.cjs +0 -20
- package/components/bullet-chart-positioning.config-ByVG8aFe.js +0 -56
- package/components/bullet-chart-slots.config-BECcf-yZ.js +0 -46
- package/components/bullet-chart-slots.config-CZfTgKZ4.cjs +0 -20
- package/components/choropleth-map-options.config-5W6nNlL7.cjs +0 -20
- package/components/choropleth-map-options.config-Bt-vXkKW.js +0 -348
- package/components/choropleth-map-positioning.config-BmUOKuYh.js +0 -55
- package/components/choropleth-map-positioning.config-QpuHLCDR.cjs +0 -20
- package/components/choropleth-map-slots.config-CZKWF1qV.cjs +0 -20
- package/components/choropleth-map-slots.config-DVrgJYSA.js +0 -53
- package/components/circle-pack-chart-options.config-CD8MWMTw.cjs +0 -20
- package/components/circle-pack-chart-options.config-CLA-ur8J.js +0 -54
- package/components/circle-pack-chart-positioning.config-EN3LKHeo.cjs +0 -20
- package/components/circle-pack-chart-positioning.config-K_yHBCSG.js +0 -48
- package/components/circle-pack-chart-slots.config-BG6Gh03S.js +0 -38
- package/components/circle-pack-chart-slots.config-GL7T5_o4.cjs +0 -20
- package/components/circular-gauge-options.config-BFBmfsPn.js +0 -188
- package/components/circular-gauge-options.config-D9gcbX57.cjs +0 -20
- package/components/circular-gauge-positioning.config-AH32vSIN.js +0 -48
- package/components/circular-gauge-positioning.config-CurZIsZj.cjs +0 -20
- package/components/circular-gauge-slots.config-BSzOAb8B.js +0 -39
- package/components/circular-gauge-slots.config-DUHabt3G.cjs +0 -20
- package/components/color-BWnYpOu7.js +0 -3812
- package/components/color-range-utils-CwwtLDX_.js +0 -63
- package/components/column-chart-options.config-CiIw23Yo.cjs +0 -20
- package/components/column-chart-options.config-V7v9PtQA.js +0 -219
- package/components/column-chart-positioning.config-DS8sLc1p.js +0 -55
- package/components/column-chart-positioning.config-Dn7Ri3op.cjs +0 -20
- package/components/column-chart-slots.config-5BjkTrbt.js +0 -50
- package/components/column-chart-slots.config-CM5aytbj.cjs +0 -20
- package/components/combination-chart-options.config-CgSqqLLE.js +0 -87
- package/components/combination-chart-options.config-DaTYSfnr.cjs +0 -20
- package/components/combination-chart-positioning.config-RNhQd78t.cjs +0 -20
- package/components/combination-chart-positioning.config-u9poMkSd.js +0 -48
- package/components/combination-chart-slots.config-BwUOXFCR.cjs +0 -20
- package/components/combination-chart-slots.config-DgM_T-9r.js +0 -43
- package/components/conditional-number-options.config-3_vXSC0j.js +0 -205
- package/components/conditional-number-options.config-BPzCxo2q.cjs +0 -20
- package/components/conditional-number-positioning.config-Cq4uJ35g.cjs +0 -20
- package/components/conditional-number-positioning.config-Dnq3OP76.js +0 -48
- package/components/conditional-number-slots.config-B7maHIaG.cjs +0 -20
- package/components/conditional-number-slots.config-CzVPP4me.js +0 -39
- package/components/convert-data-field-to-slot-content-DLzkk6dT.cjs +0 -20
- package/components/data-broker-Bdv5V8Yp.js +0 -1680
- package/components/data-broker-DWEXs6-2.cjs +0 -20
- package/components/data-field-CGY-TeOZ.js +0 -121
- package/components/data-field-CXK_vezu.cjs +0 -54
- package/components/data-field-level-BsJ3eRQt.js +0 -247
- package/components/data-field-level-CxF3DZmD.cjs +0 -55
- package/components/data-field-panel-Brzkhc5r.cjs +0 -87
- package/components/data-field-panel-CNiGw9_F.js +0 -385
- package/components/data-fields-select-BcMFFFJV.js +0 -262
- package/components/data-fields-select-D-nSjOep.cjs +0 -41
- package/components/dataset-icon-CWT5Ju8w.js +0 -125
- package/components/dataset-selector-list-2Kz1oNFa.cjs +0 -75
- package/components/dataset-selector-list-CvjSPfPj.js +0 -313
- package/components/dataset-selector-row-Beo9owAy.js +0 -273
- package/components/dataset-selector-row-DOhPbfDh.cjs +0 -79
- package/components/date-comparison-filter-options.config-4yHPEJSU.cjs +0 -20
- package/components/date-comparison-filter-options.config-CsDlmT6L.js +0 -126
- package/components/date-comparison-filter-slots.config-EEgNP09x.js +0 -33
- package/components/date-comparison-filter-slots.config-oABOLs3D.cjs +0 -20
- package/components/date-filter-options.config-AFAngO_i.cjs +0 -20
- package/components/date-filter-options.config-b8EHOjR1.js +0 -118
- package/components/date-filter-slots.config-Cuzz0RjE.cjs +0 -20
- package/components/date-filter-slots.config-PJ_h3Aj7.js +0 -37
- package/components/de-BY1wWZE8.cjs +0 -20
- package/components/de-D-xQoqdB.js +0 -473
- package/components/decorate-DyMgX_Uh.js +0 -28
- package/components/display-settings-BNoRfE1e.js +0 -272
- package/components/display-settings-JuegpHpn.cjs +0 -120
- package/components/display-settings-binning-D4fXWXY_.js +0 -110
- package/components/display-settings-binning-DFA-s8JY.cjs +0 -56
- package/components/display-settings-datetime-CcZ-aQjs.js +0 -413
- package/components/display-settings-datetime-DjfBfyzM.cjs +0 -217
- package/components/display-settings-grand-totals-CUlIPreM.js +0 -89
- package/components/display-settings-grand-totals-lf_RFqaR.cjs +0 -44
- package/components/display-settings-numeric-C707pX1_.cjs +0 -190
- package/components/display-settings-numeric-VVEUpoAy.js +0 -479
- package/components/display-settings-period-over-period-02Elu2Rn.js +0 -433
- package/components/display-settings-period-over-period-Be_A5whA.cjs +0 -229
- package/components/donut-chart-options.config-D8Bvo6Cc.cjs +0 -20
- package/components/donut-chart-options.config-N0MWtn-o.js +0 -207
- package/components/donut-chart-positioning.config-ByXtDyY9.cjs +0 -20
- package/components/donut-chart-positioning.config-CH5pTYpi.js +0 -48
- package/components/donut-chart-slots.config-Bi08z-XB.cjs +0 -20
- package/components/donut-chart-slots.config-dQrT0g_x.js +0 -39
- package/components/dropdown-filter-options.config-BRzYD0KE.cjs +0 -20
- package/components/dropdown-filter-options.config-CziqJFPz.js +0 -153
- package/components/dropdown-filter-slots.config-CQo3-kIo.js +0 -38
- package/components/dropdown-filter-slots.config-CR-Ko6q_.cjs +0 -20
- package/components/en-GB-uxY5qmIM.cjs +0 -20
- package/components/en-US-q_Ruzags.cjs +0 -20
- package/components/en-q_Ruzags.cjs +0 -20
- package/components/es-BIaD4kOL.cjs +0 -20
- package/components/es-CLnBAiLu.js +0 -473
- package/components/evolution-number-options.config-BfYN1Qgk.js +0 -228
- package/components/evolution-number-options.config-CkqNYgWn.cjs +0 -20
- package/components/evolution-number-positioning.config-B2_CNZP0.js +0 -48
- package/components/evolution-number-positioning.config-IFgvO_iZ.cjs +0 -20
- package/components/evolution-number-slots.config-CBS0b0Yk.js +0 -37
- package/components/evolution-number-slots.config-CikuQYgm.cjs +0 -20
- package/components/filter-expression-picker-0eNf_L9I.cjs +0 -38
- package/components/filter-expression-picker-C0FJhbHk.js +0 -425
- package/components/filter-item-C0AXDA_F.js +0 -242
- package/components/filter-item-C5O2G3Um.cjs +0 -58
- package/components/filter-value-picker-BOL1zvCR.cjs +0 -60
- package/components/filter-value-picker-DZORmKwM.js +0 -151
- package/components/filter-value-picker-datetime-0gRfWBzr.js +0 -139
- package/components/filter-value-picker-datetime-dCo1_pma.cjs +0 -42
- package/components/filter-value-picker-hierarchy-D8n6gV78.cjs +0 -47
- package/components/filter-value-picker-hierarchy-Dt7VNcSd.js +0 -232
- package/components/filter-value-picker-numeric-Cr7ll53O.js +0 -219
- package/components/filter-value-picker-numeric-DBw1TZtm.cjs +0 -48
- package/components/filters-B3zHSR73.js +0 -400
- package/components/filters-DIDatBfn.cjs +0 -150
- package/components/formatter-BeXmurVe.cjs +0 -20
- package/components/formula-CPrZC9BC.cjs +0 -45
- package/components/formula-codemirror-DycN-ivp.js +0 -12018
- package/components/formula-codemirror-uXTVVacE.cjs +0 -215
- package/components/formula-display-store-B6dtlBPk.js +0 -1086
- package/components/formula-display-store-CCxSWPEB.cjs +0 -20
- package/components/formula-editor-BPMeTS5F.cjs +0 -218
- package/components/formula-editor-BqHWUVdh.js +0 -666
- package/components/formula-field-Bfy1qysp.js +0 -40
- package/components/formula-field-CAtaDtSP.cjs +0 -20
- package/components/formula-ibsKYWEh.js +0 -138
- package/components/formula-input-base-Cs71sKh1.js +0 -236
- package/components/formula-input-base-_-8MncrA.cjs +0 -49
- package/components/fr-CHG2Tcby.cjs +0 -20
- package/components/fr-DIwbOnwC.js +0 -473
- package/components/funnel-chart-options.config-BVmrhzna.cjs +0 -20
- package/components/funnel-chart-options.config-D8fqrJvi.js +0 -187
- package/components/funnel-chart-positioning.config-BUMX4e-7.js +0 -48
- package/components/funnel-chart-positioning.config-CY042Tro.cjs +0 -20
- package/components/funnel-chart-slots.config-B8zC6Q6_.cjs +0 -20
- package/components/funnel-chart-slots.config-CeGu8stc.js +0 -43
- package/components/get-css-variable-B8sJUuig.cjs +0 -20
- package/components/get-css-variable-r1spgqX0.js +0 -63
- package/components/get-dataset-name-Dwuh7DWE.cjs +0 -20
- package/components/get-dataset-name-SfDNjsuR.js +0 -27
- package/components/groupings-DuX9SnZa.cjs +0 -20
- package/components/groupings-OLk5e7JO.js +0 -52
- package/components/heat-map-options.config-5zjlVaa0.js +0 -224
- package/components/heat-map-options.config-xPdOcXDk.cjs +0 -20
- package/components/heat-map-positioning.config-C7W5YbvL.js +0 -48
- package/components/heat-map-positioning.config-CjaNs9QU.cjs +0 -20
- package/components/heat-map-slots.config-DBkkcvMN.js +0 -37
- package/components/heat-map-slots.config-Wp_oS8JQ.cjs +0 -20
- package/components/heat-table-options.config-Blcs4JjF.js +0 -372
- package/components/heat-table-options.config-DPbTFoRn.cjs +0 -20
- package/components/heat-table-positioning.config-B2ko43lN.cjs +0 -20
- package/components/heat-table-positioning.config-C6d8wmTk.js +0 -55
- package/components/heat-table-slots.config-BN7rtHZG.cjs +0 -20
- package/components/heat-table-slots.config-CJOXI-Sf.js +0 -49
- package/components/hexbin-map-options.config-CSFSqpMU.cjs +0 -20
- package/components/hexbin-map-options.config-D5o0k890.js +0 -276
- package/components/hexbin-map-positioning.config-B9Af5odq.js +0 -48
- package/components/hexbin-map-positioning.config-CaP2fsiE.cjs +0 -20
- package/components/hexbin-map-slots.config-CpJIfl6o.js +0 -37
- package/components/hexbin-map-slots.config-mx5zUTrA.cjs +0 -20
- package/components/image-options.config-C46UQpMq.js +0 -153
- package/components/image-options.config-DZ5q1D63.cjs +0 -20
- package/components/image-slots.config-DjaT4mUk.js +0 -24
- package/components/image-slots.config-ODQBVz5H.cjs +0 -20
- package/components/interactive-viz-item-CKRpHIwI.js +0 -693
- package/components/interactive-viz-item-D8btvzeg.cjs +0 -247
- package/components/item-grid-BEwohat_.js +0 -4559
- package/components/item-grid-CtW-2roU.cjs +0 -113
- package/components/item-option-CSc3jmeo.js +0 -919
- package/components/item-option-DkqkbwtF.cjs +0 -252
- package/components/item-option-action-button-group-BoZWUGPs.cjs +0 -53
- package/components/item-option-action-button-group-D_K-T_wB.js +0 -118
- package/components/item-option-base-Do3zK0fN.js +0 -123
- package/components/item-option-base-yH3-Snf-.cjs +0 -56
- package/components/item-option-color-palette-picker-B9Umcsw_.cjs +0 -40
- package/components/item-option-color-palette-picker-CTvaiVJ1.js +0 -2041
- package/components/item-option-color-picker-BLF9-2WR.js +0 -87
- package/components/item-option-color-picker-FIPCBMIC.cjs +0 -34
- package/components/item-option-color-range-BznRsx45.cjs +0 -98
- package/components/item-option-color-range-mvlBVdZK.js +0 -220
- package/components/item-option-multi-language-field-BMJdbHOd.js +0 -82
- package/components/item-option-multi-language-field-Rypasjvk.cjs +0 -33
- package/components/item-option-number-field-Bu4IYyNe.js +0 -102
- package/components/item-option-number-field-sNlrQ5mG.cjs +0 -38
- package/components/item-option-panel-Bmm9IeZR.js +0 -183
- package/components/item-option-panel-DEPAMt-A.cjs +0 -67
- package/components/item-option-picker-6-VRIzb5.js +0 -77
- package/components/item-option-picker-DXZce4bl.cjs +0 -37
- package/components/item-option-position-picker-DBy46OLT.js +0 -117
- package/components/item-option-position-picker-DW12bwRL.cjs +0 -32
- package/components/item-option-positions-number-field-BFW0c-PE.js +0 -164
- package/components/item-option-positions-number-field-HofP9ee6.cjs +0 -49
- package/components/item-option-radio-button-group-BN_a7dSl.cjs +0 -37
- package/components/item-option-radio-button-group-CpdXh9GA.js +0 -74
- package/components/item-option-slider-B-CM9FzR.cjs +0 -33
- package/components/item-option-slider-CRjRQP3Z.js +0 -81
- package/components/item-option-switch-CY6zMkI-.cjs +0 -30
- package/components/item-option-switch-Q-IaH1Xr.js +0 -69
- package/components/item-option-text-field-BzHaYPud.js +0 -80
- package/components/item-option-text-field-C2_1-zLs.cjs +0 -33
- package/components/item-slot-drop-CNX2TBXB.js +0 -324
- package/components/item-slot-drop-CR-dvLaD.cjs +0 -91
- package/components/item-slot-drop-panel-BaJoR9Zc.js +0 -355
- package/components/item-slot-drop-panel-DTvbJtNW.cjs +0 -57
- package/components/item-slot-picker-CnKeeXp5.cjs +0 -158
- package/components/item-slot-picker-panel-BMapBAxj.js +0 -448
- package/components/item-slot-picker-panel-Dw682RiT.cjs +0 -81
- package/components/item-slot-picker-tHRu_jaI.js +0 -474
- package/components/line-chart-options.config-BkK829A2.cjs +0 -20
- package/components/line-chart-options.config-KFAaQqB_.js +0 -168
- package/components/line-chart-positioning.config-Bwe9-1yw.js +0 -55
- package/components/line-chart-positioning.config-CfVRqaxT.cjs +0 -20
- package/components/line-chart-slots.config-D0jaC82U.js +0 -55
- package/components/line-chart-slots.config-vv66fcoE.cjs +0 -20
- package/components/load-data-fields-for-datasets-BNnr8x3m.js +0 -42
- package/components/load-data-fields-for-datasets-CW4Voiex.cjs +0 -20
- package/components/localized-mixin-BvQbkZEL.js +0 -45
- package/components/localized-mixin-DrK3QZNa.cjs +0 -20
- package/components/marker-map-options.config-BfPFVxpD.cjs +0 -20
- package/components/marker-map-options.config-D0RmFKKM.js +0 -117
- package/components/marker-map-positioning.config-DLXbw6Yd.cjs +0 -20
- package/components/marker-map-positioning.config-DLehY4Lv.js +0 -48
- package/components/marker-map-slots.config-DigZk7lN.cjs +0 -20
- package/components/marker-map-slots.config-DsMklO0v.js +0 -37
- package/components/nl-C_g1Le3t.js +0 -473
- package/components/nl-PxN5EqzT.cjs +0 -20
- package/components/ohlc-chart-options.config-BBdUKmJ9.js +0 -65
- package/components/ohlc-chart-options.config-BsBVP-Io.cjs +0 -20
- package/components/ohlc-chart-positioning.config-BGU-mDPW.cjs +0 -20
- package/components/ohlc-chart-positioning.config-Cz3zieDp.js +0 -78
- package/components/ohlc-chart-slots.config-BiQn5Kdg.js +0 -68
- package/components/ohlc-chart-slots.config-D3fzoQJH.cjs +0 -20
- package/components/parallel-coordinates-plot-options.config--6iJkURT.cjs +0 -20
- package/components/parallel-coordinates-plot-options.config-KJrOL0Sr.js +0 -42
- package/components/parallel-coordinates-plot-positioning.config-CXIMbncP.cjs +0 -20
- package/components/parallel-coordinates-plot-positioning.config-Cc8k6gqG.js +0 -48
- package/components/parallel-coordinates-plot-slots.config-B7QY714-.js +0 -46
- package/components/parallel-coordinates-plot-slots.config-s_tLqGA-.cjs +0 -20
- package/components/pivot-table-options.config-CKGnnXa_.cjs +0 -20
- package/components/pivot-table-options.config-DEmZ_EQi.js +0 -245
- package/components/pivot-table-positioning.config-BBd6xf8q.cjs +0 -20
- package/components/pivot-table-positioning.config-BK7wgw1A.js +0 -55
- package/components/pivot-table-slots.config-DpDaXLdw.js +0 -55
- package/components/pivot-table-slots.config-KlYXL90k.cjs +0 -20
- package/components/pragmatic-element-adapter-C_7HSvGV.js +0 -1252
- package/components/pragmatic-element-adapter-DPWYJiW9.cjs +0 -24
- package/components/pyramid-chart-options.config-8QtjhcJC.cjs +0 -20
- package/components/pyramid-chart-options.config-DiD3QFps.js +0 -240
- package/components/pyramid-chart-positioning.config-C7STytAm.cjs +0 -20
- package/components/pyramid-chart-positioning.config-CGjiKyPG.js +0 -55
- package/components/pyramid-chart-slots.config-BrKgartT.js +0 -50
- package/components/pyramid-chart-slots.config-CreUpxI2.cjs +0 -20
- package/components/radar-chart-options.config-COBM2L3R.js +0 -130
- package/components/radar-chart-options.config-DvW36_zk.cjs +0 -20
- package/components/radar-chart-positioning.config-6xWEPHjC.js +0 -55
- package/components/radar-chart-positioning.config-p0s42Zyt.cjs +0 -20
- package/components/radar-chart-slots.config-B3oIp-8w.cjs +0 -20
- package/components/radar-chart-slots.config-SivEBhuj.js +0 -53
- package/components/regular-table-options.config-B0WNqEjR.cjs +0 -20
- package/components/regular-table-options.config-B0zRcsWM.js +0 -148
- package/components/regular-table-slots.config-M2axBXl4.js +0 -35
- package/components/regular-table-slots.config-UwzWj6gg.cjs +0 -20
- package/components/route-map-options.config-CYNKz_Xm.cjs +0 -20
- package/components/route-map-options.config-CrMrDQ_l.js +0 -326
- package/components/route-map-positioning.config-B2qAh6WW.js +0 -66
- package/components/route-map-positioning.config-C8KmQ33c.cjs +0 -20
- package/components/route-map-slots.config-COCoP99E.js +0 -59
- package/components/route-map-slots.config-DfYT65BF.cjs +0 -20
- package/components/sankey-diagram-options.config-BYLiy1UX.js +0 -126
- package/components/sankey-diagram-options.config-D49IZ1y3.cjs +0 -20
- package/components/sankey-diagram-positioning.config-CBLQktr4.js +0 -66
- package/components/sankey-diagram-positioning.config-DAF803wR.cjs +0 -20
- package/components/sankey-diagram-slots.config-C-sqtrS-.js +0 -61
- package/components/sankey-diagram-slots.config-D-_u4w36.cjs +0 -20
- package/components/scatter-plot-options.config-BETVLevv.cjs +0 -20
- package/components/scatter-plot-options.config-BpUYcLt-.js +0 -302
- package/components/scatter-plot-positioning.config-0hj66nn4.cjs +0 -20
- package/components/scatter-plot-positioning.config-Be9hQ727.js +0 -77
- package/components/scatter-plot-slots.config-CrG6wQtV.cjs +0 -20
- package/components/scatter-plot-slots.config-Dg78lS25.js +0 -74
- package/components/search-filter-options.config-B-dGVPhS.cjs +0 -20
- package/components/search-filter-options.config-lGQ-biU5.js +0 -103
- package/components/search-filter-slots.config-BhDSDpNd.js +0 -39
- package/components/search-filter-slots.config-DP06ulJA.cjs +0 -20
- package/components/set-locale-DB1FMgtK.js +0 -43
- package/components/set-locale-DKCZkJVL.cjs +0 -20
- package/components/slicer-filter-options.config-7OXpRWtw.cjs +0 -20
- package/components/slicer-filter-options.config-B6rxZYcl.js +0 -226
- package/components/slicer-filter-positioning.config-BQoRGx8R.js +0 -48
- package/components/slicer-filter-positioning.config-CvcZ3qkf.cjs +0 -20
- package/components/slicer-filter-slots.config-CHKpdJvF.cjs +0 -20
- package/components/slicer-filter-slots.config-XtuZoiId.js +0 -44
- package/components/slider-filter-options.config-C7-5aoaC.js +0 -72
- package/components/slider-filter-options.config-CRdbX1IJ.cjs +0 -20
- package/components/slider-filter-slots.config-9R298H0t.cjs +0 -20
- package/components/slider-filter-slots.config-BYkIGVvh.js +0 -43
- package/components/slot-menu-CkiIhk9e.cjs +0 -64
- package/components/slot-menu-DZPe7qUA.js +0 -404
- package/components/slot-menu-list-BRsAe3-b.js +0 -326
- package/components/slot-menu-list-CCrkNqq8.cjs +0 -38
- package/components/slots-config-DMC15sjT.js +0 -77
- package/components/slots-config-DVH0lz6t.cjs +0 -20
- package/components/speedometer-chart-options.config-Bd3-G7S7.js +0 -246
- package/components/speedometer-chart-options.config-BsIu28S3.cjs +0 -20
- package/components/speedometer-chart-positioning.config-CAsBGyZ7.cjs +0 -20
- package/components/speedometer-chart-positioning.config-CsgmgREh.js +0 -48
- package/components/speedometer-chart-slots.config-CkeiXSCy.js +0 -39
- package/components/speedometer-chart-slots.config-S_hQm2MV.cjs +0 -20
- package/components/spike-map-options.config-B_2BXI_9.js +0 -413
- package/components/spike-map-options.config-aaiZyME6.cjs +0 -20
- package/components/spike-map-positioning.config-BS8MuRkQ.js +0 -55
- package/components/spike-map-positioning.config-D4isshlL.cjs +0 -20
- package/components/spike-map-slots.config-C44Vxsit.js +0 -47
- package/components/spike-map-slots.config-cKfaD6dQ.cjs +0 -20
- package/components/strip-plot-options.config-By62J2Jj.js +0 -53
- package/components/strip-plot-options.config-TB3rkoj2.cjs +0 -20
- package/components/strip-plot-positioning.config-CufC8vJi.js +0 -48
- package/components/strip-plot-positioning.config-NpwP9QGU.cjs +0 -20
- package/components/strip-plot-slots.config-DNYlrK_c.cjs +0 -20
- package/components/strip-plot-slots.config-xsNFXerT.js +0 -38
- package/components/sunburst-chart-options.config-Ckk_kY_s.cjs +0 -20
- package/components/sunburst-chart-options.config-DwQwkQxR.js +0 -160
- package/components/sunburst-chart-positioning.config-C5UCbZWE.cjs +0 -20
- package/components/sunburst-chart-positioning.config-D60TNhUU.js +0 -48
- package/components/sunburst-chart-slots.config-D6Z2_Kh_.js +0 -38
- package/components/sunburst-chart-slots.config-DkUUt5RF.cjs +0 -20
- package/components/symbol-map-options.config-56eoWz4w.cjs +0 -20
- package/components/symbol-map-options.config-uXEbOHWD.js +0 -157
- package/components/symbol-map-positioning.config-D1esOfIw.js +0 -55
- package/components/symbol-map-positioning.config-D__gPAF-.cjs +0 -20
- package/components/symbol-map-slots.config-CHTIkMw4.js +0 -53
- package/components/symbol-map-slots.config-DwNf547A.cjs +0 -20
- package/components/text-options.config-B5y7YAqT.js +0 -67
- package/components/text-options.config-BwBCG2yo.cjs +0 -20
- package/components/text-slots.config-CPghLc8b.cjs +0 -20
- package/components/text-slots.config-sFoowMc6.js +0 -24
- package/components/treemap-chart-options.config-BouAbrk0.js +0 -184
- package/components/treemap-chart-options.config-r6biULUj.cjs +0 -20
- package/components/treemap-chart-positioning.config-BZ1yMqy5.cjs +0 -20
- package/components/treemap-chart-positioning.config-DEnYiZKj.js +0 -55
- package/components/treemap-chart-slots.config-BjHBRWDJ.js +0 -47
- package/components/treemap-chart-slots.config-CS3ot6ZJ.cjs +0 -20
- package/components/utils-Bn8v7iuu.cjs +0 -20
- package/components/utils-CIxpLDLh.js +0 -352
- package/components/v4-DIjJgmR0.js +0 -49
- package/components/venn-diagram-options.config-BZWBYEhB.js +0 -24
- package/components/venn-diagram-options.config-BamlR1qo.cjs +0 -20
- package/components/venn-diagram-positioning.config-DMceiBb8.js +0 -55
- package/components/venn-diagram-positioning.config-DUvGRRSh.cjs +0 -20
- package/components/venn-diagram-slots.config-CM0HPIPD.js +0 -47
- package/components/venn-diagram-slots.config-DYTmU8v2.cjs +0 -20
- package/components/video-options.config-BhBpkaLJ.cjs +0 -20
- package/components/video-options.config-DWuy1OHa.js +0 -127
- package/components/video-slots.config-B_aDlTp6.js +0 -24
- package/components/video-slots.config-DMut7o7r.cjs +0 -20
- package/components/viz-item-menu-BisYrhhJ.js +0 -170
- package/components/viz-item-menu-DEpm1w7U.cjs +0 -55
- package/components/wordcloud-chart-options.config-D041tFDG.js +0 -90
- package/components/wordcloud-chart-options.config-DgH4JgN2.cjs +0 -20
- package/components/wordcloud-chart-positioning.config-CeP0_j_m.cjs +0 -20
- package/components/wordcloud-chart-positioning.config-tVRXTpdQ.js +0 -55
- package/components/wordcloud-chart-slots.config-Cy-Jgcaq.js +0 -45
- package/components/wordcloud-chart-slots.config-V29v2Fhr.cjs +0 -20
- /package/components/{rolldown-runtime-mLOUI7ql.cjs → chunk-mLOUI7ql.cjs} +0 -0
|
@@ -0,0 +1,1674 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 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
|
+
import { c as e, s as t } from "./type-check-CGREdneG.js";
|
|
21
|
+
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
22
|
+
var n = class {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
25
|
+
}
|
|
26
|
+
subscribe(e) {
|
|
27
|
+
return this.listeners.add(e), this.onSubscribe(), () => {
|
|
28
|
+
this.listeners.delete(e), this.onUnsubscribe();
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
hasListeners() {
|
|
32
|
+
return this.listeners.size > 0;
|
|
33
|
+
}
|
|
34
|
+
onSubscribe() {}
|
|
35
|
+
onUnsubscribe() {}
|
|
36
|
+
}, r = new class extends n {
|
|
37
|
+
#e;
|
|
38
|
+
#t;
|
|
39
|
+
#n;
|
|
40
|
+
constructor() {
|
|
41
|
+
super(), this.#n = (e) => {
|
|
42
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
43
|
+
let t = () => e();
|
|
44
|
+
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
45
|
+
window.removeEventListener("visibilitychange", t);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
onSubscribe() {
|
|
51
|
+
this.#t || this.setEventListener(this.#n);
|
|
52
|
+
}
|
|
53
|
+
onUnsubscribe() {
|
|
54
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
55
|
+
}
|
|
56
|
+
setEventListener(e) {
|
|
57
|
+
this.#n = e, this.#t?.(), this.#t = e((e) => {
|
|
58
|
+
typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
setFocused(e) {
|
|
62
|
+
this.#e !== e && (this.#e = e, this.onFocus());
|
|
63
|
+
}
|
|
64
|
+
onFocus() {
|
|
65
|
+
let e = this.isFocused();
|
|
66
|
+
this.listeners.forEach((t) => {
|
|
67
|
+
t(e);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
isFocused() {
|
|
71
|
+
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
72
|
+
}
|
|
73
|
+
}(), i = {
|
|
74
|
+
setTimeout: (e, t) => setTimeout(e, t),
|
|
75
|
+
clearTimeout: (e) => clearTimeout(e),
|
|
76
|
+
setInterval: (e, t) => setInterval(e, t),
|
|
77
|
+
clearInterval: (e) => clearInterval(e)
|
|
78
|
+
}, a = new class {
|
|
79
|
+
#e = i;
|
|
80
|
+
setTimeoutProvider(e) {
|
|
81
|
+
this.#e = e;
|
|
82
|
+
}
|
|
83
|
+
setTimeout(e, t) {
|
|
84
|
+
return this.#e.setTimeout(e, t);
|
|
85
|
+
}
|
|
86
|
+
clearTimeout(e) {
|
|
87
|
+
this.#e.clearTimeout(e);
|
|
88
|
+
}
|
|
89
|
+
setInterval(e, t) {
|
|
90
|
+
return this.#e.setInterval(e, t);
|
|
91
|
+
}
|
|
92
|
+
clearInterval(e) {
|
|
93
|
+
this.#e.clearInterval(e);
|
|
94
|
+
}
|
|
95
|
+
}();
|
|
96
|
+
function o(e) {
|
|
97
|
+
setTimeout(e, 0);
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
101
|
+
var s = typeof window > "u" || "Deno" in globalThis;
|
|
102
|
+
function c() {}
|
|
103
|
+
function l(e, t) {
|
|
104
|
+
return typeof e == "function" ? e(t) : e;
|
|
105
|
+
}
|
|
106
|
+
function u(e) {
|
|
107
|
+
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
108
|
+
}
|
|
109
|
+
function d(e, t) {
|
|
110
|
+
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
111
|
+
}
|
|
112
|
+
function f(e, t) {
|
|
113
|
+
return typeof e == "function" ? e(t) : e;
|
|
114
|
+
}
|
|
115
|
+
function p(e, t) {
|
|
116
|
+
return typeof e == "function" ? e(t) : e;
|
|
117
|
+
}
|
|
118
|
+
function m(e, t) {
|
|
119
|
+
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
120
|
+
if (o) {
|
|
121
|
+
if (r) {
|
|
122
|
+
if (t.queryHash !== g(o, t.options)) return !1;
|
|
123
|
+
} else if (!v(t.queryKey, o)) return !1;
|
|
124
|
+
}
|
|
125
|
+
if (n !== "all") {
|
|
126
|
+
let e = t.isActive();
|
|
127
|
+
if (n === "active" && !e || n === "inactive" && e) return !1;
|
|
128
|
+
}
|
|
129
|
+
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
130
|
+
}
|
|
131
|
+
function h(e, t) {
|
|
132
|
+
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
133
|
+
if (a) {
|
|
134
|
+
if (!t.options.mutationKey) return !1;
|
|
135
|
+
if (n) {
|
|
136
|
+
if (_(t.options.mutationKey) !== _(a)) return !1;
|
|
137
|
+
} else if (!v(t.options.mutationKey, a)) return !1;
|
|
138
|
+
}
|
|
139
|
+
return !(r && t.state.status !== r || i && !i(t));
|
|
140
|
+
}
|
|
141
|
+
function g(e, t) {
|
|
142
|
+
return (t?.queryKeyHashFn || _)(e);
|
|
143
|
+
}
|
|
144
|
+
function _(e) {
|
|
145
|
+
return JSON.stringify(e, (e, t) => S(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
146
|
+
}
|
|
147
|
+
function v(e, t) {
|
|
148
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => v(e[n], t[n])) : !1;
|
|
149
|
+
}
|
|
150
|
+
var y = Object.prototype.hasOwnProperty;
|
|
151
|
+
function b(e, t, n = 0) {
|
|
152
|
+
if (e === t) return e;
|
|
153
|
+
if (n > 500) return t;
|
|
154
|
+
let r = x(e) && x(t);
|
|
155
|
+
if (!r && !(S(e) && S(t))) return t;
|
|
156
|
+
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
157
|
+
for (let l = 0; l < o; l++) {
|
|
158
|
+
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
159
|
+
if (u === d) {
|
|
160
|
+
s[o] = u, (r ? l < i : y.call(e, o)) && c++;
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
164
|
+
s[o] = d;
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
let f = b(u, d, n + 1);
|
|
168
|
+
s[o] = f, f === u && c++;
|
|
169
|
+
}
|
|
170
|
+
return i === o && c === i ? e : s;
|
|
171
|
+
}
|
|
172
|
+
function x(e) {
|
|
173
|
+
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
174
|
+
}
|
|
175
|
+
function S(e) {
|
|
176
|
+
if (!C(e)) return !1;
|
|
177
|
+
let t = e.constructor;
|
|
178
|
+
if (t === void 0) return !0;
|
|
179
|
+
let n = t.prototype;
|
|
180
|
+
return !(!C(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
181
|
+
}
|
|
182
|
+
function C(e) {
|
|
183
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
184
|
+
}
|
|
185
|
+
function w(e) {
|
|
186
|
+
return new Promise((t) => {
|
|
187
|
+
a.setTimeout(t, e);
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function T(e, t, n) {
|
|
191
|
+
return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : b(e, t);
|
|
192
|
+
}
|
|
193
|
+
function E(e, t, n = 0) {
|
|
194
|
+
let r = [...e, t];
|
|
195
|
+
return n && r.length > n ? r.slice(1) : r;
|
|
196
|
+
}
|
|
197
|
+
function D(e, t, n = 0) {
|
|
198
|
+
let r = [t, ...e];
|
|
199
|
+
return n && r.length > n ? r.slice(0, -1) : r;
|
|
200
|
+
}
|
|
201
|
+
var O = /* @__PURE__ */ Symbol();
|
|
202
|
+
function k(e, t) {
|
|
203
|
+
return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === O ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
204
|
+
}
|
|
205
|
+
function A(e, t, n) {
|
|
206
|
+
let r = !1, i;
|
|
207
|
+
return Object.defineProperty(e, "signal", {
|
|
208
|
+
enumerable: !0,
|
|
209
|
+
get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
|
|
210
|
+
}), e;
|
|
211
|
+
}
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
214
|
+
var j = /* @__PURE__ */ (() => {
|
|
215
|
+
let e = () => s;
|
|
216
|
+
return {
|
|
217
|
+
isServer() {
|
|
218
|
+
return e();
|
|
219
|
+
},
|
|
220
|
+
setIsServer(t) {
|
|
221
|
+
e = t;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
})();
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
227
|
+
function M() {
|
|
228
|
+
let e, t, n = new Promise((n, r) => {
|
|
229
|
+
e = n, t = r;
|
|
230
|
+
});
|
|
231
|
+
n.status = "pending", n.catch(() => {});
|
|
232
|
+
function r(e) {
|
|
233
|
+
Object.assign(n, e), delete n.resolve, delete n.reject;
|
|
234
|
+
}
|
|
235
|
+
return n.resolve = (t) => {
|
|
236
|
+
r({
|
|
237
|
+
status: "fulfilled",
|
|
238
|
+
value: t
|
|
239
|
+
}), e(t);
|
|
240
|
+
}, n.reject = (e) => {
|
|
241
|
+
r({
|
|
242
|
+
status: "rejected",
|
|
243
|
+
reason: e
|
|
244
|
+
}), t(e);
|
|
245
|
+
}, n;
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
249
|
+
var N = o;
|
|
250
|
+
function P() {
|
|
251
|
+
let e = [], t = 0, n = (e) => {
|
|
252
|
+
e();
|
|
253
|
+
}, r = (e) => {
|
|
254
|
+
e();
|
|
255
|
+
}, i = N, a = (r) => {
|
|
256
|
+
t ? e.push(r) : i(() => {
|
|
257
|
+
n(r);
|
|
258
|
+
});
|
|
259
|
+
}, o = () => {
|
|
260
|
+
let t = e;
|
|
261
|
+
e = [], t.length && i(() => {
|
|
262
|
+
r(() => {
|
|
263
|
+
t.forEach((e) => {
|
|
264
|
+
n(e);
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
return {
|
|
270
|
+
batch: (e) => {
|
|
271
|
+
let n;
|
|
272
|
+
t++;
|
|
273
|
+
try {
|
|
274
|
+
n = e();
|
|
275
|
+
} finally {
|
|
276
|
+
t--, t || o();
|
|
277
|
+
}
|
|
278
|
+
return n;
|
|
279
|
+
},
|
|
280
|
+
batchCalls: (e) => (...t) => {
|
|
281
|
+
a(() => {
|
|
282
|
+
e(...t);
|
|
283
|
+
});
|
|
284
|
+
},
|
|
285
|
+
schedule: a,
|
|
286
|
+
setNotifyFunction: (e) => {
|
|
287
|
+
n = e;
|
|
288
|
+
},
|
|
289
|
+
setBatchNotifyFunction: (e) => {
|
|
290
|
+
r = e;
|
|
291
|
+
},
|
|
292
|
+
setScheduler: (e) => {
|
|
293
|
+
i = e;
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
var F = P(), I = new class extends n {
|
|
298
|
+
#e = !0;
|
|
299
|
+
#t;
|
|
300
|
+
#n;
|
|
301
|
+
constructor() {
|
|
302
|
+
super(), this.#n = (e) => {
|
|
303
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
304
|
+
let t = () => e(!0), n = () => e(!1);
|
|
305
|
+
return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
|
|
306
|
+
window.removeEventListener("online", t), window.removeEventListener("offline", n);
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
onSubscribe() {
|
|
312
|
+
this.#t || this.setEventListener(this.#n);
|
|
313
|
+
}
|
|
314
|
+
onUnsubscribe() {
|
|
315
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
316
|
+
}
|
|
317
|
+
setEventListener(e) {
|
|
318
|
+
this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
|
|
319
|
+
}
|
|
320
|
+
setOnline(e) {
|
|
321
|
+
this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
|
|
322
|
+
t(e);
|
|
323
|
+
}));
|
|
324
|
+
}
|
|
325
|
+
isOnline() {
|
|
326
|
+
return this.#e;
|
|
327
|
+
}
|
|
328
|
+
}();
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
331
|
+
function L(e) {
|
|
332
|
+
return Math.min(1e3 * 2 ** e, 3e4);
|
|
333
|
+
}
|
|
334
|
+
function R(e) {
|
|
335
|
+
return (e ?? "online") === "online" ? I.isOnline() : !0;
|
|
336
|
+
}
|
|
337
|
+
var z = class extends Error {
|
|
338
|
+
constructor(e) {
|
|
339
|
+
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
function B(e) {
|
|
343
|
+
let t = !1, n = 0, i, a = M(), o = () => a.status !== "pending", s = (t) => {
|
|
344
|
+
if (!o()) {
|
|
345
|
+
let n = new z(t);
|
|
346
|
+
p(n), e.onCancel?.(n);
|
|
347
|
+
}
|
|
348
|
+
}, c = () => {
|
|
349
|
+
t = !0;
|
|
350
|
+
}, l = () => {
|
|
351
|
+
t = !1;
|
|
352
|
+
}, u = () => r.isFocused() && (e.networkMode === "always" || I.isOnline()) && e.canRun(), d = () => R(e.networkMode) && e.canRun(), f = (e) => {
|
|
353
|
+
o() || (i?.(), a.resolve(e));
|
|
354
|
+
}, p = (e) => {
|
|
355
|
+
o() || (i?.(), a.reject(e));
|
|
356
|
+
}, m = () => new Promise((t) => {
|
|
357
|
+
i = (e) => {
|
|
358
|
+
(o() || u()) && t(e);
|
|
359
|
+
}, e.onPause?.();
|
|
360
|
+
}).then(() => {
|
|
361
|
+
i = void 0, o() || e.onContinue?.();
|
|
362
|
+
}), h = () => {
|
|
363
|
+
if (o()) return;
|
|
364
|
+
let r, i = n === 0 ? e.initialPromise : void 0;
|
|
365
|
+
try {
|
|
366
|
+
r = i ?? e.fn();
|
|
367
|
+
} catch (e) {
|
|
368
|
+
r = Promise.reject(e);
|
|
369
|
+
}
|
|
370
|
+
Promise.resolve(r).then(f).catch((r) => {
|
|
371
|
+
if (o()) return;
|
|
372
|
+
let i = e.retry ?? (j.isServer() ? 0 : 3), a = e.retryDelay ?? L, s = typeof a == "function" ? a(n, r) : a, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
373
|
+
if (t || !c) {
|
|
374
|
+
p(r);
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
n++, e.onFail?.(n, r), w(s).then(() => u() ? void 0 : m()).then(() => {
|
|
378
|
+
t ? p(r) : h();
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
return {
|
|
383
|
+
promise: a,
|
|
384
|
+
status: () => a.status,
|
|
385
|
+
cancel: s,
|
|
386
|
+
continue: () => (i?.(), a),
|
|
387
|
+
cancelRetry: c,
|
|
388
|
+
continueRetry: l,
|
|
389
|
+
canStart: d,
|
|
390
|
+
start: () => (d() ? h() : m().then(h), a)
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
395
|
+
var V = class {
|
|
396
|
+
#e;
|
|
397
|
+
destroy() {
|
|
398
|
+
this.clearGcTimeout();
|
|
399
|
+
}
|
|
400
|
+
scheduleGc() {
|
|
401
|
+
this.clearGcTimeout(), u(this.gcTime) && (this.#e = a.setTimeout(() => {
|
|
402
|
+
this.optionalRemove();
|
|
403
|
+
}, this.gcTime));
|
|
404
|
+
}
|
|
405
|
+
updateGcTime(e) {
|
|
406
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (j.isServer() ? Infinity : 300 * 1e3));
|
|
407
|
+
}
|
|
408
|
+
clearGcTimeout() {
|
|
409
|
+
this.#e !== void 0 && (a.clearTimeout(this.#e), this.#e = void 0);
|
|
410
|
+
}
|
|
411
|
+
}, H = class extends V {
|
|
412
|
+
#e;
|
|
413
|
+
#t;
|
|
414
|
+
#n;
|
|
415
|
+
#r;
|
|
416
|
+
#i;
|
|
417
|
+
#a;
|
|
418
|
+
#o;
|
|
419
|
+
constructor(e) {
|
|
420
|
+
super(), this.#o = !1, this.#a = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#r = e.client, this.#n = this.#r.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = G(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
|
|
421
|
+
}
|
|
422
|
+
get meta() {
|
|
423
|
+
return this.options.meta;
|
|
424
|
+
}
|
|
425
|
+
get promise() {
|
|
426
|
+
return this.#i?.promise;
|
|
427
|
+
}
|
|
428
|
+
setOptions(e) {
|
|
429
|
+
if (this.options = {
|
|
430
|
+
...this.#a,
|
|
431
|
+
...e
|
|
432
|
+
}, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
433
|
+
let e = G(this.options);
|
|
434
|
+
e.data !== void 0 && (this.setState(W(e.data, e.dataUpdatedAt)), this.#e = e);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
optionalRemove() {
|
|
438
|
+
!this.observers.length && this.state.fetchStatus === "idle" && this.#n.remove(this);
|
|
439
|
+
}
|
|
440
|
+
setData(e, t) {
|
|
441
|
+
let n = T(this.state.data, e, this.options);
|
|
442
|
+
return this.#c({
|
|
443
|
+
data: n,
|
|
444
|
+
type: "success",
|
|
445
|
+
dataUpdatedAt: t?.updatedAt,
|
|
446
|
+
manual: t?.manual
|
|
447
|
+
}), n;
|
|
448
|
+
}
|
|
449
|
+
setState(e, t) {
|
|
450
|
+
this.#c({
|
|
451
|
+
type: "setState",
|
|
452
|
+
state: e,
|
|
453
|
+
setStateOptions: t
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
cancel(e) {
|
|
457
|
+
let t = this.#i?.promise;
|
|
458
|
+
return this.#i?.cancel(e), t ? t.then(c).catch(c) : Promise.resolve();
|
|
459
|
+
}
|
|
460
|
+
destroy() {
|
|
461
|
+
super.destroy(), this.cancel({ silent: !0 });
|
|
462
|
+
}
|
|
463
|
+
get resetState() {
|
|
464
|
+
return this.#e;
|
|
465
|
+
}
|
|
466
|
+
reset() {
|
|
467
|
+
this.destroy(), this.setState(this.resetState);
|
|
468
|
+
}
|
|
469
|
+
isActive() {
|
|
470
|
+
return this.observers.some((e) => p(e.options.enabled, this) !== !1);
|
|
471
|
+
}
|
|
472
|
+
isDisabled() {
|
|
473
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === O || !this.isFetched();
|
|
474
|
+
}
|
|
475
|
+
isFetched() {
|
|
476
|
+
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
477
|
+
}
|
|
478
|
+
isStatic() {
|
|
479
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => f(e.options.staleTime, this) === "static") : !1;
|
|
480
|
+
}
|
|
481
|
+
isStale() {
|
|
482
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
483
|
+
}
|
|
484
|
+
isStaleByTime(e = 0) {
|
|
485
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !d(this.state.dataUpdatedAt, e);
|
|
486
|
+
}
|
|
487
|
+
onFocus() {
|
|
488
|
+
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
|
|
489
|
+
}
|
|
490
|
+
onOnline() {
|
|
491
|
+
this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
|
|
492
|
+
}
|
|
493
|
+
addObserver(e) {
|
|
494
|
+
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#n.notify({
|
|
495
|
+
type: "observerAdded",
|
|
496
|
+
query: this,
|
|
497
|
+
observer: e
|
|
498
|
+
}));
|
|
499
|
+
}
|
|
500
|
+
removeObserver(e) {
|
|
501
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#i && (this.#o || this.#s() ? this.#i.cancel({ revert: !0 }) : this.#i.cancelRetry()), this.scheduleGc()), this.#n.notify({
|
|
502
|
+
type: "observerRemoved",
|
|
503
|
+
query: this,
|
|
504
|
+
observer: e
|
|
505
|
+
}));
|
|
506
|
+
}
|
|
507
|
+
getObserversCount() {
|
|
508
|
+
return this.observers.length;
|
|
509
|
+
}
|
|
510
|
+
#s() {
|
|
511
|
+
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
512
|
+
}
|
|
513
|
+
invalidate() {
|
|
514
|
+
this.state.isInvalidated || this.#c({ type: "invalidate" });
|
|
515
|
+
}
|
|
516
|
+
async fetch(e, t) {
|
|
517
|
+
if (this.state.fetchStatus !== "idle" && this.#i?.status() !== "rejected") {
|
|
518
|
+
if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
|
|
519
|
+
else if (this.#i) return this.#i.continueRetry(), this.#i.promise;
|
|
520
|
+
}
|
|
521
|
+
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
522
|
+
let e = this.observers.find((e) => e.options.queryFn);
|
|
523
|
+
e && this.setOptions(e.options);
|
|
524
|
+
}
|
|
525
|
+
let n = new AbortController(), r = (e) => {
|
|
526
|
+
Object.defineProperty(e, "signal", {
|
|
527
|
+
enumerable: !0,
|
|
528
|
+
get: () => (this.#o = !0, n.signal)
|
|
529
|
+
});
|
|
530
|
+
}, i = () => {
|
|
531
|
+
let e = k(this.options, t), n = (() => {
|
|
532
|
+
let e = {
|
|
533
|
+
client: this.#r,
|
|
534
|
+
queryKey: this.queryKey,
|
|
535
|
+
meta: this.meta
|
|
536
|
+
};
|
|
537
|
+
return r(e), e;
|
|
538
|
+
})();
|
|
539
|
+
return this.#o = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
|
|
540
|
+
}, a = (() => {
|
|
541
|
+
let e = {
|
|
542
|
+
fetchOptions: t,
|
|
543
|
+
options: this.options,
|
|
544
|
+
queryKey: this.queryKey,
|
|
545
|
+
client: this.#r,
|
|
546
|
+
state: this.state,
|
|
547
|
+
fetchFn: i
|
|
548
|
+
};
|
|
549
|
+
return r(e), e;
|
|
550
|
+
})();
|
|
551
|
+
this.options.behavior?.onFetch(a, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
|
|
552
|
+
type: "fetch",
|
|
553
|
+
meta: a.fetchOptions?.meta
|
|
554
|
+
}), this.#i = B({
|
|
555
|
+
initialPromise: t?.initialPromise,
|
|
556
|
+
fn: a.fetchFn,
|
|
557
|
+
onCancel: (e) => {
|
|
558
|
+
e instanceof z && e.revert && this.setState({
|
|
559
|
+
...this.#t,
|
|
560
|
+
fetchStatus: "idle"
|
|
561
|
+
}), n.abort();
|
|
562
|
+
},
|
|
563
|
+
onFail: (e, t) => {
|
|
564
|
+
this.#c({
|
|
565
|
+
type: "failed",
|
|
566
|
+
failureCount: e,
|
|
567
|
+
error: t
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
onPause: () => {
|
|
571
|
+
this.#c({ type: "pause" });
|
|
572
|
+
},
|
|
573
|
+
onContinue: () => {
|
|
574
|
+
this.#c({ type: "continue" });
|
|
575
|
+
},
|
|
576
|
+
retry: a.options.retry,
|
|
577
|
+
retryDelay: a.options.retryDelay,
|
|
578
|
+
networkMode: a.options.networkMode,
|
|
579
|
+
canRun: () => !0
|
|
580
|
+
});
|
|
581
|
+
try {
|
|
582
|
+
let e = await this.#i.start();
|
|
583
|
+
if (e === void 0) throw Error(`${this.queryHash} data is undefined`);
|
|
584
|
+
return this.setData(e), this.#n.config.onSuccess?.(e, this), this.#n.config.onSettled?.(e, this.state.error, this), e;
|
|
585
|
+
} catch (e) {
|
|
586
|
+
if (e instanceof z) {
|
|
587
|
+
if (e.silent) return this.#i.promise;
|
|
588
|
+
if (e.revert) {
|
|
589
|
+
if (this.state.data === void 0) throw e;
|
|
590
|
+
return this.state.data;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
throw this.#c({
|
|
594
|
+
type: "error",
|
|
595
|
+
error: e
|
|
596
|
+
}), this.#n.config.onError?.(e, this), this.#n.config.onSettled?.(this.state.data, e, this), e;
|
|
597
|
+
} finally {
|
|
598
|
+
this.scheduleGc();
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
#c(e) {
|
|
602
|
+
let t = (t) => {
|
|
603
|
+
switch (e.type) {
|
|
604
|
+
case "failed": return {
|
|
605
|
+
...t,
|
|
606
|
+
fetchFailureCount: e.failureCount,
|
|
607
|
+
fetchFailureReason: e.error
|
|
608
|
+
};
|
|
609
|
+
case "pause": return {
|
|
610
|
+
...t,
|
|
611
|
+
fetchStatus: "paused"
|
|
612
|
+
};
|
|
613
|
+
case "continue": return {
|
|
614
|
+
...t,
|
|
615
|
+
fetchStatus: "fetching"
|
|
616
|
+
};
|
|
617
|
+
case "fetch": return {
|
|
618
|
+
...t,
|
|
619
|
+
...U(t.data, this.options),
|
|
620
|
+
fetchMeta: e.meta ?? null
|
|
621
|
+
};
|
|
622
|
+
case "success":
|
|
623
|
+
let n = {
|
|
624
|
+
...t,
|
|
625
|
+
...W(e.data, e.dataUpdatedAt),
|
|
626
|
+
dataUpdateCount: t.dataUpdateCount + 1,
|
|
627
|
+
...!e.manual && {
|
|
628
|
+
fetchStatus: "idle",
|
|
629
|
+
fetchFailureCount: 0,
|
|
630
|
+
fetchFailureReason: null
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
return this.#t = e.manual ? n : void 0, n;
|
|
634
|
+
case "error":
|
|
635
|
+
let r = e.error;
|
|
636
|
+
return {
|
|
637
|
+
...t,
|
|
638
|
+
error: r,
|
|
639
|
+
errorUpdateCount: t.errorUpdateCount + 1,
|
|
640
|
+
errorUpdatedAt: Date.now(),
|
|
641
|
+
fetchFailureCount: t.fetchFailureCount + 1,
|
|
642
|
+
fetchFailureReason: r,
|
|
643
|
+
fetchStatus: "idle",
|
|
644
|
+
status: "error",
|
|
645
|
+
isInvalidated: !0
|
|
646
|
+
};
|
|
647
|
+
case "invalidate": return {
|
|
648
|
+
...t,
|
|
649
|
+
isInvalidated: !0
|
|
650
|
+
};
|
|
651
|
+
case "setState": return {
|
|
652
|
+
...t,
|
|
653
|
+
...e.state
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
this.state = t(this.state), F.batch(() => {
|
|
658
|
+
this.observers.forEach((e) => {
|
|
659
|
+
e.onQueryUpdate();
|
|
660
|
+
}), this.#n.notify({
|
|
661
|
+
query: this,
|
|
662
|
+
type: "updated",
|
|
663
|
+
action: e
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
function U(e, t) {
|
|
669
|
+
return {
|
|
670
|
+
fetchFailureCount: 0,
|
|
671
|
+
fetchFailureReason: null,
|
|
672
|
+
fetchStatus: R(t.networkMode) ? "fetching" : "paused",
|
|
673
|
+
...e === void 0 && {
|
|
674
|
+
error: null,
|
|
675
|
+
status: "pending"
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function W(e, t) {
|
|
680
|
+
return {
|
|
681
|
+
data: e,
|
|
682
|
+
dataUpdatedAt: t ?? Date.now(),
|
|
683
|
+
error: null,
|
|
684
|
+
isInvalidated: !1,
|
|
685
|
+
status: "success"
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
function G(e) {
|
|
689
|
+
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
690
|
+
return {
|
|
691
|
+
data: t,
|
|
692
|
+
dataUpdateCount: 0,
|
|
693
|
+
dataUpdatedAt: n ? r ?? Date.now() : 0,
|
|
694
|
+
error: null,
|
|
695
|
+
errorUpdateCount: 0,
|
|
696
|
+
errorUpdatedAt: 0,
|
|
697
|
+
fetchFailureCount: 0,
|
|
698
|
+
fetchFailureReason: null,
|
|
699
|
+
fetchMeta: null,
|
|
700
|
+
isInvalidated: !1,
|
|
701
|
+
status: n ? "success" : "pending",
|
|
702
|
+
fetchStatus: "idle"
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
//#endregion
|
|
706
|
+
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
707
|
+
function K(e) {
|
|
708
|
+
return { onFetch: (t, n) => {
|
|
709
|
+
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
710
|
+
pages: [],
|
|
711
|
+
pageParams: []
|
|
712
|
+
}, c = 0, l = async () => {
|
|
713
|
+
let n = !1, l = (e) => {
|
|
714
|
+
A(e, () => t.signal, () => n = !0);
|
|
715
|
+
}, u = k(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
716
|
+
if (n) return Promise.reject();
|
|
717
|
+
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
718
|
+
let a = await u((() => {
|
|
719
|
+
let e = {
|
|
720
|
+
client: t.client,
|
|
721
|
+
queryKey: t.queryKey,
|
|
722
|
+
pageParam: r,
|
|
723
|
+
direction: i ? "backward" : "forward",
|
|
724
|
+
meta: t.options.meta
|
|
725
|
+
};
|
|
726
|
+
return l(e), e;
|
|
727
|
+
})()), { maxPages: o } = t.options, s = i ? D : E;
|
|
728
|
+
return {
|
|
729
|
+
pages: s(e.pages, a, o),
|
|
730
|
+
pageParams: s(e.pageParams, r, o)
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
if (i && a.length) {
|
|
734
|
+
let e = i === "backward", t = e ? J : q, n = {
|
|
735
|
+
pages: a,
|
|
736
|
+
pageParams: o
|
|
737
|
+
};
|
|
738
|
+
s = await d(n, t(r, n), e);
|
|
739
|
+
} else {
|
|
740
|
+
let t = e ?? a.length;
|
|
741
|
+
do {
|
|
742
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : q(r, s);
|
|
743
|
+
if (c > 0 && e == null) break;
|
|
744
|
+
s = await d(s, e), c++;
|
|
745
|
+
} while (c < t);
|
|
746
|
+
}
|
|
747
|
+
return s;
|
|
748
|
+
};
|
|
749
|
+
t.options.persister ? t.fetchFn = () => t.options.persister?.(l, {
|
|
750
|
+
client: t.client,
|
|
751
|
+
queryKey: t.queryKey,
|
|
752
|
+
meta: t.options.meta,
|
|
753
|
+
signal: t.signal
|
|
754
|
+
}, n) : t.fetchFn = l;
|
|
755
|
+
} };
|
|
756
|
+
}
|
|
757
|
+
function q(e, { pages: t, pageParams: n }) {
|
|
758
|
+
let r = t.length - 1;
|
|
759
|
+
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
760
|
+
}
|
|
761
|
+
function J(e, { pages: t, pageParams: n }) {
|
|
762
|
+
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
763
|
+
}
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
766
|
+
var Y = class extends V {
|
|
767
|
+
#e;
|
|
768
|
+
#t;
|
|
769
|
+
#n;
|
|
770
|
+
#r;
|
|
771
|
+
constructor(e) {
|
|
772
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || X(), this.setOptions(e.options), this.scheduleGc();
|
|
773
|
+
}
|
|
774
|
+
setOptions(e) {
|
|
775
|
+
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
776
|
+
}
|
|
777
|
+
get meta() {
|
|
778
|
+
return this.options.meta;
|
|
779
|
+
}
|
|
780
|
+
addObserver(e) {
|
|
781
|
+
this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
|
|
782
|
+
type: "observerAdded",
|
|
783
|
+
mutation: this,
|
|
784
|
+
observer: e
|
|
785
|
+
}));
|
|
786
|
+
}
|
|
787
|
+
removeObserver(e) {
|
|
788
|
+
this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
|
|
789
|
+
type: "observerRemoved",
|
|
790
|
+
mutation: this,
|
|
791
|
+
observer: e
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
optionalRemove() {
|
|
795
|
+
this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
|
|
796
|
+
}
|
|
797
|
+
continue() {
|
|
798
|
+
return this.#r?.continue() ?? this.execute(this.state.variables);
|
|
799
|
+
}
|
|
800
|
+
async execute(e) {
|
|
801
|
+
let t = () => {
|
|
802
|
+
this.#i({ type: "continue" });
|
|
803
|
+
}, n = {
|
|
804
|
+
client: this.#e,
|
|
805
|
+
meta: this.options.meta,
|
|
806
|
+
mutationKey: this.options.mutationKey
|
|
807
|
+
};
|
|
808
|
+
this.#r = B({
|
|
809
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
810
|
+
onFail: (e, t) => {
|
|
811
|
+
this.#i({
|
|
812
|
+
type: "failed",
|
|
813
|
+
failureCount: e,
|
|
814
|
+
error: t
|
|
815
|
+
});
|
|
816
|
+
},
|
|
817
|
+
onPause: () => {
|
|
818
|
+
this.#i({ type: "pause" });
|
|
819
|
+
},
|
|
820
|
+
onContinue: t,
|
|
821
|
+
retry: this.options.retry ?? 0,
|
|
822
|
+
retryDelay: this.options.retryDelay,
|
|
823
|
+
networkMode: this.options.networkMode,
|
|
824
|
+
canRun: () => this.#n.canRun(this)
|
|
825
|
+
});
|
|
826
|
+
let r = this.state.status === "pending", i = !this.#r.canStart();
|
|
827
|
+
try {
|
|
828
|
+
if (r) t();
|
|
829
|
+
else {
|
|
830
|
+
this.#i({
|
|
831
|
+
type: "pending",
|
|
832
|
+
variables: e,
|
|
833
|
+
isPaused: i
|
|
834
|
+
}), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
|
|
835
|
+
let t = await this.options.onMutate?.(e, n);
|
|
836
|
+
t !== this.state.context && this.#i({
|
|
837
|
+
type: "pending",
|
|
838
|
+
context: t,
|
|
839
|
+
variables: e,
|
|
840
|
+
isPaused: i
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
let a = await this.#r.start();
|
|
844
|
+
return await this.#n.config.onSuccess?.(a, e, this.state.context, this, n), await this.options.onSuccess?.(a, e, this.state.context, n), await this.#n.config.onSettled?.(a, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(a, null, e, this.state.context, n), this.#i({
|
|
845
|
+
type: "success",
|
|
846
|
+
data: a
|
|
847
|
+
}), a;
|
|
848
|
+
} catch (t) {
|
|
849
|
+
try {
|
|
850
|
+
await this.#n.config.onError?.(t, e, this.state.context, this, n);
|
|
851
|
+
} catch (e) {
|
|
852
|
+
Promise.reject(e);
|
|
853
|
+
}
|
|
854
|
+
try {
|
|
855
|
+
await this.options.onError?.(t, e, this.state.context, n);
|
|
856
|
+
} catch (e) {
|
|
857
|
+
Promise.reject(e);
|
|
858
|
+
}
|
|
859
|
+
try {
|
|
860
|
+
await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
|
|
861
|
+
} catch (e) {
|
|
862
|
+
Promise.reject(e);
|
|
863
|
+
}
|
|
864
|
+
try {
|
|
865
|
+
await this.options.onSettled?.(void 0, t, e, this.state.context, n);
|
|
866
|
+
} catch (e) {
|
|
867
|
+
Promise.reject(e);
|
|
868
|
+
}
|
|
869
|
+
throw this.#i({
|
|
870
|
+
type: "error",
|
|
871
|
+
error: t
|
|
872
|
+
}), t;
|
|
873
|
+
} finally {
|
|
874
|
+
this.#n.runNext(this);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
#i(e) {
|
|
878
|
+
let t = (t) => {
|
|
879
|
+
switch (e.type) {
|
|
880
|
+
case "failed": return {
|
|
881
|
+
...t,
|
|
882
|
+
failureCount: e.failureCount,
|
|
883
|
+
failureReason: e.error
|
|
884
|
+
};
|
|
885
|
+
case "pause": return {
|
|
886
|
+
...t,
|
|
887
|
+
isPaused: !0
|
|
888
|
+
};
|
|
889
|
+
case "continue": return {
|
|
890
|
+
...t,
|
|
891
|
+
isPaused: !1
|
|
892
|
+
};
|
|
893
|
+
case "pending": return {
|
|
894
|
+
...t,
|
|
895
|
+
context: e.context,
|
|
896
|
+
data: void 0,
|
|
897
|
+
failureCount: 0,
|
|
898
|
+
failureReason: null,
|
|
899
|
+
error: null,
|
|
900
|
+
isPaused: e.isPaused,
|
|
901
|
+
status: "pending",
|
|
902
|
+
variables: e.variables,
|
|
903
|
+
submittedAt: Date.now()
|
|
904
|
+
};
|
|
905
|
+
case "success": return {
|
|
906
|
+
...t,
|
|
907
|
+
data: e.data,
|
|
908
|
+
failureCount: 0,
|
|
909
|
+
failureReason: null,
|
|
910
|
+
error: null,
|
|
911
|
+
status: "success",
|
|
912
|
+
isPaused: !1
|
|
913
|
+
};
|
|
914
|
+
case "error": return {
|
|
915
|
+
...t,
|
|
916
|
+
data: void 0,
|
|
917
|
+
error: e.error,
|
|
918
|
+
failureCount: t.failureCount + 1,
|
|
919
|
+
failureReason: e.error,
|
|
920
|
+
isPaused: !1,
|
|
921
|
+
status: "error"
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
this.state = t(this.state), F.batch(() => {
|
|
926
|
+
this.#t.forEach((t) => {
|
|
927
|
+
t.onMutationUpdate(e);
|
|
928
|
+
}), this.#n.notify({
|
|
929
|
+
mutation: this,
|
|
930
|
+
type: "updated",
|
|
931
|
+
action: e
|
|
932
|
+
});
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
function X() {
|
|
937
|
+
return {
|
|
938
|
+
context: void 0,
|
|
939
|
+
data: void 0,
|
|
940
|
+
error: null,
|
|
941
|
+
failureCount: 0,
|
|
942
|
+
failureReason: null,
|
|
943
|
+
isPaused: !1,
|
|
944
|
+
status: "idle",
|
|
945
|
+
variables: void 0,
|
|
946
|
+
submittedAt: 0
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
//#endregion
|
|
950
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
951
|
+
var Z = class extends n {
|
|
952
|
+
constructor(e = {}) {
|
|
953
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
954
|
+
}
|
|
955
|
+
#e;
|
|
956
|
+
#t;
|
|
957
|
+
#n;
|
|
958
|
+
build(e, t, n) {
|
|
959
|
+
let r = new Y({
|
|
960
|
+
client: e,
|
|
961
|
+
mutationCache: this,
|
|
962
|
+
mutationId: ++this.#n,
|
|
963
|
+
options: e.defaultMutationOptions(t),
|
|
964
|
+
state: n
|
|
965
|
+
});
|
|
966
|
+
return this.add(r), r;
|
|
967
|
+
}
|
|
968
|
+
add(e) {
|
|
969
|
+
this.#e.add(e);
|
|
970
|
+
let t = Q(e);
|
|
971
|
+
if (typeof t == "string") {
|
|
972
|
+
let n = this.#t.get(t);
|
|
973
|
+
n ? n.push(e) : this.#t.set(t, [e]);
|
|
974
|
+
}
|
|
975
|
+
this.notify({
|
|
976
|
+
type: "added",
|
|
977
|
+
mutation: e
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
remove(e) {
|
|
981
|
+
if (this.#e.delete(e)) {
|
|
982
|
+
let t = Q(e);
|
|
983
|
+
if (typeof t == "string") {
|
|
984
|
+
let n = this.#t.get(t);
|
|
985
|
+
if (n) if (n.length > 1) {
|
|
986
|
+
let t = n.indexOf(e);
|
|
987
|
+
t !== -1 && n.splice(t, 1);
|
|
988
|
+
} else n[0] === e && this.#t.delete(t);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
this.notify({
|
|
992
|
+
type: "removed",
|
|
993
|
+
mutation: e
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
canRun(e) {
|
|
997
|
+
let t = Q(e);
|
|
998
|
+
if (typeof t == "string") {
|
|
999
|
+
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1000
|
+
return !n || n === e;
|
|
1001
|
+
} else return !0;
|
|
1002
|
+
}
|
|
1003
|
+
runNext(e) {
|
|
1004
|
+
let t = Q(e);
|
|
1005
|
+
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1006
|
+
}
|
|
1007
|
+
clear() {
|
|
1008
|
+
F.batch(() => {
|
|
1009
|
+
this.#e.forEach((e) => {
|
|
1010
|
+
this.notify({
|
|
1011
|
+
type: "removed",
|
|
1012
|
+
mutation: e
|
|
1013
|
+
});
|
|
1014
|
+
}), this.#e.clear(), this.#t.clear();
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
getAll() {
|
|
1018
|
+
return Array.from(this.#e);
|
|
1019
|
+
}
|
|
1020
|
+
find(e) {
|
|
1021
|
+
let t = {
|
|
1022
|
+
exact: !0,
|
|
1023
|
+
...e
|
|
1024
|
+
};
|
|
1025
|
+
return this.getAll().find((e) => h(t, e));
|
|
1026
|
+
}
|
|
1027
|
+
findAll(e = {}) {
|
|
1028
|
+
return this.getAll().filter((t) => h(e, t));
|
|
1029
|
+
}
|
|
1030
|
+
notify(e) {
|
|
1031
|
+
F.batch(() => {
|
|
1032
|
+
this.listeners.forEach((t) => {
|
|
1033
|
+
t(e);
|
|
1034
|
+
});
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
resumePausedMutations() {
|
|
1038
|
+
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1039
|
+
return F.batch(() => Promise.all(e.map((e) => e.continue().catch(c))));
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
function Q(e) {
|
|
1043
|
+
return e.options.scope?.id;
|
|
1044
|
+
}
|
|
1045
|
+
//#endregion
|
|
1046
|
+
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1047
|
+
var $ = class extends n {
|
|
1048
|
+
constructor(e = {}) {
|
|
1049
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1050
|
+
}
|
|
1051
|
+
#e;
|
|
1052
|
+
build(e, t, n) {
|
|
1053
|
+
let r = t.queryKey, i = t.queryHash ?? g(r, t), a = this.get(i);
|
|
1054
|
+
return a || (a = new H({
|
|
1055
|
+
client: e,
|
|
1056
|
+
queryKey: r,
|
|
1057
|
+
queryHash: i,
|
|
1058
|
+
options: e.defaultQueryOptions(t),
|
|
1059
|
+
state: n,
|
|
1060
|
+
defaultOptions: e.getQueryDefaults(r)
|
|
1061
|
+
}), this.add(a)), a;
|
|
1062
|
+
}
|
|
1063
|
+
add(e) {
|
|
1064
|
+
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
1065
|
+
type: "added",
|
|
1066
|
+
query: e
|
|
1067
|
+
}));
|
|
1068
|
+
}
|
|
1069
|
+
remove(e) {
|
|
1070
|
+
let t = this.#e.get(e.queryHash);
|
|
1071
|
+
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
|
|
1072
|
+
type: "removed",
|
|
1073
|
+
query: e
|
|
1074
|
+
}));
|
|
1075
|
+
}
|
|
1076
|
+
clear() {
|
|
1077
|
+
F.batch(() => {
|
|
1078
|
+
this.getAll().forEach((e) => {
|
|
1079
|
+
this.remove(e);
|
|
1080
|
+
});
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
get(e) {
|
|
1084
|
+
return this.#e.get(e);
|
|
1085
|
+
}
|
|
1086
|
+
getAll() {
|
|
1087
|
+
return [...this.#e.values()];
|
|
1088
|
+
}
|
|
1089
|
+
find(e) {
|
|
1090
|
+
let t = {
|
|
1091
|
+
exact: !0,
|
|
1092
|
+
...e
|
|
1093
|
+
};
|
|
1094
|
+
return this.getAll().find((e) => m(t, e));
|
|
1095
|
+
}
|
|
1096
|
+
findAll(e = {}) {
|
|
1097
|
+
let t = this.getAll();
|
|
1098
|
+
return Object.keys(e).length > 0 ? t.filter((t) => m(e, t)) : t;
|
|
1099
|
+
}
|
|
1100
|
+
notify(e) {
|
|
1101
|
+
F.batch(() => {
|
|
1102
|
+
this.listeners.forEach((t) => {
|
|
1103
|
+
t(e);
|
|
1104
|
+
});
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
onFocus() {
|
|
1108
|
+
F.batch(() => {
|
|
1109
|
+
this.getAll().forEach((e) => {
|
|
1110
|
+
e.onFocus();
|
|
1111
|
+
});
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
onOnline() {
|
|
1115
|
+
F.batch(() => {
|
|
1116
|
+
this.getAll().forEach((e) => {
|
|
1117
|
+
e.onOnline();
|
|
1118
|
+
});
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
}, ee = class {
|
|
1122
|
+
#e;
|
|
1123
|
+
#t;
|
|
1124
|
+
#n;
|
|
1125
|
+
#r;
|
|
1126
|
+
#i;
|
|
1127
|
+
#a;
|
|
1128
|
+
#o;
|
|
1129
|
+
#s;
|
|
1130
|
+
constructor(e = {}) {
|
|
1131
|
+
this.#e = e.queryCache || new $(), this.#t = e.mutationCache || new Z(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1132
|
+
}
|
|
1133
|
+
mount() {
|
|
1134
|
+
this.#a++, this.#a === 1 && (this.#o = r.subscribe(async (e) => {
|
|
1135
|
+
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1136
|
+
}), this.#s = I.subscribe(async (e) => {
|
|
1137
|
+
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1138
|
+
}));
|
|
1139
|
+
}
|
|
1140
|
+
unmount() {
|
|
1141
|
+
this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
|
|
1142
|
+
}
|
|
1143
|
+
isFetching(e) {
|
|
1144
|
+
return this.#e.findAll({
|
|
1145
|
+
...e,
|
|
1146
|
+
fetchStatus: "fetching"
|
|
1147
|
+
}).length;
|
|
1148
|
+
}
|
|
1149
|
+
isMutating(e) {
|
|
1150
|
+
return this.#t.findAll({
|
|
1151
|
+
...e,
|
|
1152
|
+
status: "pending"
|
|
1153
|
+
}).length;
|
|
1154
|
+
}
|
|
1155
|
+
getQueryData(e) {
|
|
1156
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1157
|
+
return this.#e.get(t.queryHash)?.state.data;
|
|
1158
|
+
}
|
|
1159
|
+
ensureQueryData(e) {
|
|
1160
|
+
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1161
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(f(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1162
|
+
}
|
|
1163
|
+
getQueriesData(e) {
|
|
1164
|
+
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1165
|
+
}
|
|
1166
|
+
setQueryData(e, t, n) {
|
|
1167
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = l(t, i);
|
|
1168
|
+
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1169
|
+
...n,
|
|
1170
|
+
manual: !0
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
setQueriesData(e, t, n) {
|
|
1174
|
+
return F.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1175
|
+
}
|
|
1176
|
+
getQueryState(e) {
|
|
1177
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1178
|
+
return this.#e.get(t.queryHash)?.state;
|
|
1179
|
+
}
|
|
1180
|
+
removeQueries(e) {
|
|
1181
|
+
let t = this.#e;
|
|
1182
|
+
F.batch(() => {
|
|
1183
|
+
t.findAll(e).forEach((e) => {
|
|
1184
|
+
t.remove(e);
|
|
1185
|
+
});
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
resetQueries(e, t) {
|
|
1189
|
+
let n = this.#e;
|
|
1190
|
+
return F.batch(() => (n.findAll(e).forEach((e) => {
|
|
1191
|
+
e.reset();
|
|
1192
|
+
}), this.refetchQueries({
|
|
1193
|
+
type: "active",
|
|
1194
|
+
...e
|
|
1195
|
+
}, t)));
|
|
1196
|
+
}
|
|
1197
|
+
cancelQueries(e, t = {}) {
|
|
1198
|
+
let n = {
|
|
1199
|
+
revert: !0,
|
|
1200
|
+
...t
|
|
1201
|
+
}, r = F.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1202
|
+
return Promise.all(r).then(c).catch(c);
|
|
1203
|
+
}
|
|
1204
|
+
invalidateQueries(e, t = {}) {
|
|
1205
|
+
return F.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
1206
|
+
e.invalidate();
|
|
1207
|
+
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1208
|
+
...e,
|
|
1209
|
+
type: e?.refetchType ?? e?.type ?? "active"
|
|
1210
|
+
}, t)));
|
|
1211
|
+
}
|
|
1212
|
+
refetchQueries(e, t = {}) {
|
|
1213
|
+
let n = {
|
|
1214
|
+
...t,
|
|
1215
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
1216
|
+
}, r = F.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1217
|
+
let t = e.fetch(void 0, n);
|
|
1218
|
+
return n.throwOnError || (t = t.catch(c)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1219
|
+
}));
|
|
1220
|
+
return Promise.all(r).then(c);
|
|
1221
|
+
}
|
|
1222
|
+
fetchQuery(e) {
|
|
1223
|
+
let t = this.defaultQueryOptions(e);
|
|
1224
|
+
t.retry === void 0 && (t.retry = !1);
|
|
1225
|
+
let n = this.#e.build(this, t);
|
|
1226
|
+
return n.isStaleByTime(f(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1227
|
+
}
|
|
1228
|
+
prefetchQuery(e) {
|
|
1229
|
+
return this.fetchQuery(e).then(c).catch(c);
|
|
1230
|
+
}
|
|
1231
|
+
fetchInfiniteQuery(e) {
|
|
1232
|
+
return e.behavior = K(e.pages), this.fetchQuery(e);
|
|
1233
|
+
}
|
|
1234
|
+
prefetchInfiniteQuery(e) {
|
|
1235
|
+
return this.fetchInfiniteQuery(e).then(c).catch(c);
|
|
1236
|
+
}
|
|
1237
|
+
ensureInfiniteQueryData(e) {
|
|
1238
|
+
return e.behavior = K(e.pages), this.ensureQueryData(e);
|
|
1239
|
+
}
|
|
1240
|
+
resumePausedMutations() {
|
|
1241
|
+
return I.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1242
|
+
}
|
|
1243
|
+
getQueryCache() {
|
|
1244
|
+
return this.#e;
|
|
1245
|
+
}
|
|
1246
|
+
getMutationCache() {
|
|
1247
|
+
return this.#t;
|
|
1248
|
+
}
|
|
1249
|
+
getDefaultOptions() {
|
|
1250
|
+
return this.#n;
|
|
1251
|
+
}
|
|
1252
|
+
setDefaultOptions(e) {
|
|
1253
|
+
this.#n = e;
|
|
1254
|
+
}
|
|
1255
|
+
setQueryDefaults(e, t) {
|
|
1256
|
+
this.#r.set(_(e), {
|
|
1257
|
+
queryKey: e,
|
|
1258
|
+
defaultOptions: t
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
getQueryDefaults(e) {
|
|
1262
|
+
let t = [...this.#r.values()], n = {};
|
|
1263
|
+
return t.forEach((t) => {
|
|
1264
|
+
v(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1265
|
+
}), n;
|
|
1266
|
+
}
|
|
1267
|
+
setMutationDefaults(e, t) {
|
|
1268
|
+
this.#i.set(_(e), {
|
|
1269
|
+
mutationKey: e,
|
|
1270
|
+
defaultOptions: t
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
getMutationDefaults(e) {
|
|
1274
|
+
let t = [...this.#i.values()], n = {};
|
|
1275
|
+
return t.forEach((t) => {
|
|
1276
|
+
v(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1277
|
+
}), n;
|
|
1278
|
+
}
|
|
1279
|
+
defaultQueryOptions(e) {
|
|
1280
|
+
if (e._defaulted) return e;
|
|
1281
|
+
let t = {
|
|
1282
|
+
...this.#n.queries,
|
|
1283
|
+
...this.getQueryDefaults(e.queryKey),
|
|
1284
|
+
...e,
|
|
1285
|
+
_defaulted: !0
|
|
1286
|
+
};
|
|
1287
|
+
return t.queryHash ||= g(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === O && (t.enabled = !1), t;
|
|
1288
|
+
}
|
|
1289
|
+
defaultMutationOptions(e) {
|
|
1290
|
+
return e?._defaulted ? e : {
|
|
1291
|
+
...this.#n.mutations,
|
|
1292
|
+
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
|
|
1293
|
+
...e,
|
|
1294
|
+
_defaulted: !0
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
clear() {
|
|
1298
|
+
this.#e.clear(), this.#t.clear();
|
|
1299
|
+
}
|
|
1300
|
+
}, te = class n {
|
|
1301
|
+
constructor(e = {}) {
|
|
1302
|
+
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 ee({ defaultOptions: { queries: {
|
|
1303
|
+
staleTime: e.staleTime || 300 * 1e3,
|
|
1304
|
+
gcTime: e.gcTime || 600 * 1e3,
|
|
1305
|
+
retry: e.retry || 3,
|
|
1306
|
+
retryDelay: e.retryDelay || ((e) => Math.min(1e3 * 2 ** e, 3e4))
|
|
1307
|
+
} } }), this.initNetworkListeners();
|
|
1308
|
+
}
|
|
1309
|
+
_normalizeUrl(e) {
|
|
1310
|
+
try {
|
|
1311
|
+
let t = new URL(e);
|
|
1312
|
+
return t.origin + t.pathname.replace(/\/$/, "");
|
|
1313
|
+
} catch {
|
|
1314
|
+
return e;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
configure(e = {}) {
|
|
1318
|
+
let t = e.apiUrl === void 0 ? void 0 : this._normalizeUrl(e.apiUrl), n = this._normalizeUrl(this.apiUrl), r = e.authKey !== void 0 && e.authKey !== "" && e.authKey !== this.authKey || e.authToken !== void 0 && e.authToken !== "" && e.authToken !== this.authToken || t !== void 0 && t !== n;
|
|
1319
|
+
if (e.apiVersion && (this.apiVersion = e.apiVersion), e.apiUrl !== void 0 && (this.apiUrl = e.apiUrl), e.authKey !== void 0 && (this.authKey = e.authKey), e.authToken !== void 0 && (this.authToken = e.authToken), r && (this.queryClient.clear(), this.availableDatasets = []), e.staleTime || e.gcTime || e.retry) {
|
|
1320
|
+
let t = {};
|
|
1321
|
+
e.staleTime && (t.staleTime = e.staleTime), e.gcTime && (t.gcTime = e.gcTime), e.retry && (t.retry = e.retry), this.queryClient.setDefaultOptions({ queries: {
|
|
1322
|
+
...this.queryClient.getDefaultOptions().queries,
|
|
1323
|
+
...t
|
|
1324
|
+
} });
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
clearLocalCache() {
|
|
1328
|
+
this.queryClient.clear(), this.availableDatasets = [];
|
|
1329
|
+
}
|
|
1330
|
+
initNetworkListeners() {
|
|
1331
|
+
typeof window < "u" && window.addEventListener("online", () => {
|
|
1332
|
+
console.warn("Network connection restored, refreshing data..."), this.refreshAll();
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
getHeaders(e = {}) {
|
|
1336
|
+
return {
|
|
1337
|
+
"Content-Type": "application/json",
|
|
1338
|
+
...e
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
async fetchApi(e, t, n = {}) {
|
|
1342
|
+
let r = `${this.apiUrl}/${this.apiVersion}${e}`, i = {
|
|
1343
|
+
method: n.method || "POST",
|
|
1344
|
+
headers: this.getHeaders(n.headers),
|
|
1345
|
+
mode: "cors",
|
|
1346
|
+
...n
|
|
1347
|
+
};
|
|
1348
|
+
t !== void 0 && (t.key = this.authKey, t.token = this.authToken, i.body = JSON.stringify(t));
|
|
1349
|
+
try {
|
|
1350
|
+
let t = await fetch(r, i);
|
|
1351
|
+
if (!t.ok) {
|
|
1352
|
+
let n = await t.json().catch(() => null);
|
|
1353
|
+
throw t.status === 401 || t.status === 403 ? Error("Authentication failed. Please check your API token.") : t.status === 404 ? Error(`Resource not found: ${e}`) : t.status === 429 ? Error("Rate limit exceeded. Please try again later.") : Error(n?.message || `API request failed with status ${t.status}`);
|
|
1354
|
+
}
|
|
1355
|
+
return await t.json();
|
|
1356
|
+
} catch (t) {
|
|
1357
|
+
throw console.error(`API request to ${e} failed:`, t), t instanceof Error && (t.endpoint = e, t.timestamp = (/* @__PURE__ */ new Date()).toISOString()), t;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
async fetchAllDatasets(e = {}) {
|
|
1361
|
+
let t = e.offset || 0, n = e.limit || 50, r = [
|
|
1362
|
+
"datasets",
|
|
1363
|
+
t,
|
|
1364
|
+
n
|
|
1365
|
+
];
|
|
1366
|
+
return await this.queryClient.fetchQuery({
|
|
1367
|
+
queryKey: r,
|
|
1368
|
+
queryFn: async () => {
|
|
1369
|
+
let e = {
|
|
1370
|
+
action: "get",
|
|
1371
|
+
version: this.apiVersion,
|
|
1372
|
+
find: {
|
|
1373
|
+
where: { type: "dataset" },
|
|
1374
|
+
attributes: [
|
|
1375
|
+
"id",
|
|
1376
|
+
"name",
|
|
1377
|
+
"description"
|
|
1378
|
+
],
|
|
1379
|
+
limit: n,
|
|
1380
|
+
offset: t
|
|
1381
|
+
}
|
|
1382
|
+
}, r = await this.fetchApi("/securable", e);
|
|
1383
|
+
return {
|
|
1384
|
+
data: r?.rows ?? [],
|
|
1385
|
+
pagination: {
|
|
1386
|
+
offset: t,
|
|
1387
|
+
limit: n,
|
|
1388
|
+
total: r?.count ?? 0,
|
|
1389
|
+
pages: Math.ceil((r?.count ?? 0) / n)
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
async searchDatasets(e, t) {
|
|
1396
|
+
if (!e) return { data: [] };
|
|
1397
|
+
let n = [
|
|
1398
|
+
"datasets",
|
|
1399
|
+
"search",
|
|
1400
|
+
e,
|
|
1401
|
+
t
|
|
1402
|
+
];
|
|
1403
|
+
return await this.queryClient.fetchQuery({
|
|
1404
|
+
queryKey: n,
|
|
1405
|
+
queryFn: async () => {
|
|
1406
|
+
let n = {
|
|
1407
|
+
action: "get",
|
|
1408
|
+
version: this.apiVersion,
|
|
1409
|
+
find: { where: { type: "dataset" } }
|
|
1410
|
+
};
|
|
1411
|
+
e?.length > 0 && (n.find.search = {
|
|
1412
|
+
match_types: ["name"],
|
|
1413
|
+
keyphrase: e
|
|
1414
|
+
}), t?.offset && (n.find.offset = t?.offset), t?.limit && (n.find.limit = t?.limit);
|
|
1415
|
+
let r = await this.fetchApi("/securable", n), i = { data: r?.rows ?? [] };
|
|
1416
|
+
return t?.limit && (i.pagination = {
|
|
1417
|
+
offset: t?.offset ?? 0,
|
|
1418
|
+
limit: t?.limit,
|
|
1419
|
+
total: r?.count ?? 0,
|
|
1420
|
+
pages: Math.ceil((r?.count ?? 0) / t?.limit)
|
|
1421
|
+
}), i;
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
async fetchDatasetNames(t) {
|
|
1426
|
+
if (!t || t.length === 0) throw Error("At least one dataset ID is required");
|
|
1427
|
+
let { valid: n, invalid: r } = e(t);
|
|
1428
|
+
if (r.length > 0 && console.warn(`[DataBroker] Invalid dataset IDs provided (not valid UUIDs): ${r.join(", ")}. These will be skipped.`), n.length === 0) throw Error("No valid dataset IDs provided. Dataset IDs must be valid UUIDs.");
|
|
1429
|
+
let i = [
|
|
1430
|
+
"dataset-names",
|
|
1431
|
+
n,
|
|
1432
|
+
this.authKey,
|
|
1433
|
+
this.authToken
|
|
1434
|
+
];
|
|
1435
|
+
return await this.queryClient.fetchQuery({
|
|
1436
|
+
queryKey: i,
|
|
1437
|
+
queryFn: async () => {
|
|
1438
|
+
let e = {
|
|
1439
|
+
action: "get",
|
|
1440
|
+
version: this.apiVersion,
|
|
1441
|
+
find: {
|
|
1442
|
+
where: {
|
|
1443
|
+
type: "dataset",
|
|
1444
|
+
id: { in: n }
|
|
1445
|
+
},
|
|
1446
|
+
attributes: [
|
|
1447
|
+
"name",
|
|
1448
|
+
"id",
|
|
1449
|
+
"description"
|
|
1450
|
+
]
|
|
1451
|
+
}
|
|
1452
|
+
};
|
|
1453
|
+
return (await this.fetchApi("/securable", e))?.rows ?? [];
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
async fetchDatasetsWithColumnsAndFormulas(t) {
|
|
1458
|
+
if (!t || t.length === 0) throw Error("At least one dataset ID is required");
|
|
1459
|
+
let { valid: n, invalid: r } = e(t);
|
|
1460
|
+
if (r.length > 0 && console.warn(`[DataBroker] Invalid dataset IDs provided (not valid UUIDs): ${r.join(", ")}. These will be skipped.`), n.length === 0) throw Error("No valid dataset IDs provided. Dataset IDs must be valid UUIDs.");
|
|
1461
|
+
let i = [
|
|
1462
|
+
"datasets",
|
|
1463
|
+
n,
|
|
1464
|
+
this.authKey,
|
|
1465
|
+
this.authToken
|
|
1466
|
+
];
|
|
1467
|
+
return await this.queryClient.fetchQuery({
|
|
1468
|
+
queryKey: i,
|
|
1469
|
+
queryFn: async () => {
|
|
1470
|
+
let e = {
|
|
1471
|
+
action: "get",
|
|
1472
|
+
version: this.apiVersion,
|
|
1473
|
+
find: {
|
|
1474
|
+
where: {
|
|
1475
|
+
type: "dataset",
|
|
1476
|
+
id: { in: n }
|
|
1477
|
+
},
|
|
1478
|
+
attributes: [
|
|
1479
|
+
"name",
|
|
1480
|
+
"id",
|
|
1481
|
+
"description"
|
|
1482
|
+
],
|
|
1483
|
+
include: [{
|
|
1484
|
+
model: "Column",
|
|
1485
|
+
attributes: [
|
|
1486
|
+
"id",
|
|
1487
|
+
"name",
|
|
1488
|
+
"description",
|
|
1489
|
+
"type",
|
|
1490
|
+
"subtype",
|
|
1491
|
+
"format",
|
|
1492
|
+
"hidden",
|
|
1493
|
+
"lowestLevel",
|
|
1494
|
+
"expression",
|
|
1495
|
+
"duration_levels",
|
|
1496
|
+
"duration_format"
|
|
1497
|
+
],
|
|
1498
|
+
separate: !0,
|
|
1499
|
+
order: [["order", "asc"]],
|
|
1500
|
+
include: [
|
|
1501
|
+
{
|
|
1502
|
+
model: "Column",
|
|
1503
|
+
attributes: [
|
|
1504
|
+
"id",
|
|
1505
|
+
"securable_id",
|
|
1506
|
+
"hierarchy_enabled",
|
|
1507
|
+
"currency_id"
|
|
1508
|
+
],
|
|
1509
|
+
as: "Joins"
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
model: "HierarchyLevel",
|
|
1513
|
+
attributes: [
|
|
1514
|
+
"id",
|
|
1515
|
+
"level",
|
|
1516
|
+
"name"
|
|
1517
|
+
],
|
|
1518
|
+
as: "HierarchyLevels"
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
model: "Currency",
|
|
1522
|
+
attributes: [
|
|
1523
|
+
"id",
|
|
1524
|
+
"name",
|
|
1525
|
+
"symbol"
|
|
1526
|
+
],
|
|
1527
|
+
as: "Currency"
|
|
1528
|
+
}
|
|
1529
|
+
]
|
|
1530
|
+
}, {
|
|
1531
|
+
model: "Formula",
|
|
1532
|
+
attributes: [
|
|
1533
|
+
"id",
|
|
1534
|
+
"name",
|
|
1535
|
+
"description",
|
|
1536
|
+
"type",
|
|
1537
|
+
"subtype",
|
|
1538
|
+
"format",
|
|
1539
|
+
"hidden",
|
|
1540
|
+
"lowestLevel",
|
|
1541
|
+
"expression",
|
|
1542
|
+
"duration_levels",
|
|
1543
|
+
"duration_format"
|
|
1544
|
+
],
|
|
1545
|
+
include: [{
|
|
1546
|
+
model: "Currency",
|
|
1547
|
+
attributes: [
|
|
1548
|
+
"id",
|
|
1549
|
+
"name",
|
|
1550
|
+
"symbol"
|
|
1551
|
+
],
|
|
1552
|
+
as: "Currency"
|
|
1553
|
+
}]
|
|
1554
|
+
}]
|
|
1555
|
+
}
|
|
1556
|
+
};
|
|
1557
|
+
return (await this.fetchApi("/securable", e))?.rows ?? [];
|
|
1558
|
+
}
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
async fetchData(e) {
|
|
1562
|
+
if (!e) throw Error("Query is required");
|
|
1563
|
+
let t = ["data", e];
|
|
1564
|
+
return await this.queryClient.fetchQuery({
|
|
1565
|
+
queryKey: t,
|
|
1566
|
+
queryFn: async () => {
|
|
1567
|
+
let t = {
|
|
1568
|
+
action: "get",
|
|
1569
|
+
version: this.apiVersion,
|
|
1570
|
+
find: { queries: [e] }
|
|
1571
|
+
}, n = await this.fetchApi("/data", t);
|
|
1572
|
+
return {
|
|
1573
|
+
data: n?.data || [],
|
|
1574
|
+
performance: n?.performance || {}
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
async validate(e, t) {
|
|
1580
|
+
if (!t?.expression) return { valid: !1 };
|
|
1581
|
+
let n = {
|
|
1582
|
+
action: "validate",
|
|
1583
|
+
version: this.apiVersion,
|
|
1584
|
+
properties: t
|
|
1585
|
+
}, r = await this.fetchApi(`/${e}`, n);
|
|
1586
|
+
return {
|
|
1587
|
+
valid: !!r?.valid,
|
|
1588
|
+
reason: r?.reason ?? r?.error,
|
|
1589
|
+
explanation: r?.explanation,
|
|
1590
|
+
type: r?.type
|
|
1591
|
+
};
|
|
1592
|
+
}
|
|
1593
|
+
async fetchTheme(e) {
|
|
1594
|
+
if (!e) throw Error("Theme ID is required");
|
|
1595
|
+
let t = ["theme", e];
|
|
1596
|
+
return await this.queryClient.fetchQuery({
|
|
1597
|
+
queryKey: t,
|
|
1598
|
+
queryFn: async () => (await this.fetchApi("/theme", {
|
|
1599
|
+
action: "get",
|
|
1600
|
+
version: this.apiVersion,
|
|
1601
|
+
find: { where: { id: e } }
|
|
1602
|
+
}))?.rows?.[0]
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
refreshAll() {
|
|
1606
|
+
this.queryClient.refetchQueries();
|
|
1607
|
+
}
|
|
1608
|
+
invalidateDatasetData(e) {
|
|
1609
|
+
e ? (this.queryClient.invalidateQueries({ queryKey: ["dataset", e] }), this.queryClient.invalidateQueries({ queryKey: ["columns", e] })) : this.queryClient.invalidateQueries({ queryKey: ["datasets"] });
|
|
1610
|
+
}
|
|
1611
|
+
invalidateAll() {
|
|
1612
|
+
this.queryClient.clear();
|
|
1613
|
+
}
|
|
1614
|
+
static getInstance(e = {}) {
|
|
1615
|
+
return n.instance ? Object.keys(e).length > 0 && n.instance.configure(e) : n.instance = new n(e), n.instance;
|
|
1616
|
+
}
|
|
1617
|
+
async fetchDatasetsRecursive(n) {
|
|
1618
|
+
if (!n || n.length === 0) throw Error("At least one dataset ID is required");
|
|
1619
|
+
let { valid: r, invalid: i } = e(n);
|
|
1620
|
+
if (i.length > 0 && console.warn(`[DataBroker] Invalid dataset IDs provided (not valid UUIDs): ${i.join(", ")}. These will be skipped.`), r.length === 0) throw Error("No valid dataset IDs provided. Dataset IDs must be valid UUIDs.");
|
|
1621
|
+
let a = [...new Set(r)], o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), c = (e) => {
|
|
1622
|
+
e && t(e) && !o.has(e) && !a.includes(e) && a.push(e);
|
|
1623
|
+
};
|
|
1624
|
+
for (; a.length > 0;) {
|
|
1625
|
+
let e = [];
|
|
1626
|
+
for (; a.length > 0 && e.length < 50;) {
|
|
1627
|
+
let t = a.shift();
|
|
1628
|
+
o.has(t) || e.push(t);
|
|
1629
|
+
}
|
|
1630
|
+
if (e.length !== 0) try {
|
|
1631
|
+
(await this.fetchDatasetsWithColumnsAndFormulas(e)).forEach((e) => {
|
|
1632
|
+
let t = this.postProcessDatasetMetadata(e);
|
|
1633
|
+
o.add(t.id), this.queryClient.setQueryData(["dataset", t.id], t), (t.outgoingJoins ?? []).map((e) => e.securable_id).filter((e) => !!e && e !== t.id).forEach((e) => {
|
|
1634
|
+
c(e);
|
|
1635
|
+
}), s.set(t.id, t), this.availableDatasets.some((e) => e.id === t.id) || this.availableDatasets.push({
|
|
1636
|
+
id: t.id,
|
|
1637
|
+
name: t.name,
|
|
1638
|
+
columns: t.columns
|
|
1639
|
+
});
|
|
1640
|
+
});
|
|
1641
|
+
} catch (e) {
|
|
1642
|
+
console.error("Error fetching datasets recursively:", e);
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
return [...s.values()];
|
|
1646
|
+
}
|
|
1647
|
+
postProcessDatasetMetadata(e) {
|
|
1648
|
+
let t = [], n = (e.columns ?? []).map((e) => {
|
|
1649
|
+
let n = e.joins ?? (Array.isArray(e.joins) ? e.joins : []);
|
|
1650
|
+
Array.isArray(n) && n.length > 0 && t.push(...n);
|
|
1651
|
+
let { joins: r, ...i } = e;
|
|
1652
|
+
return {
|
|
1653
|
+
...i,
|
|
1654
|
+
joins: n
|
|
1655
|
+
};
|
|
1656
|
+
});
|
|
1657
|
+
return {
|
|
1658
|
+
...e,
|
|
1659
|
+
columns: n,
|
|
1660
|
+
formulas: e.formulas ?? [],
|
|
1661
|
+
outgoingJoins: t,
|
|
1662
|
+
dateLoaded: /* @__PURE__ */ new Date()
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
getAvailableDatasets() {
|
|
1666
|
+
return this.availableDatasets;
|
|
1667
|
+
}
|
|
1668
|
+
getLinkedDatasetsIds(e) {
|
|
1669
|
+
let t = this.queryClient.getQueryData(["dataset", e]);
|
|
1670
|
+
return t ? (t.outgoingJoins ?? []).map((e) => e.securable_id).filter((t) => !!t && t !== e) : [];
|
|
1671
|
+
}
|
|
1672
|
+
}.getInstance();
|
|
1673
|
+
//#endregion
|
|
1674
|
+
export { te as t };
|