@luzmo/analytics-components-kit 1.0.4-beta.2 → 1.0.4-beta.3
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/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.js +1 -1
- package/components/ai-chat-CXt4wCe0.js +3715 -0
- package/components/ai-chat-Dnf-C838.cjs +258 -0
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/ai-interaction-textarea-B_-aZ9mc.cjs +68 -0
- package/components/ai-interaction-textarea-DSrZkuh9.js +299 -0
- package/components/area-chart-options.config-BjdRY1sr.js +146 -0
- package/components/area-chart-options.config-CJYI-zcZ.cjs +20 -0
- package/components/area-chart-positioning.config-PZ-MmeDb.cjs +20 -0
- package/components/area-chart-positioning.config-hLhrDJ3v.js +55 -0
- package/components/area-chart-slots.config-B56LJaky.cjs +20 -0
- package/components/area-chart-slots.config-BpvvqFy_.js +55 -0
- package/components/bar-chart-options.config-D2a-U6kG.cjs +20 -0
- package/components/bar-chart-options.config-DxNHV39Y.js +220 -0
- package/components/bar-chart-positioning.config-C6wWTn1o.js +59 -0
- package/components/bar-chart-positioning.config-DI8tOMbI.cjs +20 -0
- package/components/bar-chart-slots.config-CfIirCOX.js +50 -0
- package/components/bar-chart-slots.config-CkOVmYcA.cjs +20 -0
- package/components/base-BCmPH4SF.cjs +20 -0
- package/components/base-DYkpEuMf.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-CXey4hvi.js +296 -0
- package/components/box-plot-options.config-Di28EvZb.cjs +20 -0
- package/components/box-plot-positioning.config-D_qhNWth.cjs +20 -0
- package/components/box-plot-positioning.config-XG-WcIlA.js +48 -0
- package/components/box-plot-slots.config-DL-tTTn9.cjs +20 -0
- package/components/box-plot-slots.config-DclNulnH.js +40 -0
- package/components/bubble-chart-options.config-CeaOv4eF.js +115 -0
- package/components/bubble-chart-options.config-CnpBrIo6.cjs +20 -0
- package/components/bubble-chart-positioning.config-CHYBh_Nb.cjs +20 -0
- package/components/bubble-chart-positioning.config-o_r-GWQG.js +55 -0
- package/components/bubble-chart-slots.config-D7vQta7G.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-CLn7sV4W.js +75 -0
- package/components/bullet-chart-positioning.config-BF8PflF6.cjs +20 -0
- package/components/bullet-chart-positioning.config-DE5oy4M6.js +56 -0
- package/components/bullet-chart-slots.config-BaTbWYvU.cjs +20 -0
- package/components/bullet-chart-slots.config-IX7zJWc7.js +46 -0
- package/components/choropleth-map-options.config-CmtZtBAC.cjs +20 -0
- package/components/choropleth-map-options.config-DzTlJSO3.js +348 -0
- package/components/choropleth-map-positioning.config-Cf8bEIns.js +55 -0
- package/components/choropleth-map-positioning.config-DT1WWljP.cjs +20 -0
- package/components/choropleth-map-slots.config-ClMcW8wV.cjs +20 -0
- package/components/choropleth-map-slots.config-y0y9rf6i.js +53 -0
- package/components/circle-pack-chart-options.config-BA_G1sQ8.cjs +20 -0
- package/components/circle-pack-chart-options.config-DoLPbnPq.js +54 -0
- package/components/circle-pack-chart-positioning.config-DDpnake6.cjs +20 -0
- package/components/circle-pack-chart-positioning.config-Dy-DZ_de.js +48 -0
- package/components/circle-pack-chart-slots.config-IH2KV7z1.cjs +20 -0
- package/components/circle-pack-chart-slots.config-X9WVAykN.js +38 -0
- package/components/circular-gauge-options.config-BPUFjqx8.js +188 -0
- package/components/circular-gauge-options.config-BtP-YDIr.cjs +20 -0
- package/components/circular-gauge-positioning.config-D2t_3T1J.cjs +20 -0
- package/components/circular-gauge-positioning.config-DljBe7e-.js +48 -0
- package/components/circular-gauge-slots.config-B6ajddW-.cjs +20 -0
- package/components/circular-gauge-slots.config-NIEmIAIG.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-DQts3cE4.js +219 -0
- package/components/column-chart-options.config-eJ1Cexxe.cjs +20 -0
- package/components/column-chart-positioning.config-Bob00Qnq.js +55 -0
- package/components/column-chart-positioning.config-Uvvr5PxW.cjs +20 -0
- package/components/column-chart-slots.config-BY6y_rvE.cjs +20 -0
- package/components/column-chart-slots.config-CoFarLvo.js +50 -0
- package/components/combination-chart-options.config-C3kZ2fpK.cjs +20 -0
- package/components/combination-chart-options.config-CjSV6Ic4.js +87 -0
- package/components/combination-chart-positioning.config-BzbcDQ2O.cjs +20 -0
- package/components/combination-chart-positioning.config-DG2CM16I.js +48 -0
- package/components/combination-chart-slots.config-BGRHSwfr.js +43 -0
- package/components/combination-chart-slots.config-Ciza_y3a.cjs +20 -0
- package/components/conditional-number-options.config-CZFqw31c.js +205 -0
- package/components/conditional-number-options.config-CadHLi0m.cjs +20 -0
- package/components/conditional-number-positioning.config-CT8PqxDT.js +48 -0
- package/components/conditional-number-positioning.config-DpORiYgh.cjs +20 -0
- package/components/conditional-number-slots.config-CWX6OuUa.cjs +20 -0
- package/components/conditional-number-slots.config-r_C8T2HH.js +39 -0
- package/components/convert-data-field-to-slot-content-BQkSy_8B.cjs +20 -0
- package/components/convert-data-field-to-slot-content-C6IIqU7G.js +53 -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-CxUItUcs.cjs +54 -0
- package/components/data-field-RzkD37hR.js +121 -0
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -1
- package/components/data-field-level-55bJkqFt.cjs +55 -0
- package/components/data-field-level-zbu4U2m5.js +246 -0
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/data-field-panel-C3O77CIF.cjs +87 -0
- package/components/data-field-panel-Ob-hNZwz.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-CYQy6Ow-.js +262 -0
- package/components/data-fields-select-D-nSjOep.cjs +41 -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-BW5v_7_L.cjs +75 -0
- package/components/dataset-selector-list-DwfeaUGu.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-BU7YhT7l.cjs +79 -0
- package/components/dataset-selector-row-CLbx0joD.js +273 -0
- package/components/date-comparison-filter-options.config--clPxHFt.cjs +20 -0
- package/components/date-comparison-filter-options.config-s16IGX_4.js +126 -0
- package/components/date-comparison-filter-slots.config-DQBKeCRX.js +33 -0
- package/components/date-comparison-filter-slots.config-KO9B0lfS.cjs +20 -0
- package/components/date-filter-options.config-BdNFe-Ds.cjs +20 -0
- package/components/date-filter-options.config-ChFEIjN3.js +118 -0
- package/components/date-filter-slots.config-BrQoD-EF.cjs +20 -0
- package/components/date-filter-slots.config-DREsncpE.js +37 -0
- package/components/de-BY1wWZE8.cjs +20 -0
- package/components/de-D-xQoqdB.js +473 -0
- package/components/decorate-CaYbmmmm.js +28 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-COYLimuI.cjs +120 -0
- package/components/display-settings-ajA8j6kr.js +272 -0
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -1
- package/components/display-settings-binning-GKaol6nW.cjs +56 -0
- package/components/display-settings-binning-MHns2Ns6.js +110 -0
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -1
- package/components/display-settings-datetime-CLRXVpld.cjs +217 -0
- package/components/display-settings-datetime-D5eBAfWQ.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-CpulhtNX.js +89 -0
- package/components/display-settings-grand-totals-DltI_Z-x.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-CurqaTi5.cjs +190 -0
- package/components/display-settings-numeric-DnyXOV_x.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-DP2grX4n.cjs +229 -0
- package/components/display-settings-period-over-period-Do4qG7yY.js +433 -0
- package/components/donut-chart-options.config-K-HkE7sL.cjs +20 -0
- package/components/donut-chart-options.config-WNOpb2n9.js +207 -0
- package/components/donut-chart-positioning.config-BLnTmwTZ.cjs +20 -0
- package/components/donut-chart-positioning.config-Bl96um6F.js +48 -0
- package/components/donut-chart-slots.config-DEQ3Cw6c.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-DBNawOPR.js +153 -0
- package/components/dropdown-filter-slots.config-BBZChIHC.cjs +20 -0
- package/components/dropdown-filter-slots.config-DcStZGjV.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-BIaD4kOL.cjs +20 -0
- package/components/es-CLnBAiLu.js +473 -0
- package/components/evolution-number-options.config-Bt1FZqqQ.cjs +20 -0
- package/components/evolution-number-options.config-CrIM2GTn.js +228 -0
- package/components/evolution-number-positioning.config-DSoC35zp.cjs +20 -0
- package/components/evolution-number-positioning.config-DXNPD29G.js +48 -0
- package/components/evolution-number-slots.config-Bq_JlxgK.js +37 -0
- package/components/evolution-number-slots.config-CYxdcD-x.cjs +20 -0
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-expression-picker-0eNf_L9I.cjs +38 -0
- package/components/filter-expression-picker-D_buTmzJ.js +425 -0
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -1
- package/components/filter-item-DGnRmeaB.cjs +58 -0
- package/components/filter-item-VzEHDr04.js +242 -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-C1lDTmKM.cjs +60 -0
- package/components/filter-value-picker-CIblY-PW.js +151 -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-DQpEf_tv.js +139 -0
- package/components/filter-value-picker-datetime-dCo1_pma.cjs +42 -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-DaZlasgM.cjs +47 -0
- package/components/filter-value-picker-hierarchy-DzHUrpyk.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-BU975w8c.js +219 -0
- package/components/filter-value-picker-numeric-D-dUSGAP.cjs +48 -0
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/filters-BgTnxSKg.js +400 -0
- package/components/filters-Cx1S1-vx.cjs +150 -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-CeDEKB7D.js +138 -0
- package/components/formula-D7E8UieE.cjs +45 -0
- package/components/formula-codemirror-CFMYytMd.cjs +215 -0
- package/components/formula-codemirror-MygWCu2u.js +11973 -0
- package/components/formula-display-store-BYa910x_.js +1086 -0
- package/components/formula-display-store-DjjsQ5mW.cjs +20 -0
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +3 -3
- package/components/formula-editor-4PoZ3BlC.cjs +218 -0
- package/components/formula-editor-DeYzzLDr.js +666 -0
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -1
- package/components/formula-field-DXdxspyY.js +40 -0
- package/components/formula-field-DkKXMIMg.cjs +20 -0
- package/components/formula-input-base-Bz_XVZcs.cjs +49 -0
- package/components/formula-input-base-Dok5ujvH.js +236 -0
- package/components/fr-CHG2Tcby.cjs +20 -0
- package/components/fr-DIwbOnwC.js +473 -0
- package/components/funnel-chart-options.config-BAIgb6x9.cjs +20 -0
- package/components/funnel-chart-options.config-k0X4rkj-.js +187 -0
- package/components/funnel-chart-positioning.config-BcsV1xp7.cjs +20 -0
- package/components/funnel-chart-positioning.config-CWSM8nTo.js +48 -0
- package/components/funnel-chart-slots.config-CSI5mdma.cjs +20 -0
- package/components/funnel-chart-slots.config-DKhaZf_r.js +43 -0
- package/components/get-css-variable-Bpma6ZOo.js +63 -0
- package/components/get-css-variable-rHTFFWYM.cjs +20 -0
- package/components/get-dataset-name-Dwuh7DWE.cjs +20 -0
- package/components/get-dataset-name-SfDNjsuR.js +27 -0
- package/components/groupings-BNrLlXIB.cjs +20 -0
- package/components/groupings-okwLJKoG.js +52 -0
- package/components/heat-map-options.config-Ct-93RVQ.cjs +20 -0
- package/components/heat-map-options.config-_xxAm6iG.js +224 -0
- package/components/heat-map-positioning.config-C0dkG5_9.cjs +20 -0
- package/components/heat-map-positioning.config-DQJP4mTG.js +48 -0
- package/components/heat-map-slots.config-BDfEGgq5.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-DxRbWqJ8.js +372 -0
- package/components/heat-table-positioning.config-BzSpf7ed.cjs +20 -0
- package/components/heat-table-positioning.config-WUHNZPT-.js +55 -0
- package/components/heat-table-slots.config-CH6Q9203.cjs +20 -0
- package/components/heat-table-slots.config-CVh1TEJJ.js +49 -0
- package/components/hexbin-map-options.config-CUAv6zuD.cjs +20 -0
- package/components/hexbin-map-options.config-CmAmK-jM.js +276 -0
- package/components/hexbin-map-positioning.config-CJPhgdt2.js +48 -0
- package/components/hexbin-map-positioning.config-Cno9WIc9.cjs +20 -0
- package/components/hexbin-map-slots.config-BdkQVzI7.cjs +20 -0
- package/components/hexbin-map-slots.config-rxPZ4kwL.js +37 -0
- package/components/image-options.config-DJ2DEf7g.js +153 -0
- package/components/image-options.config-DXqA7sAa.cjs +20 -0
- package/components/image-slots.config-DprzKxj3.cjs +20 -0
- package/components/image-slots.config-bDNDmiWy.js +24 -0
- package/components/index.cjs +1 -1
- package/components/index.js +63 -62
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +7 -0
- package/components/interactive-viz-item/index.cjs +20 -0
- package/components/interactive-viz-item/index.d.ts +10 -0
- package/components/interactive-viz-item/index.js +28 -0
- package/components/interactive-viz-item/interactive-viz-item.d.ts +96 -0
- package/components/interactive-viz-item/types.d.ts +117 -0
- package/components/interactive-viz-item-63pap_oz.cjs +247 -0
- package/components/interactive-viz-item-QVji6wbp.js +693 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/item-grid-CO_cqGqJ.js +4559 -0
- package/components/item-grid-CRAoMdCq.cjs +113 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/item-option-Bc6qXONK.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-VpgTKSIV.js +118 -0
- package/components/item-option-action-button-group-jPUDKP3M.cjs +53 -0
- package/components/item-option-base-Bk9L8Ie7.cjs +56 -0
- package/components/item-option-base-VV7gyznL.js +123 -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-CQgG_NPQ.js +2041 -0
- package/components/item-option-color-palette-picker-kch0Ep_5.cjs +40 -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-BmQBTQzb.js +87 -0
- package/components/item-option-color-picker-DeDwpICb.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-Cj6sZ72F.cjs +98 -0
- package/components/item-option-color-range-D2kHXssY.js +220 -0
- package/components/item-option-iQM2pOGK.cjs +252 -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-Cc9ph205.cjs +33 -0
- package/components/item-option-multi-language-field-DbqcqhhN.js +82 -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-B6GFKuLN.cjs +38 -0
- package/components/item-option-number-field-BbCVJeXZ.js +102 -0
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/item-option-panel-6UFGCcnF.cjs +67 -0
- package/components/item-option-panel-CrNZ0xIF.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-DJKTAG9w.cjs +37 -0
- package/components/item-option-picker-YquXTQNY.js +77 -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-Csc4Y6dN.cjs +32 -0
- package/components/item-option-position-picker-DKvsF-VQ.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-Bxcbu_IR.js +164 -0
- package/components/item-option-positions-number-field-DBV6Yekk.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-Bzh4RtSn.cjs +37 -0
- package/components/item-option-radio-button-group-Cw-xUSUS.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-BwQnaxvO.js +81 -0
- package/components/item-option-slider-DUqo3Fw0.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-DBsakQjy.cjs +30 -0
- package/components/item-option-switch-IixoilYJ.js +69 -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-B4V_sKnM.cjs +33 -0
- package/components/item-option-text-field-CdWylobQ.js +80 -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-BmvMi3dI.js +324 -0
- package/components/item-slot-drop-D8KI2kny.cjs +91 -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-Crw-ktDj.cjs +57 -0
- package/components/item-slot-drop-panel-D5vaJidp.js +355 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/item-slot-picker-BZV33YoP.js +474 -0
- package/components/item-slot-picker-BgQAviso.cjs +158 -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-C26kZ4zE.cjs +81 -0
- package/components/item-slot-picker-panel-DyhRlAKN.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-CfHRdG6O.js +168 -0
- package/components/line-chart-options.config-DKQ1k4lg.cjs +20 -0
- package/components/line-chart-positioning.config-Cfcgse1N.js +55 -0
- package/components/line-chart-positioning.config-pSGQm1C1.cjs +20 -0
- package/components/line-chart-slots.config-Cjp4btvG.cjs +20 -0
- package/components/line-chart-slots.config-DKy4D4Yt.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-BYWQe1fg.js +45 -0
- package/components/localized-mixin-DrK3QZNa.cjs +20 -0
- package/components/marker-map-options.config-C_aGdRQQ.js +117 -0
- package/components/marker-map-options.config-DBPPcGN4.cjs +20 -0
- package/components/marker-map-positioning.config-B-HitobG.cjs +20 -0
- package/components/marker-map-positioning.config-DTCPGbnG.js +48 -0
- package/components/marker-map-slots.config-BKRRAGwB.js +37 -0
- package/components/marker-map-slots.config-BOQ8AwRv.cjs +20 -0
- package/components/nl-C_g1Le3t.js +473 -0
- package/components/nl-PxN5EqzT.cjs +20 -0
- package/components/ohlc-chart-options.config-Bd-vLN0I.js +65 -0
- package/components/ohlc-chart-options.config-D9h-VLdq.cjs +20 -0
- package/components/ohlc-chart-positioning.config-D0kJJkXw.js +78 -0
- package/components/ohlc-chart-positioning.config-NhpIR1T3.cjs +20 -0
- package/components/ohlc-chart-slots.config-CUBUexI-.cjs +20 -0
- package/components/ohlc-chart-slots.config-DC8NCD0o.js +68 -0
- package/components/parallel-coordinates-plot-options.config-BUo6XxfP.js +42 -0
- package/components/parallel-coordinates-plot-options.config-ovgY0A7j.cjs +20 -0
- package/components/parallel-coordinates-plot-positioning.config-DLF0U4lZ.cjs +20 -0
- package/components/parallel-coordinates-plot-positioning.config-Dzd0eaka.js +48 -0
- package/components/parallel-coordinates-plot-slots.config-BXZ-NmbH.cjs +20 -0
- package/components/parallel-coordinates-plot-slots.config-Dy-9mztD.js +46 -0
- package/components/pivot-table-options.config-BxKo1DCU.cjs +20 -0
- package/components/pivot-table-options.config-DrzB4qVX.js +245 -0
- package/components/pivot-table-positioning.config-BvUjUkG3.cjs +20 -0
- package/components/pivot-table-positioning.config-PKXfqjiN.js +55 -0
- package/components/pivot-table-slots.config-OQe8tS40.js +55 -0
- package/components/pivot-table-slots.config-VxbOGtmB.cjs +20 -0
- package/components/pragmatic-element-adapter-BFUFSRw6.js +1252 -0
- package/components/pragmatic-element-adapter-CKhTZWGj.cjs +24 -0
- package/components/pyramid-chart-options.config-Dux8839h.js +240 -0
- package/components/pyramid-chart-options.config-lioHQSoq.cjs +20 -0
- package/components/pyramid-chart-positioning.config-48iZhPdi.cjs +20 -0
- package/components/pyramid-chart-positioning.config-C8yiD0R3.js +55 -0
- package/components/pyramid-chart-slots.config-CN_Q2YsP.cjs +20 -0
- package/components/pyramid-chart-slots.config-DwlZaBAF.js +50 -0
- package/components/radar-chart-options.config-ColtKo6Z.js +130 -0
- package/components/radar-chart-options.config-DhnoFEzo.cjs +20 -0
- package/components/radar-chart-positioning.config-CpqhJjoz.cjs +20 -0
- package/components/radar-chart-positioning.config-L5Eu5W1I.js +55 -0
- package/components/radar-chart-slots.config-BISYnTom.cjs +20 -0
- package/components/radar-chart-slots.config-BuHg4Zeg.js +53 -0
- package/components/regular-table-options.config-Bk6CBPgj.cjs +20 -0
- package/components/regular-table-options.config-DopdB4eB.js +148 -0
- package/components/regular-table-slots.config--SVEN5Cu.js +35 -0
- package/components/regular-table-slots.config-BU6Ff96U.cjs +20 -0
- package/components/route-map-options.config-BCuJw5k3.js +326 -0
- package/components/route-map-options.config-CAi93e7I.cjs +20 -0
- package/components/route-map-positioning.config-DTwMkeiu.cjs +20 -0
- package/components/route-map-positioning.config-DVb_Jiws.js +66 -0
- package/components/route-map-slots.config-CmVIxDkx.js +59 -0
- package/components/route-map-slots.config-Dznp0DT3.cjs +20 -0
- package/components/sankey-diagram-options.config-BH3kpjFs.js +126 -0
- package/components/sankey-diagram-options.config-D7ZrZV0g.cjs +20 -0
- package/components/sankey-diagram-positioning.config-Dk0siSAo.js +66 -0
- package/components/sankey-diagram-positioning.config-_kyrBnJ4.cjs +20 -0
- package/components/sankey-diagram-slots.config-TKCUvHOD.cjs +20 -0
- package/components/sankey-diagram-slots.config-lbkF8DWJ.js +61 -0
- package/components/scatter-plot-options.config-DXqKb34r.cjs +20 -0
- package/components/scatter-plot-options.config-Dn6ILlJw.js +302 -0
- package/components/scatter-plot-positioning.config-440yA7x5.js +77 -0
- package/components/scatter-plot-positioning.config-DaYstFV8.cjs +20 -0
- package/components/scatter-plot-slots.config-CPsk9FUg.cjs +20 -0
- package/components/scatter-plot-slots.config-DEFWWj0_.js +74 -0
- package/components/search-filter-options.config-DWKVxBc5.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-vyPYIXE7.js +39 -0
- package/components/set-locale-DB1FMgtK.js +43 -0
- package/components/set-locale-DKCZkJVL.cjs +20 -0
- package/components/slicer-filter-options.config-BhLn4U1W.cjs +20 -0
- package/components/slicer-filter-options.config-C6HPrjIw.js +226 -0
- package/components/slicer-filter-positioning.config-B6wPo539.js +48 -0
- package/components/slicer-filter-positioning.config-DdfTuXdV.cjs +20 -0
- package/components/slicer-filter-slots.config-BZWCSkX4.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-CvqHWJIX.js +72 -0
- package/components/slider-filter-slots.config-BY9X2rlz.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-BBnibMJU.cjs +64 -0
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/slot-menu-list-D193fsQX.cjs +38 -0
- package/components/slot-menu-list-gKDiWsHB.js +325 -0
- package/components/slot-menu-w7sla2N0.js +400 -0
- package/components/slots-config-DIBoffEb.js +77 -0
- package/components/slots-config-YdyClHLc.cjs +20 -0
- package/components/speedometer-chart-options.config-DEW_D9w1.cjs +20 -0
- package/components/speedometer-chart-options.config-wX3KzciD.js +246 -0
- package/components/speedometer-chart-positioning.config-BVYrl1_s.cjs +20 -0
- package/components/speedometer-chart-positioning.config-rI2Jxymu.js +48 -0
- package/components/speedometer-chart-slots.config-0Tv8EtKT.js +39 -0
- package/components/speedometer-chart-slots.config-1BqQZ2vP.cjs +20 -0
- package/components/spike-map-options.config-DpgsB_L-.js +413 -0
- package/components/spike-map-options.config-LPAyKMHe.cjs +20 -0
- package/components/spike-map-positioning.config-2XZLrk9D.cjs +20 -0
- package/components/spike-map-positioning.config-CiY2ju4c.js +55 -0
- package/components/spike-map-slots.config-B7OehIoc.cjs +20 -0
- package/components/spike-map-slots.config-C6e0NXiD.js +47 -0
- package/components/strip-plot-options.config-BzhxzU-s.js +53 -0
- package/components/strip-plot-options.config-vBd38UQs.cjs +20 -0
- package/components/strip-plot-positioning.config-CFQPdgei.js +48 -0
- package/components/strip-plot-positioning.config-CkC8JUwR.cjs +20 -0
- package/components/strip-plot-slots.config-BjwAuVoh.js +38 -0
- package/components/strip-plot-slots.config-CAU0z3q4.cjs +20 -0
- package/components/sunburst-chart-options.config-Ba_H54ip.js +160 -0
- package/components/sunburst-chart-options.config-CUFOuT2J.cjs +20 -0
- package/components/sunburst-chart-positioning.config-BHJf7n-T.js +48 -0
- package/components/sunburst-chart-positioning.config-DVt84HYB.cjs +20 -0
- package/components/sunburst-chart-slots.config-BCNUNkd9.cjs +20 -0
- package/components/sunburst-chart-slots.config-h114Cuzh.js +38 -0
- package/components/symbol-map-options.config-CR07hvK0.cjs +20 -0
- package/components/symbol-map-options.config-DeJyZILi.js +157 -0
- package/components/symbol-map-positioning.config-DQK1q4GP.cjs +20 -0
- package/components/symbol-map-positioning.config-tZp8vwwl.js +55 -0
- package/components/symbol-map-slots.config-BmvI5_VE.js +53 -0
- package/components/symbol-map-slots.config-Dz_tor5P.cjs +20 -0
- package/components/text-options.config-BXuZMKTG.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-18Chz73A.js +24 -0
- package/components/treemap-chart-options.config-Be-LBEGy.js +184 -0
- package/components/treemap-chart-options.config-p21eSXKG.cjs +20 -0
- package/components/treemap-chart-positioning.config-CEYAh7Uc.js +55 -0
- package/components/treemap-chart-positioning.config-DQfHJ-ZS.cjs +20 -0
- package/components/treemap-chart-slots.config-BJqqnUEF.cjs +20 -0
- package/components/treemap-chart-slots.config-e7ORieH-.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-CJf8VNzX.cjs +20 -0
- package/components/utils-Ci1YA9yB.js +352 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +9 -9
- 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-D3bEFsYa.js +24 -0
- package/components/venn-diagram-options.config-EmRhf40r.cjs +20 -0
- package/components/venn-diagram-positioning.config-2rUFGTJh.js +55 -0
- package/components/venn-diagram-positioning.config-DQa6-GAn.cjs +20 -0
- package/components/venn-diagram-slots.config-Dm-IC6JS.js +47 -0
- package/components/venn-diagram-slots.config-MpkJTf5q.cjs +20 -0
- package/components/video-options.config-B5aOwGa4.js +127 -0
- package/components/video-options.config-Dh_lU4c1.cjs +20 -0
- package/components/video-slots.config-Bmh6mcUv.cjs +20 -0
- package/components/video-slots.config-D2MtpAGI.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-B4BJBNEq.js +170 -0
- package/components/viz-item-menu-DD8ndROu.cjs +55 -0
- package/components/wordcloud-chart-options.config-DntH4Hvg.js +90 -0
- package/components/wordcloud-chart-options.config-mx2CbmrI.cjs +20 -0
- package/components/wordcloud-chart-positioning.config-C3Zulr2Q.js +55 -0
- package/components/wordcloud-chart-positioning.config-DhoAsQP-.cjs +20 -0
- package/components/wordcloud-chart-slots.config-C303nwAz.cjs +20 -0
- package/components/wordcloud-chart-slots.config-CsFBBXDz.js +45 -0
- package/custom-elements.json +487 -0
- package/index.d.ts +1 -0
- package/package.json +7 -2
- package/react/README.md +1 -0
- package/react/components/interactive-viz-item/index.ts +1 -0
- package/react/components/interactive-viz-item/types.ts +122 -0
- package/react/components/interactive-viz-item.component.ts +33 -0
- package/react/esm/components/interactive-viz-item/index.d.ts +1 -0
- package/react/esm/components/interactive-viz-item/index.js +1 -0
- package/react/esm/components/interactive-viz-item/types.d.ts +117 -0
- package/react/esm/components/interactive-viz-item/types.js +16 -0
- package/react/esm/components/interactive-viz-item.component.d.ts +16 -0
- package/react/esm/components/interactive-viz-item.component.js +21 -0
- package/react/esm/index.d.ts +3 -2
- package/react/esm/index.js +4 -0
- package/react/index.ts +4 -0
- package/react/luzmo-stub.d.ts +8 -0
- package/react/utils/store/index.d.ts +5 -5
- package/react/utils/store/store-registry.d.ts +1 -1
- package/utils/store/index.d.ts +5 -5
- package/utils/store/store-registry.d.ts +1 -1
- package/components/ai-chat-BMDfKnEj.cjs +0 -258
- package/components/ai-chat-Cd26aDpX.js +0 -3718
- package/components/ai-interaction-textarea-CPfJqTB0.cjs +0 -68
- package/components/ai-interaction-textarea-DkBglh6Q.js +0 -299
- package/components/area-chart-options.config-4OY_kXkB.js +0 -146
- package/components/area-chart-options.config-Cf1VrUNv.cjs +0 -20
- package/components/area-chart-positioning.config-CAPrtEZW.js +0 -55
- package/components/area-chart-positioning.config-CfC43YUW.cjs +0 -20
- package/components/area-chart-slots.config--pd_dBTn.js +0 -55
- package/components/area-chart-slots.config-BOhwdLnr.cjs +0 -20
- package/components/bar-chart-options.config-BF7Q15FL.cjs +0 -20
- package/components/bar-chart-options.config-C3puwFpi.js +0 -220
- package/components/bar-chart-positioning.config-C1MLYyl9.js +0 -59
- package/components/bar-chart-positioning.config-vJOALpQP.cjs +0 -20
- package/components/bar-chart-slots.config-DMWjAd5a.cjs +0 -20
- package/components/bar-chart-slots.config-Dr7v4xxd.js +0 -50
- package/components/base-B_wdCOxV.js +0 -249
- package/components/base-kQ6cjcIZ.cjs +0 -20
- package/components/base-store-DHC2m2Os.cjs +0 -20
- package/components/base-store-DmDe0dTU.js +0 -160
- package/components/box-plot-options.config-B486nCds.js +0 -296
- package/components/box-plot-options.config-BkD5CYGz.cjs +0 -20
- package/components/box-plot-positioning.config-CA27sCpO.js +0 -48
- package/components/box-plot-positioning.config-DVNeh9kg.cjs +0 -20
- package/components/box-plot-slots.config-5B_pTjPJ.cjs +0 -20
- package/components/box-plot-slots.config-Bdb7pkky.js +0 -40
- package/components/bubble-chart-options.config-4f9FUNhc.cjs +0 -20
- package/components/bubble-chart-options.config-BymUqNR5.js +0 -115
- package/components/bubble-chart-positioning.config-Dg92VJnB.cjs +0 -20
- package/components/bubble-chart-positioning.config-OlbBZU4m.js +0 -55
- package/components/bubble-chart-slots.config-B4tsJDuz.js +0 -47
- package/components/bubble-chart-slots.config-VHKuntJk.cjs +0 -20
- package/components/bullet-chart-options.config-BtyRdRk2.js +0 -75
- package/components/bullet-chart-options.config-DDygYBiy.cjs +0 -20
- package/components/bullet-chart-positioning.config-BwqxpSSL.cjs +0 -20
- package/components/bullet-chart-positioning.config-Y18yvzoc.js +0 -56
- package/components/bullet-chart-slots.config-CZfTgKZ4.cjs +0 -20
- package/components/bullet-chart-slots.config-ccCSNJ5q.js +0 -46
- package/components/choropleth-map-options.config-5W6nNlL7.cjs +0 -20
- package/components/choropleth-map-options.config-CqCciAvW.js +0 -348
- package/components/choropleth-map-positioning.config-Dmzy3fMc.js +0 -55
- package/components/choropleth-map-positioning.config-y-bYMoxr.cjs +0 -20
- package/components/choropleth-map-slots.config-CZKWF1qV.cjs +0 -20
- package/components/choropleth-map-slots.config-X2YYrSXc.js +0 -53
- package/components/circle-pack-chart-options.config-CD8MWMTw.cjs +0 -20
- package/components/circle-pack-chart-options.config-D9C-ltHA.js +0 -54
- package/components/circle-pack-chart-positioning.config-YDdY2cc2.js +0 -48
- package/components/circle-pack-chart-positioning.config-wKIQDFe8.cjs +0 -20
- package/components/circle-pack-chart-slots.config-BIO1dZsK.js +0 -38
- package/components/circle-pack-chart-slots.config-GL7T5_o4.cjs +0 -20
- package/components/circular-gauge-options.config-D9gcbX57.cjs +0 -20
- package/components/circular-gauge-options.config-De6SlTLT.js +0 -188
- package/components/circular-gauge-positioning.config-C41euPS9.js +0 -48
- package/components/circular-gauge-positioning.config-CKNanoFX.cjs +0 -20
- package/components/circular-gauge-slots.config-DUHabt3G.cjs +0 -20
- package/components/circular-gauge-slots.config-Dv_7fAD_.js +0 -39
- package/components/color-BWnYpOu7.js +0 -3812
- package/components/color-range-utils-CwwtLDX_.js +0 -63
- package/components/column-chart-options.config-5Dbg3FmH.js +0 -219
- package/components/column-chart-options.config-CiIw23Yo.cjs +0 -20
- package/components/column-chart-positioning.config-BdyuErF8.js +0 -55
- package/components/column-chart-positioning.config-Enx15Dqh.cjs +0 -20
- package/components/column-chart-slots.config-CM5aytbj.cjs +0 -20
- package/components/column-chart-slots.config-eHvTwZLX.js +0 -50
- package/components/combination-chart-options.config-BzmLGCal.js +0 -87
- package/components/combination-chart-options.config-DaTYSfnr.cjs +0 -20
- package/components/combination-chart-positioning.config-BQRn0EfF.js +0 -48
- package/components/combination-chart-positioning.config-CqlKA__j.cjs +0 -20
- package/components/combination-chart-slots.config-BwUOXFCR.cjs +0 -20
- package/components/combination-chart-slots.config-CG40JjE3.js +0 -43
- package/components/conditional-number-options.config-BPzCxo2q.cjs +0 -20
- package/components/conditional-number-options.config-CVgV7s7f.js +0 -205
- package/components/conditional-number-positioning.config-BBivi4ps.js +0 -48
- package/components/conditional-number-positioning.config-CR45rPru.cjs +0 -20
- package/components/conditional-number-slots.config-B7maHIaG.cjs +0 -20
- package/components/conditional-number-slots.config-o22l-qLv.js +0 -39
- package/components/data-broker-Bdv5V8Yp.js +0 -1680
- package/components/data-broker-DWEXs6-2.cjs +0 -20
- package/components/data-field-CAGprHjS.cjs +0 -54
- package/components/data-field-CLfUWgK9.js +0 -121
- package/components/data-field-level-7qi9K__S.cjs +0 -55
- package/components/data-field-level-CfJ0dmxo.js +0 -247
- package/components/data-field-panel-DUc8y4WA.cjs +0 -87
- package/components/data-field-panel-N7mukLj6.js +0 -385
- package/components/data-fields-select-B1pwPYt6.js +0 -262
- package/components/data-fields-select-qCWuzckJ.cjs +0 -41
- package/components/dataset-icon-CWT5Ju8w.js +0 -125
- package/components/dataset-selector-list-BPBZ04Lf.cjs +0 -75
- package/components/dataset-selector-list-DmajZuNC.js +0 -313
- package/components/dataset-selector-row-SJzYIpO6.js +0 -273
- package/components/dataset-selector-row-qxfmcxpm.cjs +0 -79
- package/components/date-comparison-filter-options.config-4yHPEJSU.cjs +0 -20
- package/components/date-comparison-filter-options.config-BJg_WqL4.js +0 -126
- package/components/date-comparison-filter-slots.config-BIK5aZ6P.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-N6eGgPGL.js +0 -118
- package/components/date-filter-slots.config-CJJ4P0v6.js +0 -37
- package/components/date-filter-slots.config-Cuzz0RjE.cjs +0 -20
- package/components/de-BHQ-FfU0.js +0 -465
- package/components/de-DnADyZVQ.cjs +0 -20
- package/components/decorate-DyMgX_Uh.js +0 -28
- package/components/default-acceptable-data-field-types-DFOFWWnT.js +0 -53
- package/components/default-acceptable-data-field-types-fPsz64ka.cjs +0 -20
- package/components/display-settings-CkkjJjem.js +0 -272
- package/components/display-settings-DnzOjr-1.cjs +0 -120
- package/components/display-settings-binning-BohjN2qK.js +0 -110
- package/components/display-settings-binning-C7-gByrp.cjs +0 -56
- package/components/display-settings-datetime-7pUcku_h.js +0 -413
- package/components/display-settings-datetime-DL0Qcz8Y.cjs +0 -217
- package/components/display-settings-grand-totals-CV5guBhH.js +0 -89
- package/components/display-settings-grand-totals-DHQSZqMI.cjs +0 -44
- package/components/display-settings-numeric--5zk8_7K.cjs +0 -190
- package/components/display-settings-numeric-D2LjMepO.js +0 -479
- package/components/display-settings-period-over-period-BE22oHvV.cjs +0 -229
- package/components/display-settings-period-over-period-sqZU6Zj_.js +0 -433
- package/components/donut-chart-options.config-C66yOoed.js +0 -207
- package/components/donut-chart-options.config-D8Bvo6Cc.cjs +0 -20
- package/components/donut-chart-positioning.config-B9sm4yFV.cjs +0 -20
- package/components/donut-chart-positioning.config-DtaPAgXE.js +0 -48
- package/components/donut-chart-slots.config-2XbT9Uu8.js +0 -39
- package/components/donut-chart-slots.config-Bi08z-XB.cjs +0 -20
- package/components/dropdown-filter-options.config-BRzYD0KE.cjs +0 -20
- package/components/dropdown-filter-options.config-Cm_wK0mn.js +0 -153
- package/components/dropdown-filter-slots.config-CR-Ko6q_.cjs +0 -20
- package/components/dropdown-filter-slots.config-CnESCGuw.js +0 -38
- 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-B4xWcOeJ.cjs +0 -20
- package/components/es-CkCov6l7.js +0 -465
- package/components/evolution-number-options.config-07Jd0oUL.js +0 -228
- package/components/evolution-number-options.config-CkqNYgWn.cjs +0 -20
- package/components/evolution-number-positioning.config-DVXhBZYj.cjs +0 -20
- package/components/evolution-number-positioning.config-v8_6kB1H.js +0 -48
- package/components/evolution-number-slots.config-BKdD3cKw.js +0 -37
- package/components/evolution-number-slots.config-CikuQYgm.cjs +0 -20
- package/components/filter-expression-picker-CF4Otpll.cjs +0 -38
- package/components/filter-expression-picker-DCrCAIhg.js +0 -425
- package/components/filter-item-BjRerEjB.cjs +0 -58
- package/components/filter-item-D2Dct0a3.js +0 -242
- package/components/filter-value-picker-CCKV4PWs.js +0 -151
- package/components/filter-value-picker-datetime-CFCV2jkK.js +0 -139
- package/components/filter-value-picker-datetime-D20WnWar.cjs +0 -42
- package/components/filter-value-picker-enC3f3ja.cjs +0 -60
- package/components/filter-value-picker-hierarchy-Drrm1ncu.cjs +0 -47
- package/components/filter-value-picker-hierarchy-ktVBIpcS.js +0 -232
- package/components/filter-value-picker-numeric-BYspQRSi.js +0 -219
- package/components/filter-value-picker-numeric-BtZaQvkr.cjs +0 -48
- package/components/filters-CfH_4MKZ.cjs +0 -150
- package/components/filters-Ew0ARuxD.js +0 -400
- package/components/formatter-BeXmurVe.cjs +0 -20
- package/components/formula-BPHH_GKB.cjs +0 -45
- package/components/formula-DYdcMG-v.js +0 -138
- package/components/formula-codemirror-CFgPlkN8.cjs +0 -215
- package/components/formula-codemirror-CQonNhmd.js +0 -12018
- package/components/formula-display-store-BGzj13Cs.js +0 -1086
- package/components/formula-display-store-DFAvw21p.cjs +0 -20
- package/components/formula-editor-CtCvJkyS.cjs +0 -218
- package/components/formula-editor-KXxQlh2n.js +0 -666
- package/components/formula-field-OcD4TWAn.js +0 -40
- package/components/formula-field-aiqX7nRp.cjs +0 -20
- package/components/formula-input-base-CGe2ABn6.cjs +0 -49
- package/components/formula-input-base-CQPGmISj.js +0 -236
- package/components/fr-BOivrXqX.cjs +0 -20
- package/components/fr-BSFpJ50_.js +0 -465
- package/components/funnel-chart-options.config-BVmrhzna.cjs +0 -20
- package/components/funnel-chart-options.config-PV1Hlu91.js +0 -187
- package/components/funnel-chart-positioning.config-BT-YoTgv.js +0 -48
- package/components/funnel-chart-positioning.config-C5Z3JkuS.cjs +0 -20
- package/components/funnel-chart-slots.config-B8zC6Q6_.cjs +0 -20
- package/components/funnel-chart-slots.config-_9HUPvTb.js +0 -43
- package/components/get-css-variable-CBXsAxR6.cjs +0 -20
- package/components/get-css-variable-DYnldi15.js +0 -63
- package/components/get-dataset-name-BGCvfcdY.js +0 -27
- package/components/get-dataset-name-EkeeFzI3.cjs +0 -20
- package/components/groupings-CrE-yp0S.js +0 -52
- package/components/groupings-dIFi0bJY.cjs +0 -20
- package/components/heat-map-options.config-CQY6t9AL.js +0 -224
- package/components/heat-map-options.config-xPdOcXDk.cjs +0 -20
- package/components/heat-map-positioning.config-BpFis567.js +0 -48
- package/components/heat-map-positioning.config-HPftgmdz.cjs +0 -20
- package/components/heat-map-slots.config-B4AswVSo.js +0 -37
- package/components/heat-map-slots.config-Wp_oS8JQ.cjs +0 -20
- package/components/heat-table-options.config-DPbTFoRn.cjs +0 -20
- package/components/heat-table-options.config-IlVPk4Q4.js +0 -372
- package/components/heat-table-positioning.config-Canc3aEE.js +0 -55
- package/components/heat-table-positioning.config-wkrm8Fbk.cjs +0 -20
- package/components/heat-table-slots.config-BN7rtHZG.cjs +0 -20
- package/components/heat-table-slots.config-CB509zU4.js +0 -49
- package/components/hexbin-map-options.config-CSFSqpMU.cjs +0 -20
- package/components/hexbin-map-options.config-vzw6ovva.js +0 -276
- package/components/hexbin-map-positioning.config-CBv6Lij5.js +0 -48
- package/components/hexbin-map-positioning.config-D0hAchxV.cjs +0 -20
- package/components/hexbin-map-slots.config-Dyse0pui.js +0 -37
- package/components/hexbin-map-slots.config-mx5zUTrA.cjs +0 -20
- package/components/image-options.config-Cmrsd8Yu.js +0 -153
- package/components/image-options.config-DZ5q1D63.cjs +0 -20
- package/components/image-slots.config-CVj-DM07.js +0 -24
- package/components/image-slots.config-ODQBVz5H.cjs +0 -20
- package/components/item-grid-BXZXJV3g.cjs +0 -339
- package/components/item-grid-uWM-Unjx.js +0 -8814
- package/components/item-option-CEwjJc1p.cjs +0 -252
- package/components/item-option-action-button-group-BOxQFfBF.js +0 -118
- package/components/item-option-action-button-group-DXCVJqpt.cjs +0 -53
- package/components/item-option-base-DKieCS-Y.cjs +0 -56
- package/components/item-option-base-Dr5-WxZ9.js +0 -123
- package/components/item-option-color-palette-picker-7vSSpj5o.cjs +0 -40
- package/components/item-option-color-palette-picker-D_mABGWh.js +0 -2041
- package/components/item-option-color-picker-COLBYeRy.js +0 -87
- package/components/item-option-color-picker-DMyNeD2e.cjs +0 -34
- package/components/item-option-color-range-BFr0B6Vf.cjs +0 -98
- package/components/item-option-color-range-CueVlyT2.js +0 -220
- package/components/item-option-multi-language-field-CMuQwrwQ.js +0 -82
- package/components/item-option-multi-language-field-q7txF5xA.cjs +0 -33
- package/components/item-option-number-field-BODNSx66.js +0 -102
- package/components/item-option-number-field-DWeJWUxY.cjs +0 -38
- package/components/item-option-panel-CxOfVI0z.js +0 -183
- package/components/item-option-panel-D0dxyUfE.cjs +0 -67
- package/components/item-option-picker-BsP_0XyD.cjs +0 -37
- package/components/item-option-picker-CyX7qqrb.js +0 -77
- package/components/item-option-position-picker-CcmBYyqF.cjs +0 -32
- package/components/item-option-position-picker-LOg6P4Gl.js +0 -117
- package/components/item-option-positions-number-field-BCbWb1R6.js +0 -164
- package/components/item-option-positions-number-field-o3Qckgwd.cjs +0 -49
- package/components/item-option-radio-button-group-CDebmEn3.js +0 -74
- package/components/item-option-radio-button-group-CjLhWTEJ.cjs +0 -37
- package/components/item-option-slider-C9ZJZcdg.js +0 -81
- package/components/item-option-slider-CHbkJHLK.cjs +0 -33
- package/components/item-option-switch-BVMOOWya.js +0 -69
- package/components/item-option-switch-FRAZWozp.cjs +0 -30
- package/components/item-option-text-field-DkYqHfdJ.cjs +0 -33
- package/components/item-option-text-field-e6NLDlSq.js +0 -80
- package/components/item-option-uyAsPcfE.js +0 -919
- package/components/item-slot-drop-BUCjEfJf.cjs +0 -91
- package/components/item-slot-drop-CoReI68M.js +0 -324
- package/components/item-slot-drop-panel-CEI1q060.js +0 -355
- package/components/item-slot-drop-panel-DqekQtOr.cjs +0 -57
- package/components/item-slot-picker-CvbXFh6Z.cjs +0 -158
- package/components/item-slot-picker-dy5hVID5.js +0 -474
- package/components/item-slot-picker-panel-BUyp6Hbg.cjs +0 -81
- package/components/item-slot-picker-panel-CG0NyMDX.js +0 -448
- package/components/line-chart-options.config-1TpSJqeb.js +0 -168
- package/components/line-chart-options.config-BkK829A2.cjs +0 -20
- package/components/line-chart-positioning.config-61uNfPZs.js +0 -55
- package/components/line-chart-positioning.config-BNtGFWUK.cjs +0 -20
- package/components/line-chart-slots.config-CcCpwWzZ.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-CiBWThrZ.cjs +0 -20
- package/components/localized-mixin-EpweDrTk.js +0 -45
- package/components/marker-map-options.config-BfPFVxpD.cjs +0 -20
- package/components/marker-map-options.config-DTaax79J.js +0 -117
- package/components/marker-map-positioning.config-Bi5WCVgJ.js +0 -48
- package/components/marker-map-positioning.config-C2cL7uZJ.cjs +0 -20
- package/components/marker-map-slots.config-BOWmS_IZ.js +0 -37
- package/components/marker-map-slots.config-DigZk7lN.cjs +0 -20
- package/components/nl-DS4Y_g8B.cjs +0 -20
- package/components/nl-D_MleIlk.js +0 -465
- package/components/ohlc-chart-options.config-BsBVP-Io.cjs +0 -20
- package/components/ohlc-chart-options.config-Dfes8ROC.js +0 -65
- package/components/ohlc-chart-positioning.config-DFx99k9A.js +0 -78
- package/components/ohlc-chart-positioning.config-IAOfu4ue.cjs +0 -20
- package/components/ohlc-chart-slots.config-D3fzoQJH.cjs +0 -20
- package/components/ohlc-chart-slots.config-JRztPEXL.js +0 -68
- package/components/parallel-coordinates-plot-options.config--6iJkURT.cjs +0 -20
- package/components/parallel-coordinates-plot-options.config-NSk_HC0H.js +0 -42
- package/components/parallel-coordinates-plot-positioning.config-Bf0Leksw.cjs +0 -20
- package/components/parallel-coordinates-plot-positioning.config-C9TqUuGC.js +0 -48
- package/components/parallel-coordinates-plot-slots.config-pmbO5DnL.js +0 -46
- package/components/parallel-coordinates-plot-slots.config-s_tLqGA-.cjs +0 -20
- package/components/pivot-table-options.config-B3wYlzEq.js +0 -245
- package/components/pivot-table-options.config-CKGnnXa_.cjs +0 -20
- package/components/pivot-table-positioning.config-CPXqqtcR.js +0 -55
- package/components/pivot-table-positioning.config-D1R3VO88.cjs +0 -20
- package/components/pivot-table-slots.config-DaLfGOP9.js +0 -55
- package/components/pivot-table-slots.config-KlYXL90k.cjs +0 -20
- package/components/pragmatic-element-adapter-D0LRKx5U.js +0 -1253
- package/components/pragmatic-element-adapter-DdyH32ix.cjs +0 -24
- package/components/pyramid-chart-options.config-8QtjhcJC.cjs +0 -20
- package/components/pyramid-chart-options.config-DIyiyqGM.js +0 -240
- package/components/pyramid-chart-positioning.config-BfXdJS8g.cjs +0 -20
- package/components/pyramid-chart-positioning.config-JAUQpA0B.js +0 -55
- package/components/pyramid-chart-slots.config-CreUpxI2.cjs +0 -20
- package/components/pyramid-chart-slots.config-DtnUlw5y.js +0 -50
- package/components/radar-chart-options.config-DvW36_zk.cjs +0 -20
- package/components/radar-chart-options.config-UVOzUnVT.js +0 -130
- package/components/radar-chart-positioning.config-Bixdrod2.cjs +0 -20
- package/components/radar-chart-positioning.config-CdJSazt4.js +0 -55
- package/components/radar-chart-slots.config-B3oIp-8w.cjs +0 -20
- package/components/radar-chart-slots.config-CkLoeAV7.js +0 -53
- package/components/regular-table-options.config-B0WNqEjR.cjs +0 -20
- package/components/regular-table-options.config-CBvnxTdd.js +0 -148
- package/components/regular-table-slots.config-Cc6hL7iu.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-DZrlGa5o.js +0 -326
- package/components/route-map-positioning.config-7aca5Iex.cjs +0 -20
- package/components/route-map-positioning.config-Bk_BndTS.js +0 -66
- package/components/route-map-slots.config-CQxB8gKC.js +0 -59
- package/components/route-map-slots.config-DfYT65BF.cjs +0 -20
- package/components/sankey-diagram-options.config-D49IZ1y3.cjs +0 -20
- package/components/sankey-diagram-options.config-s_QRVr1r.js +0 -126
- package/components/sankey-diagram-positioning.config-Bvus3RDi.cjs +0 -20
- package/components/sankey-diagram-positioning.config-DPgQELIu.js +0 -66
- package/components/sankey-diagram-slots.config-C9tIfWHU.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-DI4hlqi5.js +0 -302
- package/components/scatter-plot-positioning.config-D-ifHW9P.js +0 -77
- package/components/scatter-plot-positioning.config-DBDCDDad.cjs +0 -20
- package/components/scatter-plot-slots.config-CUURijrN.js +0 -74
- package/components/scatter-plot-slots.config-CrG6wQtV.cjs +0 -20
- package/components/search-filter-options.config-B-dGVPhS.cjs +0 -20
- package/components/search-filter-options.config-CPzfgUWV.js +0 -103
- package/components/search-filter-slots.config-DD119qkk.js +0 -39
- package/components/search-filter-slots.config-DP06ulJA.cjs +0 -20
- package/components/set-locale-DTFOOSog.cjs +0 -20
- package/components/set-locale-UK0ghkg9.js +0 -43
- package/components/slicer-filter-options.config-7OXpRWtw.cjs +0 -20
- package/components/slicer-filter-options.config-F2CZ8ckV.js +0 -226
- package/components/slicer-filter-positioning.config-0uGZ8EgN.js +0 -48
- package/components/slicer-filter-positioning.config-Bx2_7jxp.cjs +0 -20
- package/components/slicer-filter-slots.config-CHKpdJvF.cjs +0 -20
- package/components/slicer-filter-slots.config-D-BhCuA9.js +0 -44
- package/components/slider-filter-options.config-CRdbX1IJ.cjs +0 -20
- package/components/slider-filter-options.config-DO0HHK2l.js +0 -72
- package/components/slider-filter-slots.config-9R298H0t.cjs +0 -20
- package/components/slider-filter-slots.config-CGQG6JqK.js +0 -43
- package/components/slot-menu-Cw5HJ_bk.js +0 -404
- package/components/slot-menu-DkyDLDSd.cjs +0 -64
- package/components/slot-menu-list-BZllvntQ.cjs +0 -38
- package/components/slot-menu-list-CTJ-owp1.js +0 -326
- package/components/slots-config-BuHluMEl.js +0 -77
- package/components/slots-config-DVH0lz6t.cjs +0 -20
- package/components/speedometer-chart-options.config-BsIu28S3.cjs +0 -20
- package/components/speedometer-chart-options.config-jK_yQjy2.js +0 -246
- package/components/speedometer-chart-positioning.config-CNOKIw7e.cjs +0 -20
- package/components/speedometer-chart-positioning.config-FzFxMi0X.js +0 -48
- package/components/speedometer-chart-slots.config-CjkHAHNX.js +0 -39
- package/components/speedometer-chart-slots.config-S_hQm2MV.cjs +0 -20
- package/components/spike-map-options.config-aaiZyME6.cjs +0 -20
- package/components/spike-map-options.config-cj07bETE.js +0 -413
- package/components/spike-map-positioning.config-B4NYfmEw.js +0 -55
- package/components/spike-map-positioning.config-Bcdt8670.cjs +0 -20
- package/components/spike-map-slots.config-cKfaD6dQ.cjs +0 -20
- package/components/spike-map-slots.config-yMkdy-0w.js +0 -47
- package/components/strip-plot-options.config-DmAxeY2S.js +0 -53
- package/components/strip-plot-options.config-TB3rkoj2.cjs +0 -20
- package/components/strip-plot-positioning.config-BjcqWJoD.cjs +0 -20
- package/components/strip-plot-positioning.config-n9OIxpa_.js +0 -48
- package/components/strip-plot-slots.config-C07nIM5s.js +0 -38
- package/components/strip-plot-slots.config-DNYlrK_c.cjs +0 -20
- package/components/sunburst-chart-options.config-CLyQG-8x.js +0 -160
- package/components/sunburst-chart-options.config-Ckk_kY_s.cjs +0 -20
- package/components/sunburst-chart-positioning.config-BIpSCpSi.cjs +0 -20
- package/components/sunburst-chart-positioning.config-CcGOcwOK.js +0 -48
- package/components/sunburst-chart-slots.config-BU9ma0xm.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-I_gykFhh.js +0 -157
- package/components/symbol-map-positioning.config-DPv89eCY.cjs +0 -20
- package/components/symbol-map-positioning.config-H3n2ngaa.js +0 -55
- package/components/symbol-map-slots.config-CQJgV5bh.js +0 -53
- package/components/symbol-map-slots.config-DwNf547A.cjs +0 -20
- package/components/text-options.config-BwBCG2yo.cjs +0 -20
- package/components/text-options.config-DUMx63Ol.js +0 -67
- package/components/text-slots.config-CPghLc8b.cjs +0 -20
- package/components/text-slots.config-YmmXsb-0.js +0 -24
- package/components/treemap-chart-options.config-CAWPa5jK.js +0 -184
- package/components/treemap-chart-options.config-r6biULUj.cjs +0 -20
- package/components/treemap-chart-positioning.config-Dzp4TodY.js +0 -55
- package/components/treemap-chart-positioning.config-W2sl4gZ0.cjs +0 -20
- package/components/treemap-chart-slots.config-CS3ot6ZJ.cjs +0 -20
- package/components/treemap-chart-slots.config-QEVbKZyS.js +0 -47
- package/components/utils-BD_TKdii.js +0 -352
- package/components/utils-C8VI4SiJ.cjs +0 -20
- package/components/v4-DIjJgmR0.js +0 -49
- package/components/venn-diagram-options.config-BamlR1qo.cjs +0 -20
- package/components/venn-diagram-options.config-KKD89q3q.js +0 -24
- package/components/venn-diagram-positioning.config-BLSj3JqA.js +0 -55
- package/components/venn-diagram-positioning.config-Bv3pFJIU.cjs +0 -20
- package/components/venn-diagram-slots.config-DYTmU8v2.cjs +0 -20
- package/components/venn-diagram-slots.config-DsIqVOI2.js +0 -47
- package/components/video-options.config-BhBpkaLJ.cjs +0 -20
- package/components/video-options.config-D2SEyNrP.js +0 -127
- package/components/video-slots.config-B680gLmP.js +0 -24
- package/components/video-slots.config-DMut7o7r.cjs +0 -20
- package/components/viz-item-menu-CiEJJddu.js +0 -170
- package/components/viz-item-menu-Dry8xpRA.cjs +0 -55
- package/components/wordcloud-chart-options.config-DLN2RAEK.js +0 -90
- package/components/wordcloud-chart-options.config-DgH4JgN2.cjs +0 -20
- package/components/wordcloud-chart-positioning.config-DVPWXJXb.js +0 -55
- package/components/wordcloud-chart-positioning.config-ZTO2VLdY.cjs +0 -20
- package/components/wordcloud-chart-slots.config-V29v2Fhr.cjs +0 -20
- package/components/wordcloud-chart-slots.config-mFvqkiQE.js +0 -45
- /package/components/{rolldown-runtime-mLOUI7ql.cjs → chunk-mLOUI7ql.cjs} +0 -0
|
@@ -1,1680 +0,0 @@
|
|
|
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();
|
|
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
|
-
};
|
|
412
|
-
//#endregion
|
|
413
|
-
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
414
|
-
function H(e) {
|
|
415
|
-
return { onFetch: (t, n) => {
|
|
416
|
-
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
417
|
-
pages: [],
|
|
418
|
-
pageParams: []
|
|
419
|
-
}, c = 0, l = async () => {
|
|
420
|
-
let n = !1, l = (e) => {
|
|
421
|
-
A(e, () => t.signal, () => n = !0);
|
|
422
|
-
}, u = k(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
423
|
-
if (n) return Promise.reject(t.signal.reason);
|
|
424
|
-
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
425
|
-
let a = (() => {
|
|
426
|
-
let e = {
|
|
427
|
-
client: t.client,
|
|
428
|
-
queryKey: t.queryKey,
|
|
429
|
-
pageParam: r,
|
|
430
|
-
direction: i ? "backward" : "forward",
|
|
431
|
-
meta: t.options.meta
|
|
432
|
-
};
|
|
433
|
-
return l(e), e;
|
|
434
|
-
})(), o = await u(a), { maxPages: s } = t.options, c = i ? D : E;
|
|
435
|
-
return {
|
|
436
|
-
pages: c(e.pages, o, s),
|
|
437
|
-
pageParams: c(e.pageParams, r, s)
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
if (i && a.length) {
|
|
441
|
-
let e = i === "backward", t = e ? W : U, n = {
|
|
442
|
-
pages: a,
|
|
443
|
-
pageParams: o
|
|
444
|
-
};
|
|
445
|
-
s = await d(n, t(r, n), e);
|
|
446
|
-
} else {
|
|
447
|
-
let t = e ?? a.length;
|
|
448
|
-
do {
|
|
449
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam : U(r, s);
|
|
450
|
-
if (c > 0 && e == null) break;
|
|
451
|
-
s = await d(s, e), c++;
|
|
452
|
-
} while (c < t);
|
|
453
|
-
}
|
|
454
|
-
return s;
|
|
455
|
-
};
|
|
456
|
-
t.options.persister ? t.fetchFn = () => t.options.persister?.(l, {
|
|
457
|
-
client: t.client,
|
|
458
|
-
queryKey: t.queryKey,
|
|
459
|
-
meta: t.options.meta,
|
|
460
|
-
signal: t.signal
|
|
461
|
-
}, n) : t.fetchFn = l;
|
|
462
|
-
} };
|
|
463
|
-
}
|
|
464
|
-
function U(e, { pages: t, pageParams: n }) {
|
|
465
|
-
let r = t.length - 1;
|
|
466
|
-
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
467
|
-
}
|
|
468
|
-
function W(e, { pages: t, pageParams: n }) {
|
|
469
|
-
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
470
|
-
}
|
|
471
|
-
//#endregion
|
|
472
|
-
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
473
|
-
var G = class extends V {
|
|
474
|
-
#e;
|
|
475
|
-
#t;
|
|
476
|
-
#n;
|
|
477
|
-
#r;
|
|
478
|
-
#i;
|
|
479
|
-
#a;
|
|
480
|
-
#o;
|
|
481
|
-
#s;
|
|
482
|
-
constructor(e) {
|
|
483
|
-
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = J(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
484
|
-
}
|
|
485
|
-
get meta() {
|
|
486
|
-
return this.options.meta;
|
|
487
|
-
}
|
|
488
|
-
get queryType() {
|
|
489
|
-
return this.#e;
|
|
490
|
-
}
|
|
491
|
-
get promise() {
|
|
492
|
-
return this.#a?.promise;
|
|
493
|
-
}
|
|
494
|
-
setOptions(e) {
|
|
495
|
-
if (this.options = {
|
|
496
|
-
...this.#o,
|
|
497
|
-
...e
|
|
498
|
-
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
499
|
-
let e = J(this.options);
|
|
500
|
-
e.data !== void 0 && (this.setState(q(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
optionalRemove() {
|
|
504
|
-
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
505
|
-
}
|
|
506
|
-
setData(e, t) {
|
|
507
|
-
let n = T(this.state.data, e, this.options);
|
|
508
|
-
return this.#l({
|
|
509
|
-
data: n,
|
|
510
|
-
type: "success",
|
|
511
|
-
dataUpdatedAt: t?.updatedAt,
|
|
512
|
-
manual: t?.manual
|
|
513
|
-
}), n;
|
|
514
|
-
}
|
|
515
|
-
setState(e) {
|
|
516
|
-
this.#l({
|
|
517
|
-
type: "setState",
|
|
518
|
-
state: e
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
cancel(e) {
|
|
522
|
-
let t = this.#a?.promise;
|
|
523
|
-
return this.#a?.cancel(e), t ? t.then(c).catch(c) : Promise.resolve();
|
|
524
|
-
}
|
|
525
|
-
destroy() {
|
|
526
|
-
super.destroy(), this.cancel({ silent: !0 });
|
|
527
|
-
}
|
|
528
|
-
get resetState() {
|
|
529
|
-
return this.#t;
|
|
530
|
-
}
|
|
531
|
-
reset() {
|
|
532
|
-
this.destroy(), this.setState(this.resetState);
|
|
533
|
-
}
|
|
534
|
-
isActive() {
|
|
535
|
-
return this.observers.some((e) => p(e.options.enabled, this) !== !1);
|
|
536
|
-
}
|
|
537
|
-
isDisabled() {
|
|
538
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === O || !this.isFetched();
|
|
539
|
-
}
|
|
540
|
-
isFetched() {
|
|
541
|
-
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
542
|
-
}
|
|
543
|
-
isStatic() {
|
|
544
|
-
return this.getObserversCount() > 0 && this.observers.some((e) => f(e.options.staleTime, this) === "static");
|
|
545
|
-
}
|
|
546
|
-
isStale() {
|
|
547
|
-
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
548
|
-
}
|
|
549
|
-
isStaleByTime(e = 0) {
|
|
550
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !d(this.state.dataUpdatedAt, e);
|
|
551
|
-
}
|
|
552
|
-
onFocus() {
|
|
553
|
-
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
554
|
-
}
|
|
555
|
-
onOnline() {
|
|
556
|
-
this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
557
|
-
}
|
|
558
|
-
addObserver(e) {
|
|
559
|
-
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({
|
|
560
|
-
type: "observerAdded",
|
|
561
|
-
query: this,
|
|
562
|
-
observer: e
|
|
563
|
-
}));
|
|
564
|
-
}
|
|
565
|
-
removeObserver(e) {
|
|
566
|
-
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#s || this.#c() ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
|
|
567
|
-
type: "observerRemoved",
|
|
568
|
-
query: this,
|
|
569
|
-
observer: e
|
|
570
|
-
}));
|
|
571
|
-
}
|
|
572
|
-
getObserversCount() {
|
|
573
|
-
return this.observers.length;
|
|
574
|
-
}
|
|
575
|
-
#c() {
|
|
576
|
-
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
577
|
-
}
|
|
578
|
-
invalidate() {
|
|
579
|
-
this.state.isInvalidated || this.#l({ type: "invalidate" });
|
|
580
|
-
}
|
|
581
|
-
async fetch(e, t) {
|
|
582
|
-
if (this.state.fetchStatus !== "idle" && this.#a?.status() !== "rejected") {
|
|
583
|
-
if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
|
|
584
|
-
else if (this.#a) return this.#a.continueRetry(), this.#a.promise;
|
|
585
|
-
}
|
|
586
|
-
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
587
|
-
let e = this.observers.find((e) => e.options.queryFn);
|
|
588
|
-
e && this.setOptions(e.options);
|
|
589
|
-
}
|
|
590
|
-
let n = new AbortController(), r = (e) => {
|
|
591
|
-
Object.defineProperty(e, "signal", {
|
|
592
|
-
enumerable: !0,
|
|
593
|
-
get: () => (this.#s = !0, n.signal)
|
|
594
|
-
});
|
|
595
|
-
}, i = () => {
|
|
596
|
-
let e = k(this.options, t), n = (() => {
|
|
597
|
-
let e = {
|
|
598
|
-
client: this.#i,
|
|
599
|
-
queryKey: this.queryKey,
|
|
600
|
-
meta: this.meta
|
|
601
|
-
};
|
|
602
|
-
return r(e), e;
|
|
603
|
-
})();
|
|
604
|
-
return this.#s = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
|
|
605
|
-
}, a = (() => {
|
|
606
|
-
let e = {
|
|
607
|
-
fetchOptions: t,
|
|
608
|
-
options: this.options,
|
|
609
|
-
queryKey: this.queryKey,
|
|
610
|
-
client: this.#i,
|
|
611
|
-
state: this.state,
|
|
612
|
-
fetchFn: i
|
|
613
|
-
};
|
|
614
|
-
return r(e), e;
|
|
615
|
-
})();
|
|
616
|
-
(this.#e === "infinite" ? H(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
|
|
617
|
-
type: "fetch",
|
|
618
|
-
meta: a.fetchOptions?.meta
|
|
619
|
-
}), this.#a = B({
|
|
620
|
-
initialPromise: t?.initialPromise,
|
|
621
|
-
fn: a.fetchFn,
|
|
622
|
-
onCancel: (e) => {
|
|
623
|
-
e instanceof z && e.revert && this.setState({
|
|
624
|
-
...this.#n,
|
|
625
|
-
fetchStatus: "idle"
|
|
626
|
-
}), n.abort();
|
|
627
|
-
},
|
|
628
|
-
onFail: (e, t) => {
|
|
629
|
-
this.#l({
|
|
630
|
-
type: "failed",
|
|
631
|
-
failureCount: e,
|
|
632
|
-
error: t
|
|
633
|
-
});
|
|
634
|
-
},
|
|
635
|
-
onPause: () => {
|
|
636
|
-
this.#l({ type: "pause" });
|
|
637
|
-
},
|
|
638
|
-
onContinue: () => {
|
|
639
|
-
this.#l({ type: "continue" });
|
|
640
|
-
},
|
|
641
|
-
retry: a.options.retry,
|
|
642
|
-
retryDelay: a.options.retryDelay,
|
|
643
|
-
networkMode: a.options.networkMode,
|
|
644
|
-
canRun: () => !0
|
|
645
|
-
});
|
|
646
|
-
try {
|
|
647
|
-
let e = await this.#a.start();
|
|
648
|
-
if (e === void 0) throw Error(`${this.queryHash} data is undefined`);
|
|
649
|
-
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
650
|
-
} catch (e) {
|
|
651
|
-
if (e instanceof z) {
|
|
652
|
-
if (e.silent) return this.#a.promise;
|
|
653
|
-
if (e.revert) {
|
|
654
|
-
if (this.state.data === void 0) throw e;
|
|
655
|
-
return this.state.data;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
throw this.#l({
|
|
659
|
-
type: "error",
|
|
660
|
-
error: e
|
|
661
|
-
}), this.#r.config.onError?.(e, this), this.#r.config.onSettled?.(this.state.data, e, this), e;
|
|
662
|
-
} finally {
|
|
663
|
-
this.scheduleGc();
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
#l(e) {
|
|
667
|
-
let t = (t) => {
|
|
668
|
-
switch (e.type) {
|
|
669
|
-
case "failed": return {
|
|
670
|
-
...t,
|
|
671
|
-
fetchFailureCount: e.failureCount,
|
|
672
|
-
fetchFailureReason: e.error
|
|
673
|
-
};
|
|
674
|
-
case "pause": return {
|
|
675
|
-
...t,
|
|
676
|
-
fetchStatus: "paused"
|
|
677
|
-
};
|
|
678
|
-
case "continue": return {
|
|
679
|
-
...t,
|
|
680
|
-
fetchStatus: "fetching"
|
|
681
|
-
};
|
|
682
|
-
case "fetch": return {
|
|
683
|
-
...t,
|
|
684
|
-
...K(t.data, this.options),
|
|
685
|
-
fetchMeta: e.meta ?? null
|
|
686
|
-
};
|
|
687
|
-
case "success":
|
|
688
|
-
let n = {
|
|
689
|
-
...t,
|
|
690
|
-
...q(e.data, e.dataUpdatedAt),
|
|
691
|
-
dataUpdateCount: t.dataUpdateCount + 1,
|
|
692
|
-
...!e.manual && {
|
|
693
|
-
fetchStatus: "idle",
|
|
694
|
-
fetchFailureCount: 0,
|
|
695
|
-
fetchFailureReason: null
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
return this.#n = e.manual ? n : void 0, n;
|
|
699
|
-
case "error":
|
|
700
|
-
let r = e.error;
|
|
701
|
-
return {
|
|
702
|
-
...t,
|
|
703
|
-
error: r,
|
|
704
|
-
errorUpdateCount: t.errorUpdateCount + 1,
|
|
705
|
-
errorUpdatedAt: Date.now(),
|
|
706
|
-
fetchFailureCount: t.fetchFailureCount + 1,
|
|
707
|
-
fetchFailureReason: r,
|
|
708
|
-
fetchStatus: "idle",
|
|
709
|
-
status: "error",
|
|
710
|
-
isInvalidated: !0
|
|
711
|
-
};
|
|
712
|
-
case "invalidate": return {
|
|
713
|
-
...t,
|
|
714
|
-
isInvalidated: !0
|
|
715
|
-
};
|
|
716
|
-
case "setState": return {
|
|
717
|
-
...t,
|
|
718
|
-
...e.state
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
};
|
|
722
|
-
this.state = t(this.state), F.batch(() => {
|
|
723
|
-
this.observers.forEach((e) => {
|
|
724
|
-
e.onQueryUpdate();
|
|
725
|
-
}), this.#r.notify({
|
|
726
|
-
query: this,
|
|
727
|
-
type: "updated",
|
|
728
|
-
action: e
|
|
729
|
-
});
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
function K(e, t) {
|
|
734
|
-
return {
|
|
735
|
-
fetchFailureCount: 0,
|
|
736
|
-
fetchFailureReason: null,
|
|
737
|
-
fetchStatus: R(t.networkMode) ? "fetching" : "paused",
|
|
738
|
-
...e === void 0 && {
|
|
739
|
-
error: null,
|
|
740
|
-
status: "pending"
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
function q(e, t) {
|
|
745
|
-
return {
|
|
746
|
-
data: e,
|
|
747
|
-
dataUpdatedAt: t ?? Date.now(),
|
|
748
|
-
error: null,
|
|
749
|
-
isInvalidated: !1,
|
|
750
|
-
status: "success"
|
|
751
|
-
};
|
|
752
|
-
}
|
|
753
|
-
function J(e) {
|
|
754
|
-
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;
|
|
755
|
-
return {
|
|
756
|
-
data: t,
|
|
757
|
-
dataUpdateCount: 0,
|
|
758
|
-
dataUpdatedAt: n ? r ?? Date.now() : 0,
|
|
759
|
-
error: null,
|
|
760
|
-
errorUpdateCount: 0,
|
|
761
|
-
errorUpdatedAt: 0,
|
|
762
|
-
fetchFailureCount: 0,
|
|
763
|
-
fetchFailureReason: null,
|
|
764
|
-
fetchMeta: null,
|
|
765
|
-
isInvalidated: !1,
|
|
766
|
-
status: n ? "success" : "pending",
|
|
767
|
-
fetchStatus: "idle"
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
//#endregion
|
|
771
|
-
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
772
|
-
var Y = class extends V {
|
|
773
|
-
#e;
|
|
774
|
-
#t;
|
|
775
|
-
#n;
|
|
776
|
-
#r;
|
|
777
|
-
constructor(e) {
|
|
778
|
-
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();
|
|
779
|
-
}
|
|
780
|
-
setOptions(e) {
|
|
781
|
-
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
782
|
-
}
|
|
783
|
-
get meta() {
|
|
784
|
-
return this.options.meta;
|
|
785
|
-
}
|
|
786
|
-
addObserver(e) {
|
|
787
|
-
this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
|
|
788
|
-
type: "observerAdded",
|
|
789
|
-
mutation: this,
|
|
790
|
-
observer: e
|
|
791
|
-
}));
|
|
792
|
-
}
|
|
793
|
-
removeObserver(e) {
|
|
794
|
-
this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
|
|
795
|
-
type: "observerRemoved",
|
|
796
|
-
mutation: this,
|
|
797
|
-
observer: e
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
optionalRemove() {
|
|
801
|
-
this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
|
|
802
|
-
}
|
|
803
|
-
continue() {
|
|
804
|
-
return this.#r?.continue() ?? this.execute(this.state.variables);
|
|
805
|
-
}
|
|
806
|
-
async execute(e) {
|
|
807
|
-
let t = () => {
|
|
808
|
-
this.#i({ type: "continue" });
|
|
809
|
-
}, n = {
|
|
810
|
-
client: this.#e,
|
|
811
|
-
meta: this.options.meta,
|
|
812
|
-
mutationKey: this.options.mutationKey
|
|
813
|
-
};
|
|
814
|
-
this.#r = B({
|
|
815
|
-
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
816
|
-
onFail: (e, t) => {
|
|
817
|
-
this.#i({
|
|
818
|
-
type: "failed",
|
|
819
|
-
failureCount: e,
|
|
820
|
-
error: t
|
|
821
|
-
});
|
|
822
|
-
},
|
|
823
|
-
onPause: () => {
|
|
824
|
-
this.#i({ type: "pause" });
|
|
825
|
-
},
|
|
826
|
-
onContinue: t,
|
|
827
|
-
retry: this.options.retry ?? 0,
|
|
828
|
-
retryDelay: this.options.retryDelay,
|
|
829
|
-
networkMode: this.options.networkMode,
|
|
830
|
-
canRun: () => this.#n.canRun(this)
|
|
831
|
-
});
|
|
832
|
-
let r = this.state.status === "pending", i = !this.#r.canStart();
|
|
833
|
-
try {
|
|
834
|
-
if (r) t();
|
|
835
|
-
else {
|
|
836
|
-
this.#i({
|
|
837
|
-
type: "pending",
|
|
838
|
-
variables: e,
|
|
839
|
-
isPaused: i
|
|
840
|
-
}), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
|
|
841
|
-
let t = await this.options.onMutate?.(e, n);
|
|
842
|
-
t !== this.state.context && this.#i({
|
|
843
|
-
type: "pending",
|
|
844
|
-
context: t,
|
|
845
|
-
variables: e,
|
|
846
|
-
isPaused: i
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
let a = await this.#r.start();
|
|
850
|
-
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({
|
|
851
|
-
type: "success",
|
|
852
|
-
data: a
|
|
853
|
-
}), a;
|
|
854
|
-
} catch (t) {
|
|
855
|
-
try {
|
|
856
|
-
await this.#n.config.onError?.(t, e, this.state.context, this, n);
|
|
857
|
-
} catch (e) {
|
|
858
|
-
Promise.reject(e);
|
|
859
|
-
}
|
|
860
|
-
try {
|
|
861
|
-
await this.options.onError?.(t, e, this.state.context, n);
|
|
862
|
-
} catch (e) {
|
|
863
|
-
Promise.reject(e);
|
|
864
|
-
}
|
|
865
|
-
try {
|
|
866
|
-
await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
|
|
867
|
-
} catch (e) {
|
|
868
|
-
Promise.reject(e);
|
|
869
|
-
}
|
|
870
|
-
try {
|
|
871
|
-
await this.options.onSettled?.(void 0, t, e, this.state.context, n);
|
|
872
|
-
} catch (e) {
|
|
873
|
-
Promise.reject(e);
|
|
874
|
-
}
|
|
875
|
-
throw this.#i({
|
|
876
|
-
type: "error",
|
|
877
|
-
error: t
|
|
878
|
-
}), t;
|
|
879
|
-
} finally {
|
|
880
|
-
this.#n.runNext(this);
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
#i(e) {
|
|
884
|
-
let t = (t) => {
|
|
885
|
-
switch (e.type) {
|
|
886
|
-
case "failed": return {
|
|
887
|
-
...t,
|
|
888
|
-
failureCount: e.failureCount,
|
|
889
|
-
failureReason: e.error
|
|
890
|
-
};
|
|
891
|
-
case "pause": return {
|
|
892
|
-
...t,
|
|
893
|
-
isPaused: !0
|
|
894
|
-
};
|
|
895
|
-
case "continue": return {
|
|
896
|
-
...t,
|
|
897
|
-
isPaused: !1
|
|
898
|
-
};
|
|
899
|
-
case "pending": return {
|
|
900
|
-
...t,
|
|
901
|
-
context: e.context,
|
|
902
|
-
data: void 0,
|
|
903
|
-
failureCount: 0,
|
|
904
|
-
failureReason: null,
|
|
905
|
-
error: null,
|
|
906
|
-
isPaused: e.isPaused,
|
|
907
|
-
status: "pending",
|
|
908
|
-
variables: e.variables,
|
|
909
|
-
submittedAt: Date.now()
|
|
910
|
-
};
|
|
911
|
-
case "success": return {
|
|
912
|
-
...t,
|
|
913
|
-
data: e.data,
|
|
914
|
-
failureCount: 0,
|
|
915
|
-
failureReason: null,
|
|
916
|
-
error: null,
|
|
917
|
-
status: "success",
|
|
918
|
-
isPaused: !1
|
|
919
|
-
};
|
|
920
|
-
case "error": return {
|
|
921
|
-
...t,
|
|
922
|
-
data: void 0,
|
|
923
|
-
error: e.error,
|
|
924
|
-
failureCount: t.failureCount + 1,
|
|
925
|
-
failureReason: e.error,
|
|
926
|
-
isPaused: !1,
|
|
927
|
-
status: "error"
|
|
928
|
-
};
|
|
929
|
-
}
|
|
930
|
-
};
|
|
931
|
-
this.state = t(this.state), F.batch(() => {
|
|
932
|
-
this.#t.forEach((t) => {
|
|
933
|
-
t.onMutationUpdate(e);
|
|
934
|
-
}), this.#n.notify({
|
|
935
|
-
mutation: this,
|
|
936
|
-
type: "updated",
|
|
937
|
-
action: e
|
|
938
|
-
});
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
|
-
function X() {
|
|
943
|
-
return {
|
|
944
|
-
context: void 0,
|
|
945
|
-
data: void 0,
|
|
946
|
-
error: null,
|
|
947
|
-
failureCount: 0,
|
|
948
|
-
failureReason: null,
|
|
949
|
-
isPaused: !1,
|
|
950
|
-
status: "idle",
|
|
951
|
-
variables: void 0,
|
|
952
|
-
submittedAt: 0
|
|
953
|
-
};
|
|
954
|
-
}
|
|
955
|
-
//#endregion
|
|
956
|
-
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
957
|
-
var Z = class extends n {
|
|
958
|
-
constructor(e = {}) {
|
|
959
|
-
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
960
|
-
}
|
|
961
|
-
#e;
|
|
962
|
-
#t;
|
|
963
|
-
#n;
|
|
964
|
-
build(e, t, n) {
|
|
965
|
-
let r = new Y({
|
|
966
|
-
client: e,
|
|
967
|
-
mutationCache: this,
|
|
968
|
-
mutationId: ++this.#n,
|
|
969
|
-
options: e.defaultMutationOptions(t),
|
|
970
|
-
state: n
|
|
971
|
-
});
|
|
972
|
-
return this.add(r), r;
|
|
973
|
-
}
|
|
974
|
-
add(e) {
|
|
975
|
-
this.#e.add(e);
|
|
976
|
-
let t = Q(e);
|
|
977
|
-
if (typeof t == "string") {
|
|
978
|
-
let n = this.#t.get(t);
|
|
979
|
-
n ? n.push(e) : this.#t.set(t, [e]);
|
|
980
|
-
}
|
|
981
|
-
this.notify({
|
|
982
|
-
type: "added",
|
|
983
|
-
mutation: e
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
remove(e) {
|
|
987
|
-
if (this.#e.delete(e)) {
|
|
988
|
-
let t = Q(e);
|
|
989
|
-
if (typeof t == "string") {
|
|
990
|
-
let n = this.#t.get(t);
|
|
991
|
-
if (n) if (n.length > 1) {
|
|
992
|
-
let t = n.indexOf(e);
|
|
993
|
-
t !== -1 && n.splice(t, 1);
|
|
994
|
-
} else n[0] === e && this.#t.delete(t);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
this.notify({
|
|
998
|
-
type: "removed",
|
|
999
|
-
mutation: e
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
canRun(e) {
|
|
1003
|
-
let t = Q(e);
|
|
1004
|
-
if (typeof t == "string") {
|
|
1005
|
-
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1006
|
-
return !n || n === e;
|
|
1007
|
-
} else return !0;
|
|
1008
|
-
}
|
|
1009
|
-
runNext(e) {
|
|
1010
|
-
let t = Q(e);
|
|
1011
|
-
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1012
|
-
}
|
|
1013
|
-
clear() {
|
|
1014
|
-
F.batch(() => {
|
|
1015
|
-
this.#e.forEach((e) => {
|
|
1016
|
-
this.notify({
|
|
1017
|
-
type: "removed",
|
|
1018
|
-
mutation: e
|
|
1019
|
-
});
|
|
1020
|
-
}), this.#e.clear(), this.#t.clear();
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
getAll() {
|
|
1024
|
-
return Array.from(this.#e);
|
|
1025
|
-
}
|
|
1026
|
-
find(e) {
|
|
1027
|
-
let t = {
|
|
1028
|
-
exact: !0,
|
|
1029
|
-
...e
|
|
1030
|
-
};
|
|
1031
|
-
return this.getAll().find((e) => h(t, e));
|
|
1032
|
-
}
|
|
1033
|
-
findAll(e = {}) {
|
|
1034
|
-
return this.getAll().filter((t) => h(e, t));
|
|
1035
|
-
}
|
|
1036
|
-
notify(e) {
|
|
1037
|
-
F.batch(() => {
|
|
1038
|
-
this.listeners.forEach((t) => {
|
|
1039
|
-
t(e);
|
|
1040
|
-
});
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
resumePausedMutations() {
|
|
1044
|
-
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1045
|
-
return F.batch(() => Promise.all(e.map((e) => e.continue().catch(c))));
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
function Q(e) {
|
|
1049
|
-
return e.options.scope?.id;
|
|
1050
|
-
}
|
|
1051
|
-
//#endregion
|
|
1052
|
-
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1053
|
-
var $ = class extends n {
|
|
1054
|
-
constructor(e = {}) {
|
|
1055
|
-
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1056
|
-
}
|
|
1057
|
-
#e;
|
|
1058
|
-
build(e, t, n) {
|
|
1059
|
-
let r = t.queryKey, i = t.queryHash ?? g(r, t), a = this.get(i);
|
|
1060
|
-
return a || (a = new G({
|
|
1061
|
-
client: e,
|
|
1062
|
-
queryKey: r,
|
|
1063
|
-
queryHash: i,
|
|
1064
|
-
options: e.defaultQueryOptions(t),
|
|
1065
|
-
state: n,
|
|
1066
|
-
defaultOptions: e.getQueryDefaults(r)
|
|
1067
|
-
}), this.add(a)), a;
|
|
1068
|
-
}
|
|
1069
|
-
add(e) {
|
|
1070
|
-
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
1071
|
-
type: "added",
|
|
1072
|
-
query: e
|
|
1073
|
-
}));
|
|
1074
|
-
}
|
|
1075
|
-
remove(e) {
|
|
1076
|
-
let t = this.#e.get(e.queryHash);
|
|
1077
|
-
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
|
|
1078
|
-
type: "removed",
|
|
1079
|
-
query: e
|
|
1080
|
-
}));
|
|
1081
|
-
}
|
|
1082
|
-
clear() {
|
|
1083
|
-
F.batch(() => {
|
|
1084
|
-
this.getAll().forEach((e) => {
|
|
1085
|
-
this.remove(e);
|
|
1086
|
-
});
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
get(e) {
|
|
1090
|
-
return this.#e.get(e);
|
|
1091
|
-
}
|
|
1092
|
-
getAll() {
|
|
1093
|
-
return [...this.#e.values()];
|
|
1094
|
-
}
|
|
1095
|
-
find(e) {
|
|
1096
|
-
let t = {
|
|
1097
|
-
exact: !0,
|
|
1098
|
-
...e
|
|
1099
|
-
};
|
|
1100
|
-
return this.getAll().find((e) => m(t, e));
|
|
1101
|
-
}
|
|
1102
|
-
findAll(e = {}) {
|
|
1103
|
-
let t = this.getAll();
|
|
1104
|
-
return Object.keys(e).length > 0 ? t.filter((t) => m(e, t)) : t;
|
|
1105
|
-
}
|
|
1106
|
-
notify(e) {
|
|
1107
|
-
F.batch(() => {
|
|
1108
|
-
this.listeners.forEach((t) => {
|
|
1109
|
-
t(e);
|
|
1110
|
-
});
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
onFocus() {
|
|
1114
|
-
F.batch(() => {
|
|
1115
|
-
this.getAll().forEach((e) => {
|
|
1116
|
-
e.onFocus();
|
|
1117
|
-
});
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
onOnline() {
|
|
1121
|
-
F.batch(() => {
|
|
1122
|
-
this.getAll().forEach((e) => {
|
|
1123
|
-
e.onOnline();
|
|
1124
|
-
});
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
}, ee = class {
|
|
1128
|
-
#e;
|
|
1129
|
-
#t;
|
|
1130
|
-
#n;
|
|
1131
|
-
#r;
|
|
1132
|
-
#i;
|
|
1133
|
-
#a;
|
|
1134
|
-
#o;
|
|
1135
|
-
#s;
|
|
1136
|
-
constructor(e = {}) {
|
|
1137
|
-
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;
|
|
1138
|
-
}
|
|
1139
|
-
mount() {
|
|
1140
|
-
this.#a++, this.#a === 1 && (this.#o = r.subscribe(async (e) => {
|
|
1141
|
-
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1142
|
-
}), this.#s = I.subscribe(async (e) => {
|
|
1143
|
-
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1144
|
-
}));
|
|
1145
|
-
}
|
|
1146
|
-
unmount() {
|
|
1147
|
-
this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
|
|
1148
|
-
}
|
|
1149
|
-
isFetching(e) {
|
|
1150
|
-
return this.#e.findAll({
|
|
1151
|
-
...e,
|
|
1152
|
-
fetchStatus: "fetching"
|
|
1153
|
-
}).length;
|
|
1154
|
-
}
|
|
1155
|
-
isMutating(e) {
|
|
1156
|
-
return this.#t.findAll({
|
|
1157
|
-
...e,
|
|
1158
|
-
status: "pending"
|
|
1159
|
-
}).length;
|
|
1160
|
-
}
|
|
1161
|
-
getQueryData(e) {
|
|
1162
|
-
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1163
|
-
return this.#e.get(t.queryHash)?.state.data;
|
|
1164
|
-
}
|
|
1165
|
-
ensureQueryData(e) {
|
|
1166
|
-
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1167
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(f(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1168
|
-
}
|
|
1169
|
-
getQueriesData(e) {
|
|
1170
|
-
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1171
|
-
}
|
|
1172
|
-
setQueryData(e, t, n) {
|
|
1173
|
-
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = l(t, i);
|
|
1174
|
-
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1175
|
-
...n,
|
|
1176
|
-
manual: !0
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
setQueriesData(e, t, n) {
|
|
1180
|
-
return F.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1181
|
-
}
|
|
1182
|
-
getQueryState(e) {
|
|
1183
|
-
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1184
|
-
return this.#e.get(t.queryHash)?.state;
|
|
1185
|
-
}
|
|
1186
|
-
removeQueries(e) {
|
|
1187
|
-
let t = this.#e;
|
|
1188
|
-
F.batch(() => {
|
|
1189
|
-
t.findAll(e).forEach((e) => {
|
|
1190
|
-
t.remove(e);
|
|
1191
|
-
});
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
resetQueries(e, t) {
|
|
1195
|
-
let n = this.#e;
|
|
1196
|
-
return F.batch(() => (n.findAll(e).forEach((e) => {
|
|
1197
|
-
e.reset();
|
|
1198
|
-
}), this.refetchQueries({
|
|
1199
|
-
type: "active",
|
|
1200
|
-
...e
|
|
1201
|
-
}, t)));
|
|
1202
|
-
}
|
|
1203
|
-
cancelQueries(e, t = {}) {
|
|
1204
|
-
let n = {
|
|
1205
|
-
revert: !0,
|
|
1206
|
-
...t
|
|
1207
|
-
}, r = F.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1208
|
-
return Promise.all(r).then(c).catch(c);
|
|
1209
|
-
}
|
|
1210
|
-
invalidateQueries(e, t = {}) {
|
|
1211
|
-
return F.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
1212
|
-
e.invalidate();
|
|
1213
|
-
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1214
|
-
...e,
|
|
1215
|
-
type: e?.refetchType ?? e?.type ?? "active"
|
|
1216
|
-
}, t)));
|
|
1217
|
-
}
|
|
1218
|
-
refetchQueries(e, t = {}) {
|
|
1219
|
-
let n = {
|
|
1220
|
-
...t,
|
|
1221
|
-
cancelRefetch: t.cancelRefetch ?? !0
|
|
1222
|
-
}, r = F.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1223
|
-
let t = e.fetch(void 0, n);
|
|
1224
|
-
return n.throwOnError || (t = t.catch(c)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1225
|
-
}));
|
|
1226
|
-
return Promise.all(r).then(c);
|
|
1227
|
-
}
|
|
1228
|
-
fetchQuery(e) {
|
|
1229
|
-
let t = this.defaultQueryOptions(e);
|
|
1230
|
-
t.retry === void 0 && (t.retry = !1);
|
|
1231
|
-
let n = this.#e.build(this, t);
|
|
1232
|
-
return n.isStaleByTime(f(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1233
|
-
}
|
|
1234
|
-
prefetchQuery(e) {
|
|
1235
|
-
return this.fetchQuery(e).then(c).catch(c);
|
|
1236
|
-
}
|
|
1237
|
-
fetchInfiniteQuery(e) {
|
|
1238
|
-
return e._type = "infinite", this.fetchQuery(e);
|
|
1239
|
-
}
|
|
1240
|
-
prefetchInfiniteQuery(e) {
|
|
1241
|
-
return this.fetchInfiniteQuery(e).then(c).catch(c);
|
|
1242
|
-
}
|
|
1243
|
-
ensureInfiniteQueryData(e) {
|
|
1244
|
-
return e._type = "infinite", this.ensureQueryData(e);
|
|
1245
|
-
}
|
|
1246
|
-
resumePausedMutations() {
|
|
1247
|
-
return I.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1248
|
-
}
|
|
1249
|
-
getQueryCache() {
|
|
1250
|
-
return this.#e;
|
|
1251
|
-
}
|
|
1252
|
-
getMutationCache() {
|
|
1253
|
-
return this.#t;
|
|
1254
|
-
}
|
|
1255
|
-
getDefaultOptions() {
|
|
1256
|
-
return this.#n;
|
|
1257
|
-
}
|
|
1258
|
-
setDefaultOptions(e) {
|
|
1259
|
-
this.#n = e;
|
|
1260
|
-
}
|
|
1261
|
-
setQueryDefaults(e, t) {
|
|
1262
|
-
this.#r.set(_(e), {
|
|
1263
|
-
queryKey: e,
|
|
1264
|
-
defaultOptions: t
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
getQueryDefaults(e) {
|
|
1268
|
-
let t = [...this.#r.values()], n = {};
|
|
1269
|
-
return t.forEach((t) => {
|
|
1270
|
-
v(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1271
|
-
}), n;
|
|
1272
|
-
}
|
|
1273
|
-
setMutationDefaults(e, t) {
|
|
1274
|
-
this.#i.set(_(e), {
|
|
1275
|
-
mutationKey: e,
|
|
1276
|
-
defaultOptions: t
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
getMutationDefaults(e) {
|
|
1280
|
-
let t = [...this.#i.values()], n = {};
|
|
1281
|
-
return t.forEach((t) => {
|
|
1282
|
-
v(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1283
|
-
}), n;
|
|
1284
|
-
}
|
|
1285
|
-
defaultQueryOptions(e) {
|
|
1286
|
-
if (e._defaulted) return e;
|
|
1287
|
-
let t = {
|
|
1288
|
-
...this.#n.queries,
|
|
1289
|
-
...this.getQueryDefaults(e.queryKey),
|
|
1290
|
-
...e,
|
|
1291
|
-
_defaulted: !0
|
|
1292
|
-
};
|
|
1293
|
-
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;
|
|
1294
|
-
}
|
|
1295
|
-
defaultMutationOptions(e) {
|
|
1296
|
-
return e?._defaulted ? e : {
|
|
1297
|
-
...this.#n.mutations,
|
|
1298
|
-
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
|
|
1299
|
-
...e,
|
|
1300
|
-
_defaulted: !0
|
|
1301
|
-
};
|
|
1302
|
-
}
|
|
1303
|
-
clear() {
|
|
1304
|
-
this.#e.clear(), this.#t.clear();
|
|
1305
|
-
}
|
|
1306
|
-
}, te = class n {
|
|
1307
|
-
constructor(e = {}) {
|
|
1308
|
-
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: {
|
|
1309
|
-
staleTime: e.staleTime || 300 * 1e3,
|
|
1310
|
-
gcTime: e.gcTime || 600 * 1e3,
|
|
1311
|
-
retry: e.retry || 3,
|
|
1312
|
-
retryDelay: e.retryDelay || ((e) => Math.min(1e3 * 2 ** e, 3e4))
|
|
1313
|
-
} } }), this.initNetworkListeners();
|
|
1314
|
-
}
|
|
1315
|
-
_normalizeUrl(e) {
|
|
1316
|
-
try {
|
|
1317
|
-
let t = new URL(e);
|
|
1318
|
-
return t.origin + t.pathname.replace(/\/$/, "");
|
|
1319
|
-
} catch {
|
|
1320
|
-
return e;
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
configure(e = {}) {
|
|
1324
|
-
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;
|
|
1325
|
-
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) {
|
|
1326
|
-
let t = {};
|
|
1327
|
-
e.staleTime && (t.staleTime = e.staleTime), e.gcTime && (t.gcTime = e.gcTime), e.retry && (t.retry = e.retry), this.queryClient.setDefaultOptions({ queries: {
|
|
1328
|
-
...this.queryClient.getDefaultOptions().queries,
|
|
1329
|
-
...t
|
|
1330
|
-
} });
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
clearLocalCache() {
|
|
1334
|
-
this.queryClient.clear(), this.availableDatasets = [];
|
|
1335
|
-
}
|
|
1336
|
-
initNetworkListeners() {
|
|
1337
|
-
typeof window < "u" && window.addEventListener("online", () => {
|
|
1338
|
-
console.warn("Network connection restored, refreshing data..."), this.refreshAll();
|
|
1339
|
-
});
|
|
1340
|
-
}
|
|
1341
|
-
getHeaders(e = {}) {
|
|
1342
|
-
return {
|
|
1343
|
-
"Content-Type": "application/json",
|
|
1344
|
-
...e
|
|
1345
|
-
};
|
|
1346
|
-
}
|
|
1347
|
-
async fetchApi(e, t, n = {}) {
|
|
1348
|
-
let r = `${this.apiUrl}/${this.apiVersion}${e}`, i = {
|
|
1349
|
-
method: n.method || "POST",
|
|
1350
|
-
headers: this.getHeaders(n.headers),
|
|
1351
|
-
mode: "cors",
|
|
1352
|
-
...n
|
|
1353
|
-
};
|
|
1354
|
-
t !== void 0 && (t.key = this.authKey, t.token = this.authToken, i.body = JSON.stringify(t));
|
|
1355
|
-
try {
|
|
1356
|
-
let t = await fetch(r, i);
|
|
1357
|
-
if (!t.ok) {
|
|
1358
|
-
let n = await t.json().catch(() => null);
|
|
1359
|
-
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}`);
|
|
1360
|
-
}
|
|
1361
|
-
return await t.json();
|
|
1362
|
-
} catch (t) {
|
|
1363
|
-
throw console.error(`API request to ${e} failed:`, t), t instanceof Error && (t.endpoint = e, t.timestamp = (/* @__PURE__ */ new Date()).toISOString()), t;
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
async fetchAllDatasets(e = {}) {
|
|
1367
|
-
let t = e.offset || 0, n = e.limit || 50, r = [
|
|
1368
|
-
"datasets",
|
|
1369
|
-
t,
|
|
1370
|
-
n
|
|
1371
|
-
];
|
|
1372
|
-
return await this.queryClient.fetchQuery({
|
|
1373
|
-
queryKey: r,
|
|
1374
|
-
queryFn: async () => {
|
|
1375
|
-
let e = {
|
|
1376
|
-
action: "get",
|
|
1377
|
-
version: this.apiVersion,
|
|
1378
|
-
find: {
|
|
1379
|
-
where: { type: "dataset" },
|
|
1380
|
-
attributes: [
|
|
1381
|
-
"id",
|
|
1382
|
-
"name",
|
|
1383
|
-
"description"
|
|
1384
|
-
],
|
|
1385
|
-
limit: n,
|
|
1386
|
-
offset: t
|
|
1387
|
-
}
|
|
1388
|
-
}, r = await this.fetchApi("/securable", e);
|
|
1389
|
-
return {
|
|
1390
|
-
data: r?.rows ?? [],
|
|
1391
|
-
pagination: {
|
|
1392
|
-
offset: t,
|
|
1393
|
-
limit: n,
|
|
1394
|
-
total: r?.count ?? 0,
|
|
1395
|
-
pages: Math.ceil((r?.count ?? 0) / n)
|
|
1396
|
-
}
|
|
1397
|
-
};
|
|
1398
|
-
}
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
async searchDatasets(e, t) {
|
|
1402
|
-
if (!e) return { data: [] };
|
|
1403
|
-
let n = [
|
|
1404
|
-
"datasets",
|
|
1405
|
-
"search",
|
|
1406
|
-
e,
|
|
1407
|
-
t
|
|
1408
|
-
];
|
|
1409
|
-
return await this.queryClient.fetchQuery({
|
|
1410
|
-
queryKey: n,
|
|
1411
|
-
queryFn: async () => {
|
|
1412
|
-
let n = {
|
|
1413
|
-
action: "get",
|
|
1414
|
-
version: this.apiVersion,
|
|
1415
|
-
find: { where: { type: "dataset" } }
|
|
1416
|
-
};
|
|
1417
|
-
e?.length > 0 && (n.find.search = {
|
|
1418
|
-
match_types: ["name"],
|
|
1419
|
-
keyphrase: e
|
|
1420
|
-
}), t?.offset && (n.find.offset = t?.offset), t?.limit && (n.find.limit = t?.limit);
|
|
1421
|
-
let r = await this.fetchApi("/securable", n), i = { data: r?.rows ?? [] };
|
|
1422
|
-
return t?.limit && (i.pagination = {
|
|
1423
|
-
offset: t?.offset ?? 0,
|
|
1424
|
-
limit: t?.limit,
|
|
1425
|
-
total: r?.count ?? 0,
|
|
1426
|
-
pages: Math.ceil((r?.count ?? 0) / t?.limit)
|
|
1427
|
-
}), i;
|
|
1428
|
-
}
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
async fetchDatasetNames(t) {
|
|
1432
|
-
if (!t || t.length === 0) throw Error("At least one dataset ID is required");
|
|
1433
|
-
let { valid: n, invalid: r } = e(t);
|
|
1434
|
-
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.");
|
|
1435
|
-
let i = [
|
|
1436
|
-
"dataset-names",
|
|
1437
|
-
n,
|
|
1438
|
-
this.authKey,
|
|
1439
|
-
this.authToken
|
|
1440
|
-
];
|
|
1441
|
-
return await this.queryClient.fetchQuery({
|
|
1442
|
-
queryKey: i,
|
|
1443
|
-
queryFn: async () => {
|
|
1444
|
-
let e = {
|
|
1445
|
-
action: "get",
|
|
1446
|
-
version: this.apiVersion,
|
|
1447
|
-
find: {
|
|
1448
|
-
where: {
|
|
1449
|
-
type: "dataset",
|
|
1450
|
-
id: { in: n }
|
|
1451
|
-
},
|
|
1452
|
-
attributes: [
|
|
1453
|
-
"name",
|
|
1454
|
-
"id",
|
|
1455
|
-
"description"
|
|
1456
|
-
]
|
|
1457
|
-
}
|
|
1458
|
-
};
|
|
1459
|
-
return (await this.fetchApi("/securable", e))?.rows ?? [];
|
|
1460
|
-
}
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
async fetchDatasetsWithColumnsAndFormulas(t) {
|
|
1464
|
-
if (!t || t.length === 0) throw Error("At least one dataset ID is required");
|
|
1465
|
-
let { valid: n, invalid: r } = e(t);
|
|
1466
|
-
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.");
|
|
1467
|
-
let i = [
|
|
1468
|
-
"datasets",
|
|
1469
|
-
n,
|
|
1470
|
-
this.authKey,
|
|
1471
|
-
this.authToken
|
|
1472
|
-
];
|
|
1473
|
-
return await this.queryClient.fetchQuery({
|
|
1474
|
-
queryKey: i,
|
|
1475
|
-
queryFn: async () => {
|
|
1476
|
-
let e = {
|
|
1477
|
-
action: "get",
|
|
1478
|
-
version: this.apiVersion,
|
|
1479
|
-
find: {
|
|
1480
|
-
where: {
|
|
1481
|
-
type: "dataset",
|
|
1482
|
-
id: { in: n }
|
|
1483
|
-
},
|
|
1484
|
-
attributes: [
|
|
1485
|
-
"name",
|
|
1486
|
-
"id",
|
|
1487
|
-
"description"
|
|
1488
|
-
],
|
|
1489
|
-
include: [{
|
|
1490
|
-
model: "Column",
|
|
1491
|
-
attributes: [
|
|
1492
|
-
"id",
|
|
1493
|
-
"name",
|
|
1494
|
-
"description",
|
|
1495
|
-
"type",
|
|
1496
|
-
"subtype",
|
|
1497
|
-
"format",
|
|
1498
|
-
"hidden",
|
|
1499
|
-
"lowestLevel",
|
|
1500
|
-
"expression",
|
|
1501
|
-
"duration_levels",
|
|
1502
|
-
"duration_format"
|
|
1503
|
-
],
|
|
1504
|
-
separate: !0,
|
|
1505
|
-
order: [["order", "asc"]],
|
|
1506
|
-
include: [
|
|
1507
|
-
{
|
|
1508
|
-
model: "Column",
|
|
1509
|
-
attributes: [
|
|
1510
|
-
"id",
|
|
1511
|
-
"securable_id",
|
|
1512
|
-
"hierarchy_enabled",
|
|
1513
|
-
"currency_id"
|
|
1514
|
-
],
|
|
1515
|
-
as: "Joins"
|
|
1516
|
-
},
|
|
1517
|
-
{
|
|
1518
|
-
model: "HierarchyLevel",
|
|
1519
|
-
attributes: [
|
|
1520
|
-
"id",
|
|
1521
|
-
"level",
|
|
1522
|
-
"name"
|
|
1523
|
-
],
|
|
1524
|
-
as: "HierarchyLevels"
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
model: "Currency",
|
|
1528
|
-
attributes: [
|
|
1529
|
-
"id",
|
|
1530
|
-
"name",
|
|
1531
|
-
"symbol"
|
|
1532
|
-
],
|
|
1533
|
-
as: "Currency"
|
|
1534
|
-
}
|
|
1535
|
-
]
|
|
1536
|
-
}, {
|
|
1537
|
-
model: "Formula",
|
|
1538
|
-
attributes: [
|
|
1539
|
-
"id",
|
|
1540
|
-
"name",
|
|
1541
|
-
"description",
|
|
1542
|
-
"type",
|
|
1543
|
-
"subtype",
|
|
1544
|
-
"format",
|
|
1545
|
-
"hidden",
|
|
1546
|
-
"lowestLevel",
|
|
1547
|
-
"expression",
|
|
1548
|
-
"duration_levels",
|
|
1549
|
-
"duration_format"
|
|
1550
|
-
],
|
|
1551
|
-
include: [{
|
|
1552
|
-
model: "Currency",
|
|
1553
|
-
attributes: [
|
|
1554
|
-
"id",
|
|
1555
|
-
"name",
|
|
1556
|
-
"symbol"
|
|
1557
|
-
],
|
|
1558
|
-
as: "Currency"
|
|
1559
|
-
}]
|
|
1560
|
-
}]
|
|
1561
|
-
}
|
|
1562
|
-
};
|
|
1563
|
-
return (await this.fetchApi("/securable", e))?.rows ?? [];
|
|
1564
|
-
}
|
|
1565
|
-
});
|
|
1566
|
-
}
|
|
1567
|
-
async fetchData(e) {
|
|
1568
|
-
if (!e) throw Error("Query is required");
|
|
1569
|
-
let t = ["data", e];
|
|
1570
|
-
return await this.queryClient.fetchQuery({
|
|
1571
|
-
queryKey: t,
|
|
1572
|
-
queryFn: async () => {
|
|
1573
|
-
let t = {
|
|
1574
|
-
action: "get",
|
|
1575
|
-
version: this.apiVersion,
|
|
1576
|
-
find: { queries: [e] }
|
|
1577
|
-
}, n = await this.fetchApi("/data", t);
|
|
1578
|
-
return {
|
|
1579
|
-
data: n?.data || [],
|
|
1580
|
-
performance: n?.performance || {}
|
|
1581
|
-
};
|
|
1582
|
-
}
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
async validate(e, t) {
|
|
1586
|
-
if (!t?.expression) return { valid: !1 };
|
|
1587
|
-
let n = {
|
|
1588
|
-
action: "validate",
|
|
1589
|
-
version: this.apiVersion,
|
|
1590
|
-
properties: t
|
|
1591
|
-
}, r = await this.fetchApi(`/${e}`, n);
|
|
1592
|
-
return {
|
|
1593
|
-
valid: !!r?.valid,
|
|
1594
|
-
reason: r?.reason ?? r?.error,
|
|
1595
|
-
explanation: r?.explanation,
|
|
1596
|
-
type: r?.type
|
|
1597
|
-
};
|
|
1598
|
-
}
|
|
1599
|
-
async fetchTheme(e) {
|
|
1600
|
-
if (!e) throw Error("Theme ID is required");
|
|
1601
|
-
let t = ["theme", e];
|
|
1602
|
-
return await this.queryClient.fetchQuery({
|
|
1603
|
-
queryKey: t,
|
|
1604
|
-
queryFn: async () => (await this.fetchApi("/theme", {
|
|
1605
|
-
action: "get",
|
|
1606
|
-
version: this.apiVersion,
|
|
1607
|
-
find: { where: { id: e } }
|
|
1608
|
-
}))?.rows?.[0]
|
|
1609
|
-
});
|
|
1610
|
-
}
|
|
1611
|
-
refreshAll() {
|
|
1612
|
-
this.queryClient.refetchQueries();
|
|
1613
|
-
}
|
|
1614
|
-
invalidateDatasetData(e) {
|
|
1615
|
-
e ? (this.queryClient.invalidateQueries({ queryKey: ["dataset", e] }), this.queryClient.invalidateQueries({ queryKey: ["columns", e] })) : this.queryClient.invalidateQueries({ queryKey: ["datasets"] });
|
|
1616
|
-
}
|
|
1617
|
-
invalidateAll() {
|
|
1618
|
-
this.queryClient.clear();
|
|
1619
|
-
}
|
|
1620
|
-
static getInstance(e = {}) {
|
|
1621
|
-
return n.instance ? Object.keys(e).length > 0 && n.instance.configure(e) : n.instance = new n(e), n.instance;
|
|
1622
|
-
}
|
|
1623
|
-
async fetchDatasetsRecursive(n) {
|
|
1624
|
-
if (!n || n.length === 0) throw Error("At least one dataset ID is required");
|
|
1625
|
-
let { valid: r, invalid: i } = e(n);
|
|
1626
|
-
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.");
|
|
1627
|
-
let a = [...new Set(r)], o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), c = (e) => {
|
|
1628
|
-
e && t(e) && !o.has(e) && !a.includes(e) && a.push(e);
|
|
1629
|
-
};
|
|
1630
|
-
for (; a.length > 0;) {
|
|
1631
|
-
let e = [];
|
|
1632
|
-
for (; a.length > 0 && e.length < 50;) {
|
|
1633
|
-
let t = a.shift();
|
|
1634
|
-
o.has(t) || e.push(t);
|
|
1635
|
-
}
|
|
1636
|
-
if (e.length !== 0) try {
|
|
1637
|
-
(await this.fetchDatasetsWithColumnsAndFormulas(e)).forEach((e) => {
|
|
1638
|
-
let t = this.postProcessDatasetMetadata(e);
|
|
1639
|
-
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) => {
|
|
1640
|
-
c(e);
|
|
1641
|
-
}), s.set(t.id, t), this.availableDatasets.some((e) => e.id === t.id) || this.availableDatasets.push({
|
|
1642
|
-
id: t.id,
|
|
1643
|
-
name: t.name,
|
|
1644
|
-
columns: t.columns
|
|
1645
|
-
});
|
|
1646
|
-
});
|
|
1647
|
-
} catch (e) {
|
|
1648
|
-
console.error("Error fetching datasets recursively:", e);
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
return [...s.values()];
|
|
1652
|
-
}
|
|
1653
|
-
postProcessDatasetMetadata(e) {
|
|
1654
|
-
let t = [], n = (e.columns ?? []).map((e) => {
|
|
1655
|
-
let n = e.joins ?? (Array.isArray(e.joins) ? e.joins : []);
|
|
1656
|
-
Array.isArray(n) && n.length > 0 && t.push(...n);
|
|
1657
|
-
let { joins: r, ...i } = e;
|
|
1658
|
-
return {
|
|
1659
|
-
...i,
|
|
1660
|
-
joins: n
|
|
1661
|
-
};
|
|
1662
|
-
});
|
|
1663
|
-
return {
|
|
1664
|
-
...e,
|
|
1665
|
-
columns: n,
|
|
1666
|
-
formulas: e.formulas ?? [],
|
|
1667
|
-
outgoingJoins: t,
|
|
1668
|
-
dateLoaded: /* @__PURE__ */ new Date()
|
|
1669
|
-
};
|
|
1670
|
-
}
|
|
1671
|
-
getAvailableDatasets() {
|
|
1672
|
-
return this.availableDatasets;
|
|
1673
|
-
}
|
|
1674
|
-
getLinkedDatasetsIds(e) {
|
|
1675
|
-
let t = this.queryClient.getQueryData(["dataset", e]);
|
|
1676
|
-
return t ? (t.outgoingJoins ?? []).map((e) => e.securable_id).filter((t) => !!t && t !== e) : [];
|
|
1677
|
-
}
|
|
1678
|
-
}.getInstance();
|
|
1679
|
-
//#endregion
|
|
1680
|
-
export { te as t };
|