@luzmo/analytics-components-kit 1.0.9-beta.1 → 1.0.9-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/components/add-to-dashboard/add-to-dashboard.d.ts +134 -0
- package/components/add-to-dashboard/dashboard-actions.d.ts +14 -0
- package/components/add-to-dashboard/helpers/add-to-dashboard-helpers.d.ts +3 -0
- package/components/add-to-dashboard/index.cjs +20 -0
- package/components/add-to-dashboard/index.d.ts +11 -0
- package/components/add-to-dashboard/index.js +21 -0
- package/components/add-to-dashboard/types.d.ts +7 -0
- package/components/add-to-dashboard-BY70QBzE.js +805 -0
- package/components/add-to-dashboard-nYUaDghN.cjs +166 -0
- package/components/ai-chat/ai-chat-request.d.ts +1 -1
- package/components/ai-chat/ai-chat.d.ts +12 -4
- package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +9 -2
- package/components/ai-chat/helpers/elicitation-template.d.ts +3 -1
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.d.ts +2 -2
- package/components/ai-chat/index.js +2 -9
- package/components/ai-chat-DfuJOWao.cjs +338 -0
- package/components/ai-chat-DmDtBF47.js +4325 -0
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +8 -1
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -8
- package/components/ai-interaction-textarea-6ECwAdeT.js +823 -0
- package/components/ai-interaction-textarea-CRyyTj_B.cjs +101 -0
- package/components/area-chart-positioning.config-CoCdjr2E.cjs +20 -0
- package/components/area-chart-positioning.config-o-uJPEr5.js +55 -0
- package/components/bar-chart-positioning.config-CZgrS6lc.js +59 -0
- package/components/bar-chart-positioning.config-fsB82756.cjs +20 -0
- package/components/base-BmvsQ-s1.cjs +20 -0
- package/components/base-CrpOMVeU.js +248 -0
- package/components/base-store-CkIsrRcu.cjs +20 -0
- package/components/base-store-gYqg__8A.js +151 -0
- package/components/box-plot-positioning.config-BMfGGDfe.cjs +20 -0
- package/components/box-plot-positioning.config-CDq460FI.js +48 -0
- package/components/bubble-chart-positioning.config-C9MmTtTX.cjs +20 -0
- package/components/bubble-chart-positioning.config-DWfz4tud.js +55 -0
- package/components/bullet-chart-positioning.config-BwHPM5ui.cjs +20 -0
- package/components/bullet-chart-positioning.config-DmSlVIjL.js +56 -0
- package/components/chart-helpers-DQS2iqSd.js +250 -0
- package/components/chart-helpers-ufZ6VbXs.cjs +20 -0
- package/components/choropleth-map-options.config-CP-IK-4W.js +352 -0
- package/components/choropleth-map-options.config-DSXndhIY.cjs +20 -0
- package/components/choropleth-map-positioning.config-C0m6zzD3.cjs +20 -0
- package/components/choropleth-map-positioning.config-cjBzi_Db.js +55 -0
- package/components/circle-pack-chart-positioning.config-BAFFQSHe.cjs +20 -0
- package/components/circle-pack-chart-positioning.config-CY2rLb57.js +48 -0
- package/components/circular-gauge-positioning.config-6pZUNxYa.js +48 -0
- package/components/circular-gauge-positioning.config-BfWAjAY2.cjs +20 -0
- package/components/color-B7SELPGq.js +3812 -0
- package/components/color-BIEQvHs4.cjs +20 -0
- package/components/color-range-utils-6oEqHV0y.js +63 -0
- package/components/color-range-utils-Bgzuy2bR.cjs +20 -0
- package/components/column-chart-positioning.config-hrAvNd7T.js +55 -0
- package/components/column-chart-positioning.config-xgRuA_l5.cjs +20 -0
- package/components/combination-chart-positioning.config-BI8HroaG.js +48 -0
- package/components/combination-chart-positioning.config-D0TU4hge.cjs +20 -0
- package/components/conditional-number-positioning.config-B_yISWne.cjs +20 -0
- package/components/conditional-number-positioning.config-CWaDhMLA.js +48 -0
- package/components/data-broker-Cb-Fq9xy.cjs +20 -0
- package/components/data-broker-DNfq_8Lg.js +1695 -0
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -8
- package/components/data-field-D4YFqg1H.js +119 -0
- package/components/data-field-Hi-ITTzx.cjs +54 -0
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -8
- package/components/data-field-level-BWQPtFP5.cjs +55 -0
- package/components/data-field-level-CB5GtdU5.js +245 -0
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -8
- package/components/data-field-panel-64HoViNT.js +383 -0
- package/components/data-field-panel-DzKwmQi_.cjs +87 -0
- package/components/data-fields-select/data-fields-select.d.ts +1 -1
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +1 -8
- package/components/data-fields-select-BOwoWq0j.js +290 -0
- package/components/data-fields-select-DXv6PQHG.cjs +43 -0
- package/components/dataset-icon/dataset-icon.d.ts +5 -4
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -8
- package/components/dataset-icon-Bag_eDv8.js +115 -0
- package/components/dataset-icon-CWKBYjGJ.cjs +62 -0
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +1 -8
- package/components/dataset-selector-list-DFC2bvn0.js +321 -0
- package/components/dataset-selector-list-_AL1-GWw.cjs +75 -0
- package/components/dataset-selector-row/dataset-selector-row.d.ts +10 -1
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +1 -8
- package/components/dataset-selector-row-By2ko-Rd.cjs +104 -0
- package/components/dataset-selector-row-DC6mrVyF.js +448 -0
- package/components/de-CjQMTFtl.cjs +20 -0
- package/components/de-Yl3kqB03.js +594 -0
- package/components/defineProperty-AldSMFEH.js +58 -0
- package/components/defineProperty-X1c4tIPD.cjs +20 -0
- package/components/display-settings/display-settings.d.ts +2 -2
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -8
- package/components/display-settings-B2V_F_CU.cjs +142 -0
- package/components/display-settings-BsCKV9ae.js +316 -0
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -8
- package/components/display-settings-binning-BdtxayZT.cjs +56 -0
- package/components/display-settings-binning-CkrbhPVB.js +111 -0
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -8
- package/components/display-settings-datetime-CpFyrcGk.cjs +217 -0
- package/components/display-settings-datetime-mVh5Tjrx.js +414 -0
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +1 -8
- package/components/display-settings-grand-totals-CwOGoE06.cjs +44 -0
- package/components/display-settings-grand-totals-D7unOEKl.js +90 -0
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +1 -8
- package/components/display-settings-numeric-DDZyFNFF.js +480 -0
- package/components/display-settings-numeric-DhiXPU3f.cjs +190 -0
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +2 -2
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +1 -8
- package/components/display-settings-period-over-period-BNFjbgP0.cjs +227 -0
- package/components/display-settings-period-over-period-Hd172SzT.js +443 -0
- package/components/donut-chart-positioning.config-B2CrxOig.js +48 -0
- package/components/donut-chart-positioning.config-DQb53kWI.cjs +20 -0
- package/components/es-Ctf1SIsp.js +594 -0
- package/components/es-DmmTP7D0.cjs +20 -0
- package/components/evolution-number-positioning.config-BdH8pv6_.js +48 -0
- package/components/evolution-number-positioning.config-BzBsGcD4.cjs +20 -0
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -8
- package/components/filter-expression-picker-Bn_jAdQX.cjs +40 -0
- package/components/filter-expression-picker-Cjr8xWxy.js +434 -0
- package/components/filter-item/filter-item.d.ts +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -8
- package/components/filter-item-CHJDVOju.cjs +111 -0
- package/components/filter-item-D6y8eCmG.js +793 -0
- package/components/filter-parameter-picker/index.cjs +1 -1
- package/components/filter-parameter-picker/index.js +1 -8
- package/components/filter-parameter-picker-C955tF0T.js +372 -0
- package/components/filter-parameter-picker-jyrh3POQ.cjs +124 -0
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -8
- package/components/filter-value-picker-B8nA8hTV.js +170 -0
- package/components/filter-value-picker-DmWiNLZH.cjs +69 -0
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +1 -8
- package/components/filter-value-picker-datetime-BAhXn1BS.js +160 -0
- package/components/filter-value-picker-datetime-U4XWKSFx.cjs +51 -0
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -8
- package/components/filter-value-picker-hierarchy-1ya1_rS3.cjs +54 -0
- package/components/filter-value-picker-hierarchy-CUPz5Ggs.js +316 -0
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -8
- package/components/filter-value-picker-numeric-D8mLaxzj.js +237 -0
- package/components/filter-value-picker-numeric-DrHdHj31.cjs +54 -0
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -8
- package/components/filters-Byy8HE19.js +927 -0
- package/components/filters-C8xz8DV-.cjs +199 -0
- package/components/formula/formula.d.ts +2 -2
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -8
- package/components/formula-C6dPJyKm.cjs +45 -0
- package/components/formula-D_ipR6d1.js +136 -0
- package/components/formula-codemirror/formula-codemirror.d.ts +2 -2
- package/components/formula-codemirror/pills/formula-aggregation/formula-aggregation.d.ts +2 -2
- package/components/formula-codemirror/pills/formula-empty-argument-pill/formula-empty-argument-pill.d.ts +2 -2
- package/components/formula-codemirror/pills/formula-include-exclude-panel.d.ts +1 -1
- package/components/formula-codemirror-C1UFMf6i.cjs +215 -0
- package/components/formula-codemirror-CdlIly66.js +12008 -0
- package/components/formula-display-store-B0ifmvCi.cjs +20 -0
- package/components/formula-display-store-CfObcBCd.js +1087 -0
- package/components/formula-editor/formula-aggregations-list.d.ts +2 -2
- package/components/formula-editor/formula-datasets-list.d.ts +2 -2
- package/components/formula-editor/formula-description.d.ts +1 -1
- package/components/formula-editor/formula-editor.d.ts +1 -1
- package/components/formula-editor/formula-functions-list.d.ts +2 -2
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.d.ts +3 -3
- package/components/formula-editor/index.js +3 -10
- package/components/formula-editor-B9ikCsLK.cjs +224 -0
- package/components/formula-editor-DJ-0AVCl.js +685 -0
- package/components/formula-field/formula-field.d.ts +1 -1
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -8
- package/components/formula-field-Bq-RYt0H.js +38 -0
- package/components/formula-field-CNqn6Xbh.cjs +20 -0
- package/components/formula-input-base-Dple-9bo.js +236 -0
- package/components/formula-input-base-KSmmN1uI.cjs +49 -0
- package/components/fr-DKDPLLAZ.cjs +20 -0
- package/components/fr-zWhjQv4B.js +594 -0
- package/components/funnel-chart-positioning.config-DgRle8n1.js +48 -0
- package/components/funnel-chart-positioning.config-DleNZIG-.cjs +20 -0
- package/components/get-dataset-name-3UfKdy0m.cjs +20 -0
- package/components/get-dataset-name-trrlomzY.js +32 -0
- package/components/grid-core-BFNgmaGk.js +4490 -0
- package/components/grid-core-DY0vyroD.cjs +68 -0
- package/components/grid-core.cjs +20 -0
- package/components/grid-core.js +21 -0
- package/components/groupings-B55Oba6e.js +52 -0
- package/components/groupings-DEpTt8DV.cjs +20 -0
- package/components/heat-map-options.config-D58595hz.js +226 -0
- package/components/heat-map-options.config-DhQrM9S9.cjs +20 -0
- package/components/heat-map-positioning.config-BTabq_f9.js +48 -0
- package/components/heat-map-positioning.config-DCB3Eagz.cjs +20 -0
- package/components/heat-table-options.config-AhmEjDAb.cjs +20 -0
- package/components/heat-table-options.config-x-KBTZo1.js +269 -0
- package/components/heat-table-positioning.config-Dnu133l4.cjs +20 -0
- package/components/heat-table-positioning.config-pK8Wn1dw.js +55 -0
- package/components/hexbin-map-positioning.config-DjYp-lX8.js +48 -0
- package/components/hexbin-map-positioning.config-IqRt8f29.cjs +20 -0
- package/components/index.cjs +1 -1
- package/components/index.js +69 -73
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.d.ts +2 -0
- package/components/interactive-viz-item/index.js +3 -9
- package/components/interactive-viz-item/interactive-viz-item.d.ts +21 -4
- package/components/interactive-viz-item/load-add-to-dashboard.d.ts +1 -0
- package/components/interactive-viz-item-CM-LoEa5.cjs +261 -0
- package/components/interactive-viz-item-D6lWVMHb.js +528 -0
- package/components/item-grid/actions.d.ts +2 -1
- package/components/item-grid/helpers/grid-chart-rendering.d.ts +12 -0
- package/components/item-grid/helpers/grid-events.d.ts +1 -56
- package/components/item-grid/helpers/grid-interactions.d.ts +1 -88
- package/components/item-grid/helpers/grid-item-management.d.ts +5 -26
- package/components/item-grid/helpers/grid-item-popover.d.ts +1 -21
- package/components/item-grid/helpers/grid-items.d.ts +1 -9
- package/components/item-grid/helpers/grid-keyboard-updates.d.ts +1 -18
- package/components/item-grid/helpers/grid-keydown-event.d.ts +1 -18
- package/components/item-grid/helpers/grid-popover-cleanup.d.ts +1 -4
- package/components/item-grid/helpers/grid-rendering.d.ts +0 -50
- package/components/item-grid/helpers/grid-stack-lifecycle.d.ts +1 -26
- package/components/item-grid/helpers/grid-theme.d.ts +2 -14
- package/components/item-grid/helpers/grid-update-cycle.d.ts +1 -22
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.d.ts +3 -3
- package/components/item-grid/index.js +3 -9
- package/components/item-grid/item-grid.d.ts +12 -207
- package/components/item-grid/types.d.ts +1 -57
- package/components/item-grid-CbXKsQm4.js +245 -0
- package/components/item-grid-DTishUCb.cjs +41 -0
- package/components/item-grid-item-actions-menu/index.cjs +20 -0
- package/components/item-grid-item-actions-menu/index.d.ts +8 -0
- package/components/item-grid-item-actions-menu/index.js +21 -0
- package/components/item-grid-item-actions-menu/item-grid-item-actions-menu.d.ts +70 -0
- package/components/item-grid-item-actions-menu/types.d.ts +11 -0
- package/components/item-grid-item-actions-menu-B7ylgTwO.js +199 -0
- package/components/item-grid-item-actions-menu-C3BUxZJc.cjs +52 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -8
- package/components/item-option-BTSV33ft.cjs +269 -0
- package/components/item-option-BUju6ZE1.js +953 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -8
- package/components/item-option-action-button-group-CuDeyDRi.cjs +53 -0
- package/components/item-option-action-button-group-DnTBh3R4.js +117 -0
- package/components/item-option-base-BIDIiNfI.js +120 -0
- package/components/item-option-base-C6RQH9M8.cjs +56 -0
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -8
- package/components/item-option-color-palette-picker-DbsqP2zA.js +2040 -0
- package/components/item-option-color-palette-picker-DsG-wxGB.cjs +40 -0
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -8
- package/components/item-option-color-picker-BUN5YK-t.cjs +34 -0
- package/components/item-option-color-picker-CKGUj3cW.js +86 -0
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -8
- package/components/item-option-color-range-BN81ePAI.cjs +98 -0
- package/components/item-option-color-range-dMehrwqA.js +219 -0
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.js +1 -8
- package/components/item-option-guidelines-Bn1HSCgL.js +420 -0
- package/components/item-option-guidelines-CmPaMdqb.cjs +135 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -8
- package/components/item-option-multi-language-field-BFgbOzMM.js +81 -0
- package/components/item-option-multi-language-field-Du609wC_.cjs +33 -0
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -8
- package/components/item-option-number-field-CDcf6_4D.js +101 -0
- package/components/item-option-number-field-CVAtj0UX.cjs +38 -0
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -8
- package/components/item-option-panel-0iHLl9-q.cjs +67 -0
- package/components/item-option-panel-DUlIB6qj.js +181 -0
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -8
- package/components/item-option-picker-ClKAGpgs.js +76 -0
- package/components/item-option-picker-Dkc3nd3x.cjs +37 -0
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -8
- package/components/item-option-position-picker-O8PpyiRv.js +116 -0
- package/components/item-option-position-picker-qCKh0Mfs.cjs +32 -0
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -8
- package/components/item-option-positions-number-field-CBx4uQ39.js +165 -0
- package/components/item-option-positions-number-field-Dfe4ufnF.cjs +49 -0
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -8
- package/components/item-option-radio-button-group-B5OVbLRg.cjs +37 -0
- package/components/item-option-radio-button-group-J_ZusHOP.js +73 -0
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -8
- package/components/item-option-slider-BDAEs7Fk.cjs +33 -0
- package/components/item-option-slider-V9z4qqyE.js +97 -0
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -8
- package/components/item-option-switch-BA4ifIHK.js +68 -0
- package/components/item-option-switch-Bzy2VRLg.cjs +30 -0
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -8
- package/components/item-option-text-field-C-sTkUre.cjs +33 -0
- package/components/item-option-text-field-Cf0khC48.js +79 -0
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +5 -5
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -8
- package/components/item-slot-drop-D2VDgqYS.js +329 -0
- package/components/item-slot-drop-DrJRtG7b.cjs +91 -0
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -8
- package/components/item-slot-drop-panel-CCCOwtYM.js +353 -0
- package/components/item-slot-drop-panel-CFerKcdH.cjs +57 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -8
- package/components/item-slot-picker-BdfYcBKT.js +503 -0
- package/components/item-slot-picker-aqePvZ9B.cjs +174 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -8
- package/components/item-slot-picker-panel-DC3i7XZP.js +446 -0
- package/components/item-slot-picker-panel-dU6NywBo.cjs +81 -0
- package/components/line-chart-positioning.config-BW19v66B.js +55 -0
- package/components/line-chart-positioning.config-DX5mLAP7.cjs +20 -0
- package/components/load-data-fields-for-datasets-C4h8NWIE.cjs +20 -0
- package/components/load-data-fields-for-datasets-CInmiDlZ.js +42 -0
- package/components/localized-mixin-Bt25Frg1.cjs +20 -0
- package/components/localized-mixin-CYMFnS-n.js +45 -0
- package/components/marker-map-positioning.config-BJGwlWKz.js +48 -0
- package/components/marker-map-positioning.config-C0V5LZG-.cjs +20 -0
- package/components/nl-BrjaaktE.cjs +20 -0
- package/components/nl-TUFktGm6.js +594 -0
- package/components/ohlc-chart-positioning.config-Bu1_IBVK.cjs +20 -0
- package/components/ohlc-chart-positioning.config-CFvbZzCR.js +78 -0
- package/components/parallel-coordinates-plot-positioning.config-Bc3qCyxq.js +48 -0
- package/components/parallel-coordinates-plot-positioning.config-EJz1XA1k.cjs +20 -0
- package/components/pivot-table-positioning.config-Bay8gxV-.js +55 -0
- package/components/pivot-table-positioning.config-CMzGb-BR.cjs +20 -0
- package/components/pyramid-chart-positioning.config-BUSeYxYH.js +55 -0
- package/components/pyramid-chart-positioning.config-CrU2vKM-.cjs +20 -0
- package/components/radar-chart-positioning.config-BEzqTXyr.cjs +20 -0
- package/components/radar-chart-positioning.config-DOLpdn-d.js +55 -0
- package/components/route-map-options.config-BnufVGcz.js +328 -0
- package/components/route-map-options.config-DA3k24sP.cjs +20 -0
- package/components/route-map-positioning.config-BgjizdWh.cjs +20 -0
- package/components/route-map-positioning.config-Brg6_eCi.js +66 -0
- package/components/sankey-diagram-positioning.config-DJlWiNYL.js +66 -0
- package/components/sankey-diagram-positioning.config-vccTz1pG.cjs +20 -0
- package/components/scatter-plot-positioning.config-BKqPHMrS.js +77 -0
- package/components/scatter-plot-positioning.config-D7uFFBVZ.cjs +20 -0
- package/components/set-locale-Bgz1WNGE.cjs +20 -0
- package/components/set-locale-s-1X7Jce.js +43 -0
- package/components/slicer-filter-positioning.config-D1kR4xly.cjs +20 -0
- package/components/slicer-filter-positioning.config-Gl9jhO_G.js +48 -0
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -8
- package/components/slot-menu/types.d.ts +1 -1
- package/components/slot-menu-CAhxaK5-.cjs +71 -0
- package/components/slot-menu-Dw53Y-iu.js +429 -0
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -8
- package/components/slot-menu-list-5NsRo9XD.js +348 -0
- package/components/slot-menu-list-CUsmYkiV.cjs +44 -0
- package/components/speedometer-chart-positioning.config-VBLrLNmO.js +48 -0
- package/components/speedometer-chart-positioning.config-fa90zZdb.cjs +20 -0
- package/components/spike-map-options.config-34Vf0UbN.cjs +20 -0
- package/components/spike-map-options.config-CBpHkAfo.js +415 -0
- package/components/spike-map-positioning.config-DrxdeFsj.cjs +20 -0
- package/components/spike-map-positioning.config-oYjk3n9a.js +55 -0
- package/components/strip-plot-positioning.config-Bx_fqmEj.cjs +20 -0
- package/components/strip-plot-positioning.config-lMn33cM4.js +48 -0
- package/components/sunburst-chart-positioning.config-C-We-zZF.js +48 -0
- package/components/sunburst-chart-positioning.config-D-GRWmyF.cjs +20 -0
- package/components/superPropGet-CBezYwzm.js +52 -0
- package/components/superPropGet-DmmlTXgo.cjs +20 -0
- package/components/symbol-map-positioning.config-B0sLlLzK.cjs +20 -0
- package/components/symbol-map-positioning.config-_TJSfpVj.js +55 -0
- package/components/tokens-BWMfo_w4.cjs +20 -0
- package/components/tokens-Ov1pCR4Y.js +29 -0
- package/components/treemap-chart-positioning.config-CO05Gv7X.cjs +20 -0
- package/components/treemap-chart-positioning.config-DAdvoS2I.js +55 -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 +1 -1
- package/components/utils-CGJh0jrq.cjs +20 -0
- package/components/utils-Dk4dM9xv.js +240 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +3 -3
- package/components/venn-diagram-positioning.config-DKXWVaUI.cjs +20 -0
- package/components/venn-diagram-positioning.config-DUwmPQ1A.js +55 -0
- package/components/wordcloud-chart-positioning.config-CgbB_SI0.cjs +20 -0
- package/components/wordcloud-chart-positioning.config-qK5_CF7v.js +55 -0
- package/custom-elements.json +7065 -5792
- package/deprecated-react/components/add-to-dashboard.component.cjs +1 -0
- package/deprecated-react/components/item-grid-item-actions-menu.component.cjs +1 -0
- package/grid-core/helpers/grid-events.d.ts +56 -0
- package/grid-core/helpers/grid-interactions.d.ts +88 -0
- package/grid-core/helpers/grid-item-management.d.ts +28 -0
- package/grid-core/helpers/grid-item-popover.d.ts +21 -0
- package/grid-core/helpers/grid-items.d.ts +9 -0
- package/grid-core/helpers/grid-keyboard-updates.d.ts +18 -0
- package/grid-core/helpers/grid-keydown-event.d.ts +18 -0
- package/grid-core/helpers/grid-popover-cleanup.d.ts +4 -0
- package/grid-core/helpers/grid-rendering.d.ts +41 -0
- package/grid-core/helpers/grid-stack-lifecycle.d.ts +26 -0
- package/grid-core/helpers/grid-theme.d.ts +15 -0
- package/grid-core/helpers/grid-update-cycle.d.ts +22 -0
- package/grid-core/index.d.ts +5 -0
- package/grid-core/item-grid-base.d.ts +223 -0
- package/grid-core/types.d.ts +57 -0
- package/index.d.ts +2 -1
- package/package.json +20 -9
- package/react/components/add-to-dashboard.component.ts +30 -0
- package/react/components/ai-chat.component.ts +1 -1
- package/react/components/interactive-viz-item.component.ts +11 -5
- package/react/components/item-grid-item-actions-menu.component.ts +30 -0
- package/react/components/item-grid.component.ts +4 -1
- package/react/esm/components/add-to-dashboard.component.d.ts +14 -0
- package/react/esm/components/add-to-dashboard.component.js +19 -0
- package/react/esm/components/ai-chat.component.d.ts +1 -1
- package/react/esm/components/ai-chat.component.js +1 -1
- package/react/esm/components/interactive-viz-item.component.d.ts +8 -4
- package/react/esm/components/interactive-viz-item.component.js +8 -4
- package/react/esm/components/item-grid-item-actions-menu.component.d.ts +14 -0
- package/react/esm/components/item-grid-item-actions-menu.component.js +19 -0
- package/react/esm/components/item-grid.component.d.ts +3 -1
- package/react/esm/components/item-grid.component.js +2 -0
- package/react/esm/index.d.ts +4 -3
- package/react/esm/index.js +10 -6
- package/react/index.ts +10 -6
- package/react/luzmo-stub.d.ts +15 -6
- package/react/package.json +2 -2
- package/standalone/chunks/add-to-dashboard-BrWieRxp.js +148 -0
- package/standalone/chunks/area-chart-options.config-CXWPLl-0.js +2 -0
- package/standalone/chunks/area-chart-options.de-Dr8RVJtb.js +2 -0
- package/standalone/chunks/area-chart-options.en-DV1AZ274.js +2 -0
- package/standalone/chunks/area-chart-options.es-Cg7uU7OK.js +2 -0
- package/standalone/chunks/area-chart-options.fr-CJjgrAt2.js +2 -0
- package/standalone/chunks/area-chart-options.nl-CTGxVXNo.js +2 -0
- package/standalone/chunks/area-chart-slots.config-Bxvau_Ii.js +2 -0
- package/standalone/chunks/axis-options.config-DP9f04t6.js +2 -0
- package/standalone/chunks/axis-options.i18n-BwkGC9PX.js +2 -0
- package/standalone/chunks/bar-chart-options.config-w4REKu0t.js +2 -0
- package/standalone/chunks/bar-chart-options.de-DCVBVtFi.js +2 -0
- package/standalone/chunks/bar-chart-options.en-B4xiZxTy.js +2 -0
- package/standalone/chunks/bar-chart-options.es-UqehXB9Z.js +2 -0
- package/standalone/chunks/bar-chart-options.fr-CaUBeZBK.js +2 -0
- package/standalone/chunks/bar-chart-options.nl-C2tFvUE8.js +2 -0
- package/standalone/chunks/bar-chart-slots.config-BWQoKCYJ.js +2 -0
- package/standalone/chunks/base-CLcNr-fQ.js +2 -0
- package/standalone/chunks/bliss-BS5cbLqS.js +2 -0
- package/standalone/chunks/box-plot-options.config-BlYMd4FN.js +2 -0
- package/standalone/chunks/box-plot-options.de-RDAv8kHb.js +2 -0
- package/standalone/chunks/box-plot-options.en-kGLfLsv3.js +2 -0
- package/standalone/chunks/box-plot-options.es-Dw3ivv22.js +2 -0
- package/standalone/chunks/box-plot-options.fr-De5nkQNr.js +2 -0
- package/standalone/chunks/box-plot-options.nl-DD1f-Nlt.js +2 -0
- package/standalone/chunks/box-plot-slots.config-4hmeA6nr.js +2 -0
- package/standalone/chunks/bubble-chart-options.config-BKPTymfC.js +2 -0
- package/standalone/chunks/bubble-chart-options.de-C4pA9ZdS.js +2 -0
- package/standalone/chunks/bubble-chart-options.en-DM-MH8pT.js +2 -0
- package/standalone/chunks/bubble-chart-options.es-C2VE7E7k.js +2 -0
- package/standalone/chunks/bubble-chart-options.fr-BugyvkW9.js +2 -0
- package/standalone/chunks/bubble-chart-options.nl-oDPNybDE.js +2 -0
- package/standalone/chunks/bubble-chart-slots.config-CqTUMwvW.js +2 -0
- package/standalone/chunks/bullet-chart-options.config-Cc5lKDjs.js +2 -0
- package/standalone/chunks/bullet-chart-options.de-Ci81seQn.js +2 -0
- package/standalone/chunks/bullet-chart-options.en-Dk95moRX.js +2 -0
- package/standalone/chunks/bullet-chart-options.es-eIqahAOr.js +2 -0
- package/standalone/chunks/bullet-chart-options.fr-CEABbpT0.js +2 -0
- package/standalone/chunks/bullet-chart-options.nl-B3gOPn5D.js +2 -0
- package/standalone/chunks/bullet-chart-slots.config-BiFMJsgN.js +2 -0
- package/standalone/chunks/calculate-data-field-icon-CrEVAfzJ.js +2 -0
- package/standalone/chunks/chart-helpers-BplLoVQz.js +2 -0
- package/standalone/chunks/choropleth-map-options.config-Ul1FSTwf.js +2 -0
- package/standalone/chunks/choropleth-map-options.de-eALhIYgW.js +2 -0
- package/standalone/chunks/choropleth-map-options.en-DNdPCTz7.js +2 -0
- package/standalone/chunks/choropleth-map-options.es-BoHXBNpE.js +2 -0
- package/standalone/chunks/choropleth-map-options.fr-Di8f-OWA.js +2 -0
- package/standalone/chunks/choropleth-map-options.nl-XKS-glHm.js +2 -0
- package/standalone/chunks/choropleth-map-slots.config-CRF7J3QP.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.config-CjDkh4DG.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.de-Dwf0pYf1.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.en-DhCFF4vx.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.es-DDKEbXse.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.fr-Dezqd3QL.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.nl-BNXyskRD.js +2 -0
- package/standalone/chunks/circle-pack-chart-slots.config-Deq7IUoK.js +2 -0
- package/standalone/chunks/circular-gauge-options.config-p2zb-ORR.js +2 -0
- package/standalone/chunks/circular-gauge-options.de-DXGoiD0i.js +2 -0
- package/standalone/chunks/circular-gauge-options.en-SHYrAgsX.js +2 -0
- package/standalone/chunks/circular-gauge-options.es-D4xJXTQ-.js +2 -0
- package/standalone/chunks/circular-gauge-options.fr-6vBd5iUe.js +2 -0
- package/standalone/chunks/circular-gauge-options.nl-CDoO99Is.js +2 -0
- package/standalone/chunks/circular-gauge-slots.config-C7yUFfFJ.js +2 -0
- package/standalone/chunks/classic-CHhNczKi.js +2 -0
- package/standalone/chunks/classic-dark-Cmrn7jod.js +2 -0
- package/standalone/chunks/color-DaeCRJ5Q.js +2 -0
- package/standalone/chunks/color-palettes-B41FvzWH.js +2 -0
- package/standalone/chunks/color-range-utils-CLqVCA5J.js +2 -0
- package/standalone/chunks/column-chart-options.config-v7fBgXRI.js +2 -0
- package/standalone/chunks/column-chart-options.de-OoMpZc7N.js +2 -0
- package/standalone/chunks/column-chart-options.en-B4xiZxTy.js +2 -0
- package/standalone/chunks/column-chart-options.es-BL-wKXpp.js +2 -0
- package/standalone/chunks/column-chart-options.fr-CaUBeZBK.js +2 -0
- package/standalone/chunks/column-chart-options.nl-C2tFvUE8.js +2 -0
- package/standalone/chunks/column-chart-slots.config-ZBLvqhEb.js +2 -0
- package/standalone/chunks/combination-chart-options.config-C9hmUPal.js +2 -0
- package/standalone/chunks/combination-chart-options.de-ChlEhT09.js +2 -0
- package/standalone/chunks/combination-chart-options.en-DhCXqnwj.js +2 -0
- package/standalone/chunks/combination-chart-options.es-DESqZp0U.js +2 -0
- package/standalone/chunks/combination-chart-options.fr-v6P2xQCi.js +2 -0
- package/standalone/chunks/combination-chart-options.nl-D8ato2ve.js +2 -0
- package/standalone/chunks/combination-chart-slots.config-BNVJfRB2.js +2 -0
- package/standalone/chunks/conditional-number-options.config-hdARPTD7.js +2 -0
- package/standalone/chunks/conditional-number-options.de-BNkYWqfn.js +2 -0
- package/standalone/chunks/conditional-number-options.en-J7yPXdbP.js +2 -0
- package/standalone/chunks/conditional-number-options.es-CKDTBiYp.js +2 -0
- package/standalone/chunks/conditional-number-options.fr-BX1cbt1S.js +2 -0
- package/standalone/chunks/conditional-number-options.nl-6IE86oA9.js +2 -0
- package/standalone/chunks/conditional-number-slots.config-B4kqODqw.js +2 -0
- package/standalone/chunks/create-lazy-loader-DC0rJePE.js +2 -0
- package/standalone/chunks/cs-DLnr3a23.js +2 -0
- package/standalone/chunks/da-BJgbo0uE.js +2 -0
- package/standalone/chunks/data-broker-Dgg5mQze.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.config-a_qCDcWA.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.de-WqpVCnC1.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.en-Obm6KfbI.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.es-CxYTNaTq.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.fr-DhrKNPxX.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.nl-D2RV7246.js +2 -0
- package/standalone/chunks/date-comparison-filter-slots.config-DfHq9lB8.js +2 -0
- package/standalone/chunks/date-filter-options.config-DHTbxiWn.js +2 -0
- package/standalone/chunks/date-filter-options.de-B83VkpDz.js +2 -0
- package/standalone/chunks/date-filter-options.en-DKQexBC1.js +2 -0
- package/standalone/chunks/date-filter-options.es-DfDqzkVB.js +2 -0
- package/standalone/chunks/date-filter-options.fr-DoZy8DU8.js +2 -0
- package/standalone/chunks/date-filter-options.nl-DKtF0sFB.js +2 -0
- package/standalone/chunks/date-filter-slots.config-DHaOkULx.js +2 -0
- package/standalone/chunks/de-BtQ1ecN1.js +2 -0
- package/standalone/chunks/de-DPgYMyja.js +2 -0
- package/standalone/chunks/decompose-numeric-format-BXLQ97e2.js +2 -0
- package/standalone/chunks/default-Bi3Z4SMm.js +2 -0
- package/standalone/chunks/default-dark-C2ykXPQt.js +2 -0
- package/standalone/chunks/default-local-formats-CES1ItiK.js +2 -0
- package/standalone/chunks/display-settings-binning-B_lKObyP.js +38 -0
- package/standalone/chunks/display-settings-datetime-CTmJyEOX.js +199 -0
- package/standalone/chunks/display-settings-grand-totals-IjcbBoyZ.js +26 -0
- package/standalone/chunks/display-settings-numeric-D9hvRtfN.js +172 -0
- package/standalone/chunks/display-settings-period-over-period-Dnstsyqe.js +209 -0
- package/standalone/chunks/donut-chart-options.config-BuZj-QX5.js +2 -0
- package/standalone/chunks/donut-chart-options.de-QusCBL9B.js +2 -0
- package/standalone/chunks/donut-chart-options.en-D0ligFH6.js +2 -0
- package/standalone/chunks/donut-chart-options.es-Bmn34sGt.js +2 -0
- package/standalone/chunks/donut-chart-options.fr-DGBawYKp.js +2 -0
- package/standalone/chunks/donut-chart-options.nl-DzNTu0v4.js +2 -0
- package/standalone/chunks/donut-chart-slots.config-7pDpzNBG.js +2 -0
- package/standalone/chunks/dropdown-filter-options.config-zwR7hmkX.js +2 -0
- package/standalone/chunks/dropdown-filter-options.de-dj6aTNQQ.js +2 -0
- package/standalone/chunks/dropdown-filter-options.en-DH7Jfk8Q.js +2 -0
- package/standalone/chunks/dropdown-filter-options.es-K2L8ln9j.js +2 -0
- package/standalone/chunks/dropdown-filter-options.fr-CMapzFiR.js +2 -0
- package/standalone/chunks/dropdown-filter-options.nl-BLAyit4D.js +2 -0
- package/standalone/chunks/dropdown-filter-slots.config-DkqLjilE.js +2 -0
- package/standalone/chunks/embed-Dymwil3u.js +228 -0
- package/standalone/chunks/en-BD2RCLuw.js +2 -0
- package/standalone/chunks/en-GB-DnwmFNwC.js +2 -0
- package/standalone/chunks/en-US-BD2RCLuw.js +2 -0
- package/standalone/chunks/es-CAWreooi.js +2 -0
- package/standalone/chunks/es-Dp1UuDDz.js +2 -0
- package/standalone/chunks/evolution-number-options.config-B5Cj0YAQ.js +2 -0
- package/standalone/chunks/evolution-number-options.de-Ch0LaHwI.js +2 -0
- package/standalone/chunks/evolution-number-options.en-riChGfa6.js +2 -0
- package/standalone/chunks/evolution-number-options.es-BdG3lvVQ.js +2 -0
- package/standalone/chunks/evolution-number-options.fr-_h0kLeRL.js +2 -0
- package/standalone/chunks/evolution-number-options.nl-CqycrLe1.js +2 -0
- package/standalone/chunks/evolution-number-slots.config-IqPfnCrw.js +2 -0
- package/standalone/chunks/fi-CLQ6vC7V.js +2 -0
- package/standalone/chunks/filters-CBmZhipt.js +544 -0
- package/standalone/chunks/formatter-B7zz6UOp.js +2 -0
- package/standalone/chunks/formula-codemirror-D2F6Aj2h.js +197 -0
- package/standalone/chunks/fr-BG0nQk8g.js +2 -0
- package/standalone/chunks/fr-D8xrUEX4.js +2 -0
- package/standalone/chunks/funnel-chart-options.config-1SyJ_qYd.js +2 -0
- package/standalone/chunks/funnel-chart-options.de-BTxwd7Pe.js +2 -0
- package/standalone/chunks/funnel-chart-options.en-CmY-uO1P.js +2 -0
- package/standalone/chunks/funnel-chart-options.es-DLqBydsE.js +2 -0
- package/standalone/chunks/funnel-chart-options.fr-ztQ5OMZi.js +2 -0
- package/standalone/chunks/funnel-chart-options.nl-DVysx7tP.js +2 -0
- package/standalone/chunks/funnel-chart-slots.config-DfeuNGEL.js +2 -0
- package/standalone/chunks/guidelines-options.config-CS29_J9M.js +2 -0
- package/standalone/chunks/he-DHPb0VBo.js +2 -0
- package/standalone/chunks/heat-map-options.config-DYIrP8cV.js +2 -0
- package/standalone/chunks/heat-map-options.de-BfJMMX2Q.js +2 -0
- package/standalone/chunks/heat-map-options.en-Dr653pN6.js +2 -0
- package/standalone/chunks/heat-map-options.es-CklrBP1w.js +2 -0
- package/standalone/chunks/heat-map-options.fr-DwtCOHrA.js +2 -0
- package/standalone/chunks/heat-map-options.nl-DQBLussF.js +2 -0
- package/standalone/chunks/heat-map-slots.config-BVBzVjJJ.js +2 -0
- package/standalone/chunks/heat-table-options.config-ByHwT44G.js +2 -0
- package/standalone/chunks/heat-table-options.de-BMx67hXo.js +2 -0
- package/standalone/chunks/heat-table-options.en-BbobGoXs.js +2 -0
- package/standalone/chunks/heat-table-options.es-zKo-QMBY.js +2 -0
- package/standalone/chunks/heat-table-options.fr-XSTL1CSb.js +2 -0
- package/standalone/chunks/heat-table-options.nl-Cgcccsee.js +2 -0
- package/standalone/chunks/heat-table-slots.config-CcOl-PCp.js +2 -0
- package/standalone/chunks/helpers-DalWg6k7.js +2 -0
- package/standalone/chunks/hexbin-map-options.config-Elr44Jin.js +2 -0
- package/standalone/chunks/hexbin-map-options.de-C45yz1mZ.js +2 -0
- package/standalone/chunks/hexbin-map-options.en-CIrLRJJ1.js +2 -0
- package/standalone/chunks/hexbin-map-options.es-wf4yF2eW.js +2 -0
- package/standalone/chunks/hexbin-map-options.fr-C0SN47Nq.js +2 -0
- package/standalone/chunks/hexbin-map-options.nl-CweMyvfk.js +2 -0
- package/standalone/chunks/hexbin-map-slots.config-D6qVm4nj.js +2 -0
- package/standalone/chunks/hu-BpaYooip.js +2 -0
- package/standalone/chunks/image-options.config-Cj4r1ypi.js +2 -0
- package/standalone/chunks/image-options.de-CFUHfYzb.js +2 -0
- package/standalone/chunks/image-options.en-BIyq9f_H.js +2 -0
- package/standalone/chunks/image-options.es-BD---IOk.js +2 -0
- package/standalone/chunks/image-options.fr-BGFgsNTs.js +2 -0
- package/standalone/chunks/image-options.nl-DD1JEJSa.js +2 -0
- package/standalone/chunks/image-slots.config-CdWEUY0l.js +2 -0
- package/standalone/chunks/info-tooltip-options.config-DtfU5ZO8.js +2 -0
- package/standalone/chunks/info-tooltip-options.i18n-B_gjTq0R.js +2 -0
- package/standalone/chunks/interactivity-options.config-09eXx6k6.js +2 -0
- package/standalone/chunks/interactivity-options.i18n-BLDCmZkC.js +2 -0
- package/standalone/chunks/it-DWTvD2Xn.js +2 -0
- package/standalone/chunks/item-option-action-button-group-BZyiRTfe.js +35 -0
- package/standalone/chunks/item-option-base-Bk5qxdcQ.js +38 -0
- package/standalone/chunks/item-option-color-palette-picker-O8kT0i8p.js +22 -0
- package/standalone/chunks/item-option-color-picker-CUTCc_yN.js +16 -0
- package/standalone/chunks/item-option-color-range-DsKPvjLj.js +80 -0
- package/standalone/chunks/item-option-guidelines-CZyvhgtN.js +117 -0
- package/standalone/chunks/item-option-multi-language-field-DlC-cCD7.js +15 -0
- package/standalone/chunks/item-option-number-field-BW9VpN9_.js +20 -0
- package/standalone/chunks/item-option-panel-BXA3sIYG.js +298 -0
- package/standalone/chunks/item-option-picker-B2KmO7a6.js +19 -0
- package/standalone/chunks/item-option-position-picker-C9C9SKDD.js +14 -0
- package/standalone/chunks/item-option-positions-number-field-C2ahVlxe.js +31 -0
- package/standalone/chunks/item-option-radio-button-group-2q3doUXH.js +19 -0
- package/standalone/chunks/item-option-slider-C7TT3CqL.js +15 -0
- package/standalone/chunks/item-option-switch-CZR2_Bs9.js +12 -0
- package/standalone/chunks/item-option-text-field-DBUOD_fv.js +15 -0
- package/standalone/chunks/item-slot-picker-panel-CTePASjI.js +439 -0
- package/standalone/chunks/ja-CtDlXHD1.js +2 -0
- package/standalone/chunks/ko-CekuHU50.js +2 -0
- package/standalone/chunks/line-chart-options.config-DyqQLGw8.js +2 -0
- package/standalone/chunks/line-chart-options.de-BScjvJsI.js +2 -0
- package/standalone/chunks/line-chart-options.en-BVWFsre-.js +2 -0
- package/standalone/chunks/line-chart-options.es-CxNJevNs.js +2 -0
- package/standalone/chunks/line-chart-options.fr-LCsLx0Uh.js +2 -0
- package/standalone/chunks/line-chart-options.nl-BOgcjx48.js +2 -0
- package/standalone/chunks/line-chart-slots.config-CavGuJXK.js +2 -0
- package/standalone/chunks/lit-localize-CIGP-NUw.js +2 -0
- package/standalone/chunks/load-data-fields-for-datasets-CPf_Q7p4.js +25 -0
- package/standalone/chunks/load-formula-codemirror-CA7NW4Zq.js +6 -0
- package/standalone/chunks/localize-BXHWaHdZ.js +2 -0
- package/standalone/chunks/localized-decorator-Buib6Rq1.js +2 -0
- package/standalone/chunks/localized-mixin-DN2aV3CC.js +2 -0
- package/standalone/chunks/luzmo-icon-markup-27PRW8QM.js +13 -0
- package/standalone/chunks/luzmoAlignLeft-HA-XKPHy.js +2 -0
- package/standalone/chunks/luzmoAngleDown-PNrItYzK.js +2 -0
- package/standalone/chunks/luzmoAngleLeft-ebJO7ROy.js +2 -0
- package/standalone/chunks/luzmoArrowsHorizontal-TohKbcQD.js +2 -0
- package/standalone/chunks/luzmoBorderDotted-CWXwQ_Hm.js +2 -0
- package/standalone/chunks/luzmoCheckbox-BksyONqE.js +2 -0
- package/standalone/chunks/luzmoCog-C4v4vc5N.js +2 -0
- package/standalone/chunks/luzmoLockOutline-Dctb86HR.js +2 -0
- package/standalone/chunks/luzmoPlus-Dyrrz0v8.js +2 -0
- package/standalone/chunks/luzmoTable-BYeZ8pW6.js +2 -0
- package/standalone/chunks/luzmoTrashOutline-DXZpJx7f.js +2 -0
- package/standalone/chunks/map-tile-providers-DZT1QZX_.js +2 -0
- package/standalone/chunks/marker-map-options.config-D_OTOZRe.js +2 -0
- package/standalone/chunks/marker-map-options.de-SuCAxwxR.js +2 -0
- package/standalone/chunks/marker-map-options.en-B-gl_14v.js +2 -0
- package/standalone/chunks/marker-map-options.es-CSJGCzjk.js +2 -0
- package/standalone/chunks/marker-map-options.fr-D5P_HjSn.js +2 -0
- package/standalone/chunks/marker-map-options.nl-DdeyYFJQ.js +2 -0
- package/standalone/chunks/marker-map-slots.config-CtzpU-rK.js +2 -0
- package/standalone/chunks/mk-Dq3YK4jD.js +2 -0
- package/standalone/chunks/nl-7csxtU-I.js +2 -0
- package/standalone/chunks/nl-BXPduS2Q.js +2 -0
- package/standalone/chunks/no-DJNRx8au.js +2 -0
- package/standalone/chunks/ohlc-chart-options.config-Bu2GKlAH.js +2 -0
- package/standalone/chunks/ohlc-chart-options.de-DeQ8wdeE.js +2 -0
- package/standalone/chunks/ohlc-chart-options.en-DopM1kPj.js +2 -0
- package/standalone/chunks/ohlc-chart-options.es-BKjQWwH0.js +2 -0
- package/standalone/chunks/ohlc-chart-options.fr-DWhV_lXz.js +2 -0
- package/standalone/chunks/ohlc-chart-options.nl-D8lhNKIv.js +2 -0
- package/standalone/chunks/ohlc-chart-slots.config-xYpPbmg2.js +2 -0
- package/standalone/chunks/orion-BHOu-xse.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.config-BcIYCRdF.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.de-Dvi0gBbB.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.en-LdifcLcc.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.es-DNisZWdC.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.fr-DwOBR0cp.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.nl-DCXeTldD.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-slots.config-DvJljfr8.js +2 -0
- package/standalone/chunks/period-over-period-condition.const-AC_onvUf.js +2 -0
- package/standalone/chunks/periods.const-Cie50jR4.js +2 -0
- package/standalone/chunks/pinky-CkEB6Fvc.js +2 -0
- package/standalone/chunks/pivot-table-options.config-BZpId1ju.js +2 -0
- package/standalone/chunks/pivot-table-options.de-B0l711Q7.js +2 -0
- package/standalone/chunks/pivot-table-options.en-D3MYHTWH.js +2 -0
- package/standalone/chunks/pivot-table-options.es-CDACogGQ.js +2 -0
- package/standalone/chunks/pivot-table-options.fr-C-w1sys8.js +2 -0
- package/standalone/chunks/pivot-table-options.nl-Dy9VJ1bm.js +2 -0
- package/standalone/chunks/pivot-table-slots.config-DZOE04Ea.js +2 -0
- package/standalone/chunks/pl-zDnuk9Gd.js +2 -0
- package/standalone/chunks/pt-BEVAH5AJ.js +2 -0
- package/standalone/chunks/pyramid-chart-options.config-CBd-pgn_.js +2 -0
- package/standalone/chunks/pyramid-chart-options.de-CBL_8UjH.js +2 -0
- package/standalone/chunks/pyramid-chart-options.en-CTozc1Uh.js +2 -0
- package/standalone/chunks/pyramid-chart-options.es-BKciL-nO.js +2 -0
- package/standalone/chunks/pyramid-chart-options.fr-B04m8B_b.js +2 -0
- package/standalone/chunks/pyramid-chart-options.nl-DIhj1NYF.js +2 -0
- package/standalone/chunks/pyramid-chart-slots.config-DKBFy-TL.js +2 -0
- package/standalone/chunks/radar-chart-options.config-CnQ8mbs9.js +2 -0
- package/standalone/chunks/radar-chart-options.de-_LSueG69.js +2 -0
- package/standalone/chunks/radar-chart-options.en-DBA8TpKJ.js +2 -0
- package/standalone/chunks/radar-chart-options.es-DjSsFQkP.js +2 -0
- package/standalone/chunks/radar-chart-options.fr-CCh2jYPS.js +2 -0
- package/standalone/chunks/radar-chart-options.nl-tZ0JRjXD.js +2 -0
- package/standalone/chunks/radar-chart-slots.config-CHauNDhi.js +2 -0
- package/standalone/chunks/radiant-BfVbXYeP.js +2 -0
- package/standalone/chunks/regular-table-options.config-BnhDzc-m.js +2 -0
- package/standalone/chunks/regular-table-options.de-DPmii-jp.js +2 -0
- package/standalone/chunks/regular-table-options.en-DQugncwx.js +2 -0
- package/standalone/chunks/regular-table-options.es-DzbTEFoh.js +2 -0
- package/standalone/chunks/regular-table-options.fr-roRCzuK8.js +2 -0
- package/standalone/chunks/regular-table-options.nl-DxYUm_Rz.js +2 -0
- package/standalone/chunks/regular-table-slots.config-BqEJgzhG.js +2 -0
- package/standalone/chunks/route-map-options.config-CWyA9_SB.js +2 -0
- package/standalone/chunks/route-map-options.de-Ke-Bybpi.js +2 -0
- package/standalone/chunks/route-map-options.en-CDXIcBc0.js +2 -0
- package/standalone/chunks/route-map-options.es-CCEXcHLb.js +2 -0
- package/standalone/chunks/route-map-options.fr-BXoMKK54.js +2 -0
- package/standalone/chunks/route-map-options.nl-U52AE8MW.js +2 -0
- package/standalone/chunks/route-map-slots.config-B5G4JVnI.js +2 -0
- package/standalone/chunks/royale-Bcd5VvC5.js +2 -0
- package/standalone/chunks/ru-Ceji1Fqk.js +2 -0
- package/standalone/chunks/sankey-diagram-options.config-Curc2-If.js +2 -0
- package/standalone/chunks/sankey-diagram-options.de-Bisx6mpj.js +2 -0
- package/standalone/chunks/sankey-diagram-options.en-DonChVRz.js +2 -0
- package/standalone/chunks/sankey-diagram-options.es-TCXmlth5.js +2 -0
- package/standalone/chunks/sankey-diagram-options.fr-B3iAnJNW.js +2 -0
- package/standalone/chunks/sankey-diagram-options.nl-BnXZQEKn.js +2 -0
- package/standalone/chunks/sankey-diagram-slots.config-jyKqjUsV.js +2 -0
- package/standalone/chunks/scatter-plot-options.config-BV9Lb6-v.js +2 -0
- package/standalone/chunks/scatter-plot-options.de-Dg3O1b2R.js +2 -0
- package/standalone/chunks/scatter-plot-options.en-CJH2ZlFW.js +2 -0
- package/standalone/chunks/scatter-plot-options.es-7kExRi4J.js +2 -0
- package/standalone/chunks/scatter-plot-options.fr-Bbkf8efT.js +2 -0
- package/standalone/chunks/scatter-plot-options.nl-zrEXoM-k.js +2 -0
- package/standalone/chunks/scatter-plot-slots.config-CF2Ii2Ez.js +2 -0
- package/standalone/chunks/search-filter-options.config-DPhYMtlJ.js +2 -0
- package/standalone/chunks/search-filter-options.de-DewLFwK0.js +2 -0
- package/standalone/chunks/search-filter-options.en-DyIupnO9.js +2 -0
- package/standalone/chunks/search-filter-options.es-Dx1WGz-q.js +2 -0
- package/standalone/chunks/search-filter-options.fr-BdnlKNNx.js +2 -0
- package/standalone/chunks/search-filter-options.nl-DsKcc6ke.js +2 -0
- package/standalone/chunks/search-filter-slots.config-BcTF-DAh.js +2 -0
- package/standalone/chunks/seasonal-f6I--CYV.js +2 -0
- package/standalone/chunks/slicer-filter-options.config-BQ1vpcTb.js +2 -0
- package/standalone/chunks/slicer-filter-options.de-v0So4hDH.js +2 -0
- package/standalone/chunks/slicer-filter-options.en-BkVZDku6.js +2 -0
- package/standalone/chunks/slicer-filter-options.es-BATOs827.js +2 -0
- package/standalone/chunks/slicer-filter-options.fr-DROih5R8.js +2 -0
- package/standalone/chunks/slicer-filter-options.nl-CT4HfMiT.js +2 -0
- package/standalone/chunks/slicer-filter-slots.config-DL3Q0Zbm.js +2 -0
- package/standalone/chunks/slider-filter-options.config-ZCkBkeXQ.js +2 -0
- package/standalone/chunks/slider-filter-options.de-BToTmIkJ.js +2 -0
- package/standalone/chunks/slider-filter-options.en-Du0cf6NC.js +2 -0
- package/standalone/chunks/slider-filter-options.es-6yGUkJ9r.js +2 -0
- package/standalone/chunks/slider-filter-options.fr-DeupuOm1.js +2 -0
- package/standalone/chunks/slider-filter-options.nl-K6BEul4-.js +2 -0
- package/standalone/chunks/slider-filter-slots.config-52Bs7zu3.js +2 -0
- package/standalone/chunks/spacer-options.config-DmYOnwBz.js +2 -0
- package/standalone/chunks/speedometer-chart-options.config-YmUv49lQ.js +2 -0
- package/standalone/chunks/speedometer-chart-options.de-CWVMBrx9.js +2 -0
- package/standalone/chunks/speedometer-chart-options.en-DtCdA113.js +2 -0
- package/standalone/chunks/speedometer-chart-options.es-BC1Y-Hje.js +2 -0
- package/standalone/chunks/speedometer-chart-options.fr-BqnVNM9x.js +2 -0
- package/standalone/chunks/speedometer-chart-options.nl-D2dmDbhJ.js +2 -0
- package/standalone/chunks/speedometer-chart-slots.config-Cfsna_2O.js +2 -0
- package/standalone/chunks/spike-map-options.config-YOYHTzZs.js +2 -0
- package/standalone/chunks/spike-map-options.de-cIVh4l8Z.js +2 -0
- package/standalone/chunks/spike-map-options.en-CKjynYQl.js +2 -0
- package/standalone/chunks/spike-map-options.es-_GxcrK73.js +2 -0
- package/standalone/chunks/spike-map-options.fr-DHi_gHN6.js +2 -0
- package/standalone/chunks/spike-map-options.nl-Bicq35x0.js +2 -0
- package/standalone/chunks/spike-map-slots.config-FfXNX2O3.js +2 -0
- package/standalone/chunks/strip-plot-options.config-D84diNaB.js +2 -0
- package/standalone/chunks/strip-plot-options.de-DjNnWJl2.js +2 -0
- package/standalone/chunks/strip-plot-options.en-Of1sTT_A.js +2 -0
- package/standalone/chunks/strip-plot-options.es-BEHY8I7g.js +2 -0
- package/standalone/chunks/strip-plot-options.fr-DLfEoXBO.js +2 -0
- package/standalone/chunks/strip-plot-options.nl-CA3oh18P.js +2 -0
- package/standalone/chunks/strip-plot-slots.config-DQrrby2Y.js +2 -0
- package/standalone/chunks/sunburst-chart-options.config-DRjBFJV0.js +2 -0
- package/standalone/chunks/sunburst-chart-options.de-D6enQCjV.js +2 -0
- package/standalone/chunks/sunburst-chart-options.en-D9DSivE2.js +2 -0
- package/standalone/chunks/sunburst-chart-options.es-Bb7iCI1h.js +2 -0
- package/standalone/chunks/sunburst-chart-options.fr-CCzUgv7r.js +2 -0
- package/standalone/chunks/sunburst-chart-options.nl-bGOCvc4m.js +2 -0
- package/standalone/chunks/sunburst-chart-slots.config-DqW1e0nf.js +2 -0
- package/standalone/chunks/sv-CgssnOqA.js +2 -0
- package/standalone/chunks/symbol-map-options.config-Bbb3xIKg.js +2 -0
- package/standalone/chunks/symbol-map-options.de-CqxosoVr.js +2 -0
- package/standalone/chunks/symbol-map-options.en-DT7vsjRh.js +2 -0
- package/standalone/chunks/symbol-map-options.es-PGR-C-uM.js +2 -0
- package/standalone/chunks/symbol-map-options.fr-CPNydqFW.js +2 -0
- package/standalone/chunks/symbol-map-options.nl-BBHmJwLF.js +2 -0
- package/standalone/chunks/symbol-map-slots.config-B_UtYexb.js +2 -0
- package/standalone/chunks/task-CNp3cEJA.js +2 -0
- package/standalone/chunks/text-options.config-Chv14kyQ.js +2 -0
- package/standalone/chunks/text-options.de-CRVu5VAm.js +2 -0
- package/standalone/chunks/text-options.en-CupCY5Us.js +2 -0
- package/standalone/chunks/text-options.es-uKgRI4LZ.js +2 -0
- package/standalone/chunks/text-options.fr-C256Njqd.js +2 -0
- package/standalone/chunks/text-options.nl-CpMqMCOZ.js +2 -0
- package/standalone/chunks/text-slots.config-D33nu0FP.js +2 -0
- package/standalone/chunks/themes-BD5sKr3j.js +2 -0
- package/standalone/chunks/tr-i3G2sFi4.js +2 -0
- package/standalone/chunks/treemap-chart-options.config-DxkumoYq.js +2 -0
- package/standalone/chunks/treemap-chart-options.de-DdhcpjTu.js +2 -0
- package/standalone/chunks/treemap-chart-options.en-DB87QjbN.js +2 -0
- package/standalone/chunks/treemap-chart-options.es-DEImFeIB.js +2 -0
- package/standalone/chunks/treemap-chart-options.fr-BzM5c_vV.js +2 -0
- package/standalone/chunks/treemap-chart-options.nl-CFJgBJi2.js +2 -0
- package/standalone/chunks/treemap-chart-slots.config-CaearczZ.js +2 -0
- package/standalone/chunks/type-check-CC6bgirK.js +2 -0
- package/standalone/chunks/types-BS6dxSMT.js +2 -0
- package/standalone/chunks/urban-BEeGnayr.js +2 -0
- package/standalone/chunks/v4-CI0qP0ur.js +2 -0
- package/standalone/chunks/venn-diagram-options.config-DmYOnwBz.js +2 -0
- package/standalone/chunks/venn-diagram-slots.config-GnP5AAAL.js +2 -0
- package/standalone/chunks/version-DJES6maY.js +2 -0
- package/standalone/chunks/video-options.config-CfgT_MAw.js +2 -0
- package/standalone/chunks/video-options.de-Cxs3-JN3.js +2 -0
- package/standalone/chunks/video-options.en-ck74JByC.js +2 -0
- package/standalone/chunks/video-options.es-UdEH3Rzk.js +2 -0
- package/standalone/chunks/video-options.fr-p5bOI-bw.js +2 -0
- package/standalone/chunks/video-options.nl-CBYWp-Df.js +2 -0
- package/standalone/chunks/video-slots.config-ufoVcXKL.js +2 -0
- package/standalone/chunks/vivid-BC9AYKyD.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.config-b-ibtRWp.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.de-B0CeI2KB.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.en-BQ-8ciOw.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.es-DyMrHpJL.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.fr-V1k_70yq.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.nl-CrfYuaYy.js +2 -0
- package/standalone/chunks/wordcloud-chart-slots.config-g7QwS2dG.js +2 -0
- package/standalone/chunks/zh-CN-NVnv57dz.js +2 -0
- package/standalone/chunks/zh-TW-NVnv57dz.js +2 -0
- package/standalone/interactive-viz-item.js +263 -0
- package/standalone/item-grid.js +123 -0
- package/standalone/manifest.json +436 -0
- package/storybook/register-components.d.ts +2 -1
- package/styles/tokens.d.ts +1 -0
- package/types/add-to-dashboard.types.d.ts +51 -0
- package/types.d.ts +3 -1
- package/utils/data-broker/index.d.ts +19 -1
- package/utils/filters/filter-text.d.ts +1 -1
- package/utils/formula/base/formula-base.d.ts +2 -2
- package/utils/formula/config/build-datasets.d.ts +2 -2
- package/utils/formula/store/formula-display-store.d.ts +1 -1
- package/components/ai-chat-1OlRpimu.cjs +0 -337
- package/components/ai-chat-PesGGOLP.js +0 -4350
- package/components/ai-interaction-textarea-BXKG2elT.js +0 -820
- package/components/ai-interaction-textarea-CmFGJzbb.cjs +0 -99
- package/components/area-chart-positioning.config-C37nmNfP.cjs +0 -20
- package/components/area-chart-positioning.config-CF8Z7PuX.js +0 -55
- package/components/bar-chart-positioning.config-C4ii41mE.cjs +0 -20
- package/components/bar-chart-positioning.config-vuRQZsYr.js +0 -59
- package/components/base-8L8Jt2vi.js +0 -249
- package/components/base-K-bf6_7X.cjs +0 -20
- package/components/base-store-BhGpnbqi.js +0 -152
- package/components/base-store-D5cDq6d4.cjs +0 -20
- package/components/box-plot-positioning.config-D2LpbgQ_.cjs +0 -20
- package/components/box-plot-positioning.config-DMIsI9yU.js +0 -48
- package/components/bubble-chart-positioning.config-Btak-zwN.cjs +0 -20
- package/components/bubble-chart-positioning.config-jYu0Q0Mc.js +0 -55
- package/components/bullet-chart-positioning.config-BWHfPPyA.js +0 -56
- package/components/bullet-chart-positioning.config-CwoRVgNS.cjs +0 -20
- package/components/choropleth-map-options.config-DWWydGJ3.js +0 -352
- package/components/choropleth-map-options.config-VG10yjwC.cjs +0 -20
- package/components/choropleth-map-positioning.config-DttV0Dk_.cjs +0 -20
- package/components/choropleth-map-positioning.config-KtxcLW7E.js +0 -55
- package/components/circle-pack-chart-positioning.config-N-rZvQjR.cjs +0 -20
- package/components/circle-pack-chart-positioning.config-QBO-pwDr.js +0 -48
- package/components/circular-gauge-positioning.config-Cf1zuLXa.cjs +0 -20
- package/components/circular-gauge-positioning.config-DKGmEpFj.js +0 -48
- package/components/color-BWnYpOu7.js +0 -3812
- package/components/color-Bl8h58rV.cjs +0 -20
- package/components/color-range-utils-C3HJJUS1.cjs +0 -20
- package/components/color-range-utils-CiqduHJS.js +0 -63
- package/components/column-chart-positioning.config-DcErS56C.cjs +0 -20
- package/components/column-chart-positioning.config-LkQSNtSH.js +0 -55
- package/components/combination-chart-positioning.config-7iAEpO7h.js +0 -48
- package/components/combination-chart-positioning.config-Dzi93oAp.cjs +0 -20
- package/components/conditional-number-positioning.config-Bse6AKPP.js +0 -48
- package/components/conditional-number-positioning.config-CTy0zLXu.cjs +0 -20
- package/components/data-broker-B0uUO5er.js +0 -1684
- package/components/data-broker-CyMYR6w1.cjs +0 -20
- package/components/data-field-CSm9APdz.js +0 -121
- package/components/data-field-D2y4cv9j.cjs +0 -54
- package/components/data-field-level-B0aj8c5M.js +0 -247
- package/components/data-field-level-Llx0Y9m-.cjs +0 -55
- package/components/data-field-panel-DpBWJnes.js +0 -385
- package/components/data-field-panel-Dv60lRUC.cjs +0 -87
- package/components/data-fields-select-69TDpIG_.js +0 -289
- package/components/data-fields-select-BHa8THub.cjs +0 -43
- package/components/dataset-icon-BAV0S4sZ.cjs +0 -64
- package/components/dataset-icon-CWT5Ju8w.js +0 -125
- package/components/dataset-selector-list-D5lBv2sD.cjs +0 -75
- package/components/dataset-selector-list-DTMXvqfO.js +0 -323
- package/components/dataset-selector-row-gHWsZlrC.cjs +0 -102
- package/components/dataset-selector-row-kiHtzZcP.js +0 -427
- package/components/de-BhKtDR6p.js +0 -565
- package/components/de-DXFLsh4N.cjs +0 -20
- package/components/display-settings-DKuvd62j.js +0 -315
- package/components/display-settings-DPqTRJ7E.cjs +0 -142
- package/components/display-settings-binning-BkCNSkgf.js +0 -110
- package/components/display-settings-binning-DZKo_tBm.cjs +0 -56
- package/components/display-settings-datetime-BTgriFcv.js +0 -413
- package/components/display-settings-datetime-DD7Oh-2T.cjs +0 -217
- package/components/display-settings-grand-totals-BsIZg67h.cjs +0 -44
- package/components/display-settings-grand-totals-DH7AoyQY.js +0 -89
- package/components/display-settings-numeric-CkFpOoWU.js +0 -479
- package/components/display-settings-numeric-CsmrnEp2.cjs +0 -190
- package/components/display-settings-period-over-period-CdI5wuL_.js +0 -442
- package/components/display-settings-period-over-period-Co37HcSm.cjs +0 -227
- package/components/donut-chart-positioning.config-BThtaJEt.cjs +0 -20
- package/components/donut-chart-positioning.config-D2uG_Irk.js +0 -48
- package/components/es-DK-49nGv.cjs +0 -20
- package/components/es-DUENN-m1.js +0 -565
- package/components/evolution-number-positioning.config-BtjobZqK.js +0 -48
- package/components/evolution-number-positioning.config-DtYiv9oB.cjs +0 -20
- package/components/filter-expression-picker-C4kE_Thd.js +0 -433
- package/components/filter-expression-picker-CU-OfSmI.cjs +0 -40
- package/components/filter-item-Be6Z7NMz.js +0 -792
- package/components/filter-item-CxPrwF-R.cjs +0 -111
- package/components/filter-parameter-picker-Ba8bvoPZ.js +0 -371
- package/components/filter-parameter-picker-BtJLCUbT.cjs +0 -124
- package/components/filter-value-picker-DD206JZl.js +0 -169
- package/components/filter-value-picker-Dpua1vcJ.cjs +0 -69
- package/components/filter-value-picker-datetime-Bj0YaPtB.js +0 -159
- package/components/filter-value-picker-datetime-DWgI83nJ.cjs +0 -51
- package/components/filter-value-picker-hierarchy-BEoqkQq0.cjs +0 -54
- package/components/filter-value-picker-hierarchy-ZMThNJYm.js +0 -315
- package/components/filter-value-picker-numeric-1Vxp_Vam.cjs +0 -54
- package/components/filter-value-picker-numeric-CVaDogFQ.js +0 -236
- package/components/filters-Cnm0Kwk3.js +0 -926
- package/components/filters-Dtbt99BP.cjs +0 -199
- package/components/formula-BE9bipho.js +0 -138
- package/components/formula-DGMnKmnR.cjs +0 -45
- package/components/formula-codemirror-B14vsZXJ.cjs +0 -215
- package/components/formula-codemirror-xfm0QtJN.js +0 -12018
- package/components/formula-display-store-8hohve9v.cjs +0 -20
- package/components/formula-display-store-JAaWuYNB.js +0 -1087
- package/components/formula-editor-CkW-JfyT.cjs +0 -224
- package/components/formula-editor-DN87mT8q.js +0 -690
- package/components/formula-field-B1EMJOfK.js +0 -40
- package/components/formula-field-CQYFSBHL.cjs +0 -20
- package/components/formula-input-base-BCQXmd1P.cjs +0 -49
- package/components/formula-input-base-HL0Fg74x.js +0 -236
- package/components/fr-CePmGBUH.js +0 -565
- package/components/fr-uE3fb3kc.cjs +0 -20
- package/components/funnel-chart-positioning.config-DeLnAGGT.cjs +0 -20
- package/components/funnel-chart-positioning.config-TVzSiV6I.js +0 -48
- package/components/get-dataset-name-DLjeChNS.js +0 -32
- package/components/get-dataset-name-mGNEfkAv.cjs +0 -20
- package/components/groupings-CODDxpbZ.js +0 -52
- package/components/groupings-DKMq8DgS.cjs +0 -20
- package/components/heat-map-options.config-DtDh9Gpy.cjs +0 -20
- package/components/heat-map-options.config-X96sw-BV.js +0 -226
- package/components/heat-map-positioning.config--wm9l7bB.js +0 -48
- package/components/heat-map-positioning.config-ddrgZXa9.cjs +0 -20
- package/components/heat-table-options.config-CugBuoUA.cjs +0 -20
- package/components/heat-table-options.config-D6dA9J97.js +0 -269
- package/components/heat-table-positioning.config-CIhhBEMg.js +0 -55
- package/components/heat-table-positioning.config-qMDSRhZR.cjs +0 -20
- package/components/hexbin-map-positioning.config-E_BpcIFy.cjs +0 -20
- package/components/hexbin-map-positioning.config-S7VYUwVD.js +0 -48
- package/components/interactive-viz-item--kqitfEZ.cjs +0 -249
- package/components/interactive-viz-item-cdShBZQA.js +0 -722
- package/components/item-grid/item-grid-item-actions-menu.d.ts +0 -35
- package/components/item-grid-BfhqMuQA.cjs +0 -113
- package/components/item-grid-xCM8AqRH.js +0 -4559
- package/components/item-option-B5FraAiv.cjs +0 -269
- package/components/item-option-DaAlj_OB.js +0 -955
- package/components/item-option-action-button-group-4w8ub3cT.js +0 -118
- package/components/item-option-action-button-group-DHu8VjCy.cjs +0 -53
- package/components/item-option-base-4Bwn-3Fc.cjs +0 -56
- package/components/item-option-base-BxQUwXzg.js +0 -123
- package/components/item-option-color-palette-picker-D5nO-Bqb.js +0 -2041
- package/components/item-option-color-palette-picker-DrhHKaAK.cjs +0 -40
- package/components/item-option-color-picker-Bhv_k1uW.cjs +0 -34
- package/components/item-option-color-picker-CKokPQcS.js +0 -87
- package/components/item-option-color-range-CwDkzRcx.cjs +0 -98
- package/components/item-option-color-range-DYsMbFEb.js +0 -220
- package/components/item-option-guidelines-CXl4Yla4.js +0 -419
- package/components/item-option-guidelines-DMjA-h3h.cjs +0 -135
- package/components/item-option-multi-language-field-C75Hd2fG.cjs +0 -33
- package/components/item-option-multi-language-field-S6Mt3k23.js +0 -82
- package/components/item-option-number-field-Bg5r0IAX.cjs +0 -38
- package/components/item-option-number-field-CALw8q_J.js +0 -102
- package/components/item-option-panel-DBXgOsM4.cjs +0 -67
- package/components/item-option-panel-v7yUS9hb.js +0 -183
- package/components/item-option-picker-CZyzd3Nq.js +0 -77
- package/components/item-option-picker-RFstpFwI.cjs +0 -37
- package/components/item-option-position-picker-C8cnHEH4.js +0 -117
- package/components/item-option-position-picker-CKHbHHl1.cjs +0 -32
- package/components/item-option-positions-number-field-BGs3WWaz.cjs +0 -49
- package/components/item-option-positions-number-field-BJTY1qZR.js +0 -164
- package/components/item-option-radio-button-group-CN8TLtsV.cjs +0 -37
- package/components/item-option-radio-button-group-vhm4r4_k.js +0 -74
- package/components/item-option-slider-CQOKWBZQ.js +0 -96
- package/components/item-option-slider-DbLPhpJd.cjs +0 -33
- package/components/item-option-switch-CWpb0nf3.cjs +0 -30
- package/components/item-option-switch-azZX2vJr.js +0 -69
- package/components/item-option-text-field-CIM_38yi.js +0 -80
- package/components/item-option-text-field-CS3Lccda.cjs +0 -33
- package/components/item-slot-drop-C8WYPu_w.cjs +0 -91
- package/components/item-slot-drop-DeZ2GvAu.js +0 -331
- package/components/item-slot-drop-panel-BcBHDDTT.cjs +0 -57
- package/components/item-slot-drop-panel-LpfX7ap0.js +0 -355
- package/components/item-slot-picker-BSO1ltXC.js +0 -505
- package/components/item-slot-picker-CvySq194.cjs +0 -174
- package/components/item-slot-picker-panel-CsntXcAp.js +0 -448
- package/components/item-slot-picker-panel-DQ_OzMO_.cjs +0 -81
- package/components/line-chart-positioning.config-CrreArf5.js +0 -55
- package/components/line-chart-positioning.config-DMe1Ldwk.cjs +0 -20
- package/components/load-data-fields-for-datasets-B3XcFFfg.js +0 -42
- package/components/load-data-fields-for-datasets-rL24A68g.cjs +0 -20
- package/components/localized-mixin-DaLXe5J9.js +0 -45
- package/components/localized-mixin-DiUJOd06.cjs +0 -20
- package/components/marker-map-positioning.config-CpI8nCtC.cjs +0 -20
- package/components/marker-map-positioning.config-DW9tMO2M.js +0 -48
- package/components/nl-BaZM3WoR.js +0 -565
- package/components/nl-BoEhzeIh.cjs +0 -20
- package/components/ohlc-chart-positioning.config-9DETh4xy.cjs +0 -20
- package/components/ohlc-chart-positioning.config-CkX8gyS2.js +0 -78
- package/components/parallel-coordinates-plot-positioning.config-CLDZdGdh.cjs +0 -20
- package/components/parallel-coordinates-plot-positioning.config-DTJZLEeT.js +0 -48
- package/components/pivot-table-positioning.config-B-SALuVb.cjs +0 -20
- package/components/pivot-table-positioning.config-CtSYHD-n.js +0 -55
- package/components/pyramid-chart-positioning.config-0Juiava5.js +0 -55
- package/components/pyramid-chart-positioning.config-BllFtneP.cjs +0 -20
- package/components/radar-chart-positioning.config-BPbb63S6.js +0 -55
- package/components/radar-chart-positioning.config-BY4RKNDi.cjs +0 -20
- package/components/route-map-options.config-C65J81_7.js +0 -328
- package/components/route-map-options.config-DS9cCAQK.cjs +0 -20
- package/components/route-map-positioning.config-D6nZFd8f.js +0 -66
- package/components/route-map-positioning.config-GQ9AJfej.cjs +0 -20
- package/components/sankey-diagram-positioning.config-DAuj5A08.cjs +0 -20
- package/components/sankey-diagram-positioning.config-R1EjoR5F.js +0 -66
- package/components/scatter-plot-positioning.config-DGoMnNZy.js +0 -77
- package/components/scatter-plot-positioning.config-o4c-wuRo.cjs +0 -20
- package/components/set-locale-Xh_1AFbC.cjs +0 -20
- package/components/set-locale-ydAPif-7.js +0 -43
- package/components/slicer-filter-positioning.config-BqpIENEm.cjs +0 -20
- package/components/slicer-filter-positioning.config-D_didkcw.js +0 -48
- package/components/slot-menu-CUdbaW3K.js +0 -428
- package/components/slot-menu-DRx1Ffla.cjs +0 -71
- package/components/slot-menu-list-DVSxamVa.js +0 -347
- package/components/slot-menu-list-DaHzz_ve.cjs +0 -44
- package/components/speedometer-chart-positioning.config-CmxsV4-x.js +0 -48
- package/components/speedometer-chart-positioning.config-eVUWDhkL.cjs +0 -20
- package/components/spike-map-options.config-BRwdTyrp.cjs +0 -20
- package/components/spike-map-options.config-DjoTrAsC.js +0 -415
- package/components/spike-map-positioning.config-B38djRlf.cjs +0 -20
- package/components/spike-map-positioning.config-Bta7ar9e.js +0 -55
- package/components/strip-plot-positioning.config-0vlAfmDB.js +0 -48
- package/components/strip-plot-positioning.config-atH68L8u.cjs +0 -20
- package/components/sunburst-chart-positioning.config-B2x6afBV.js +0 -48
- package/components/sunburst-chart-positioning.config-NFzFNuXB.cjs +0 -20
- package/components/symbol-map-positioning.config-B6v9PFTk.js +0 -55
- package/components/symbol-map-positioning.config-DGpmp_N1.cjs +0 -20
- package/components/treemap-chart-positioning.config-Bf2VNVRQ.js +0 -55
- package/components/treemap-chart-positioning.config-NMULB8UM.cjs +0 -20
- package/components/utils-SzKvwZ9-.cjs +0 -20
- package/components/utils-_8LPCz9-.js +0 -240
- package/components/venn-diagram-positioning.config-D4cODPGV.cjs +0 -20
- package/components/venn-diagram-positioning.config-DgOl0Vh-.js +0 -55
- package/components/viz-item-menu/index.cjs +0 -20
- package/components/viz-item-menu/index.d.ts +0 -8
- package/components/viz-item-menu/index.js +0 -28
- package/components/viz-item-menu/types.d.ts +0 -9
- package/components/viz-item-menu/viz-item-menu.d.ts +0 -78
- package/components/viz-item-menu-CNHv6qDa.cjs +0 -55
- package/components/viz-item-menu-L_j0L08h.js +0 -170
- package/components/wordcloud-chart-positioning.config-BP6iqy-N.js +0 -55
- package/components/wordcloud-chart-positioning.config-DZEkWvb0.cjs +0 -20
- package/deprecated-react/components/viz-item-menu.component.cjs +0 -1
- package/react/components/viz-item-menu.component.ts +0 -33
- package/react/esm/components/viz-item-menu.component.d.ts +0 -16
- package/react/esm/components/viz-item-menu.component.js +0 -21
- /package/{storybook/inject-global-vars.d.ts → utils/data-broker/tests/data-broker.test.d.ts} +0 -0
|
@@ -0,0 +1,1695 @@
|
|
|
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
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/checkPrivateRedeclaration.js
|
|
39
|
+
function r(e, t) {
|
|
40
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
44
|
+
function i(e, t, n) {
|
|
45
|
+
r(e, t), t.set(e, n);
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/assertClassBrand.js
|
|
49
|
+
function a(e, t, n) {
|
|
50
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
51
|
+
throw TypeError("Private element is not present on this object");
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldSet2.js
|
|
55
|
+
function o(e, t, n) {
|
|
56
|
+
return e.set(a(e, t), n), n;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldGet2.js
|
|
60
|
+
function s(e, t) {
|
|
61
|
+
return e.get(a(e, t));
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
65
|
+
var c, l, u, d = new (c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), class extends n {
|
|
66
|
+
constructor() {
|
|
67
|
+
super(), i(this, c, void 0), i(this, l, void 0), i(this, u, void 0), o(u, this, (e) => {
|
|
68
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
69
|
+
let t = () => e();
|
|
70
|
+
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
71
|
+
window.removeEventListener("visibilitychange", t);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
onSubscribe() {
|
|
77
|
+
s(l, this) || this.setEventListener(s(u, this));
|
|
78
|
+
}
|
|
79
|
+
onUnsubscribe() {
|
|
80
|
+
this.hasListeners() || (s(l, this)?.call(this), o(l, this, void 0));
|
|
81
|
+
}
|
|
82
|
+
setEventListener(e) {
|
|
83
|
+
o(u, this, e), s(l, this)?.call(this), o(l, this, e((e) => {
|
|
84
|
+
typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
setFocused(e) {
|
|
88
|
+
s(c, this) !== e && (o(c, this, e), this.onFocus());
|
|
89
|
+
}
|
|
90
|
+
onFocus() {
|
|
91
|
+
let e = this.isFocused();
|
|
92
|
+
this.listeners.forEach((t) => {
|
|
93
|
+
t(e);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
isFocused() {
|
|
97
|
+
return typeof s(c, this) == "boolean" ? s(c, this) : globalThis.document?.visibilityState !== "hidden";
|
|
98
|
+
}
|
|
99
|
+
})(), f, p, ee = {
|
|
100
|
+
setTimeout: (e, t) => setTimeout(e, t),
|
|
101
|
+
clearTimeout: (e) => clearTimeout(e),
|
|
102
|
+
setInterval: (e, t) => setInterval(e, t),
|
|
103
|
+
clearInterval: (e) => clearInterval(e)
|
|
104
|
+
}, m = new (f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), class {
|
|
105
|
+
constructor() {
|
|
106
|
+
i(this, f, ee), i(this, p, !1);
|
|
107
|
+
}
|
|
108
|
+
setTimeoutProvider(e) {
|
|
109
|
+
o(f, this, e);
|
|
110
|
+
}
|
|
111
|
+
setTimeout(e, t) {
|
|
112
|
+
return s(f, this).setTimeout(e, t);
|
|
113
|
+
}
|
|
114
|
+
clearTimeout(e) {
|
|
115
|
+
s(f, this).clearTimeout(e);
|
|
116
|
+
}
|
|
117
|
+
setInterval(e, t) {
|
|
118
|
+
return s(f, this).setInterval(e, t);
|
|
119
|
+
}
|
|
120
|
+
clearInterval(e) {
|
|
121
|
+
s(f, this).clearInterval(e);
|
|
122
|
+
}
|
|
123
|
+
})();
|
|
124
|
+
function te(e) {
|
|
125
|
+
setTimeout(e, 0);
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
129
|
+
var ne = typeof window > "u" || "Deno" in globalThis;
|
|
130
|
+
function h() {}
|
|
131
|
+
function re(e, t) {
|
|
132
|
+
return typeof e == "function" ? e(t) : e;
|
|
133
|
+
}
|
|
134
|
+
function ie(e) {
|
|
135
|
+
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
136
|
+
}
|
|
137
|
+
function ae(e, t) {
|
|
138
|
+
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
139
|
+
}
|
|
140
|
+
function oe(e, t) {
|
|
141
|
+
return typeof e == "function" ? e(t) : e;
|
|
142
|
+
}
|
|
143
|
+
function se(e, t) {
|
|
144
|
+
return typeof e == "function" ? e(t) : e;
|
|
145
|
+
}
|
|
146
|
+
function ce(e, t) {
|
|
147
|
+
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
148
|
+
if (o) {
|
|
149
|
+
if (r) {
|
|
150
|
+
if (t.queryHash !== ue(o, t.options)) return !1;
|
|
151
|
+
} else if (!_(t.queryKey, o)) return !1;
|
|
152
|
+
}
|
|
153
|
+
if (n !== "all") {
|
|
154
|
+
let e = t.isActive();
|
|
155
|
+
if (n === "active" && !e || n === "inactive" && e) return !1;
|
|
156
|
+
}
|
|
157
|
+
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
158
|
+
}
|
|
159
|
+
function le(e, t) {
|
|
160
|
+
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
161
|
+
if (a) {
|
|
162
|
+
if (!t.options.mutationKey) return !1;
|
|
163
|
+
if (n) {
|
|
164
|
+
if (g(t.options.mutationKey) !== g(a)) return !1;
|
|
165
|
+
} else if (!_(t.options.mutationKey, a)) return !1;
|
|
166
|
+
}
|
|
167
|
+
return !(r && t.state.status !== r || i && !i(t));
|
|
168
|
+
}
|
|
169
|
+
function ue(e, t) {
|
|
170
|
+
return (t?.queryKeyHashFn || g)(e);
|
|
171
|
+
}
|
|
172
|
+
function g(e) {
|
|
173
|
+
return JSON.stringify(e, (e, t) => me(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
174
|
+
}
|
|
175
|
+
function _(e, t) {
|
|
176
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => _(e[n], t[n])) : !1;
|
|
177
|
+
}
|
|
178
|
+
var de = Object.prototype.hasOwnProperty;
|
|
179
|
+
function fe(e, t, n = 0) {
|
|
180
|
+
if (e === t) return e;
|
|
181
|
+
if (n > 500) return t;
|
|
182
|
+
let r = pe(e) && pe(t);
|
|
183
|
+
if (!r && !(me(e) && me(t))) return t;
|
|
184
|
+
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
185
|
+
for (let l = 0; l < o; l++) {
|
|
186
|
+
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
187
|
+
if (u === d) {
|
|
188
|
+
s[o] = u, (r ? l < i : de.call(e, o)) && c++;
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
192
|
+
s[o] = d;
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
let f = fe(u, d, n + 1);
|
|
196
|
+
s[o] = f, f === u && c++;
|
|
197
|
+
}
|
|
198
|
+
return i === o && c === i ? e : s;
|
|
199
|
+
}
|
|
200
|
+
function pe(e) {
|
|
201
|
+
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
202
|
+
}
|
|
203
|
+
function me(e) {
|
|
204
|
+
if (!he(e)) return !1;
|
|
205
|
+
let t = e.constructor;
|
|
206
|
+
if (t === void 0) return !0;
|
|
207
|
+
let n = t.prototype;
|
|
208
|
+
return !(!he(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
209
|
+
}
|
|
210
|
+
function he(e) {
|
|
211
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
212
|
+
}
|
|
213
|
+
function ge(e) {
|
|
214
|
+
return new Promise((t) => {
|
|
215
|
+
m.setTimeout(t, e);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
function _e(e, t, n) {
|
|
219
|
+
return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : fe(e, t);
|
|
220
|
+
}
|
|
221
|
+
function ve(e, t, n = 0) {
|
|
222
|
+
let r = [...e, t];
|
|
223
|
+
return n && r.length > n ? r.slice(1) : r;
|
|
224
|
+
}
|
|
225
|
+
function ye(e, t, n = 0) {
|
|
226
|
+
let r = [t, ...e];
|
|
227
|
+
return n && r.length > n ? r.slice(0, -1) : r;
|
|
228
|
+
}
|
|
229
|
+
var v = /* @__PURE__ */ Symbol();
|
|
230
|
+
function be(e, t) {
|
|
231
|
+
return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === v ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
232
|
+
}
|
|
233
|
+
function xe(e, t, n) {
|
|
234
|
+
let r = !1, i;
|
|
235
|
+
return Object.defineProperty(e, "signal", {
|
|
236
|
+
enumerable: !0,
|
|
237
|
+
get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
|
|
238
|
+
}), e;
|
|
239
|
+
}
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
242
|
+
var Se = /* @__PURE__ */ (() => {
|
|
243
|
+
let e = () => ne;
|
|
244
|
+
return {
|
|
245
|
+
isServer() {
|
|
246
|
+
return e();
|
|
247
|
+
},
|
|
248
|
+
setIsServer(t) {
|
|
249
|
+
e = t;
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
})();
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
255
|
+
function Ce() {
|
|
256
|
+
let e, t, n = new Promise((n, r) => {
|
|
257
|
+
e = n, t = r;
|
|
258
|
+
});
|
|
259
|
+
n.status = "pending", n.catch(() => {});
|
|
260
|
+
function r(e) {
|
|
261
|
+
Object.assign(n, e), delete n.resolve, delete n.reject;
|
|
262
|
+
}
|
|
263
|
+
return n.resolve = (t) => {
|
|
264
|
+
r({
|
|
265
|
+
status: "fulfilled",
|
|
266
|
+
value: t
|
|
267
|
+
}), e(t);
|
|
268
|
+
}, n.reject = (e) => {
|
|
269
|
+
r({
|
|
270
|
+
status: "rejected",
|
|
271
|
+
reason: e
|
|
272
|
+
}), t(e);
|
|
273
|
+
}, n;
|
|
274
|
+
}
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
277
|
+
var we = te;
|
|
278
|
+
function Te() {
|
|
279
|
+
let e = [], t = 0, n = (e) => {
|
|
280
|
+
e();
|
|
281
|
+
}, r = (e) => {
|
|
282
|
+
e();
|
|
283
|
+
}, i = we, a = (r) => {
|
|
284
|
+
t ? e.push(r) : i(() => {
|
|
285
|
+
n(r);
|
|
286
|
+
});
|
|
287
|
+
}, o = () => {
|
|
288
|
+
let t = e;
|
|
289
|
+
e = [], t.length && i(() => {
|
|
290
|
+
r(() => {
|
|
291
|
+
t.forEach((e) => {
|
|
292
|
+
n(e);
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
return {
|
|
298
|
+
batch: (e) => {
|
|
299
|
+
let n;
|
|
300
|
+
t++;
|
|
301
|
+
try {
|
|
302
|
+
n = e();
|
|
303
|
+
} finally {
|
|
304
|
+
t--, t || o();
|
|
305
|
+
}
|
|
306
|
+
return n;
|
|
307
|
+
},
|
|
308
|
+
batchCalls: (e) => (...t) => {
|
|
309
|
+
a(() => {
|
|
310
|
+
e(...t);
|
|
311
|
+
});
|
|
312
|
+
},
|
|
313
|
+
schedule: a,
|
|
314
|
+
setNotifyFunction: (e) => {
|
|
315
|
+
n = e;
|
|
316
|
+
},
|
|
317
|
+
setBatchNotifyFunction: (e) => {
|
|
318
|
+
r = e;
|
|
319
|
+
},
|
|
320
|
+
setScheduler: (e) => {
|
|
321
|
+
i = e;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
var y = Te(), b, x, S, C = new (b = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), class extends n {
|
|
326
|
+
constructor() {
|
|
327
|
+
super(), i(this, b, !0), i(this, x, void 0), i(this, S, void 0), o(S, this, (e) => {
|
|
328
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
329
|
+
let t = () => e(!0), n = () => e(!1);
|
|
330
|
+
return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
|
|
331
|
+
window.removeEventListener("online", t), window.removeEventListener("offline", n);
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
onSubscribe() {
|
|
337
|
+
s(x, this) || this.setEventListener(s(S, this));
|
|
338
|
+
}
|
|
339
|
+
onUnsubscribe() {
|
|
340
|
+
this.hasListeners() || (s(x, this)?.call(this), o(x, this, void 0));
|
|
341
|
+
}
|
|
342
|
+
setEventListener(e) {
|
|
343
|
+
o(S, this, e), s(x, this)?.call(this), o(x, this, e(this.setOnline.bind(this)));
|
|
344
|
+
}
|
|
345
|
+
setOnline(e) {
|
|
346
|
+
s(b, this) !== e && (o(b, this, e), this.listeners.forEach((t) => {
|
|
347
|
+
t(e);
|
|
348
|
+
}));
|
|
349
|
+
}
|
|
350
|
+
isOnline() {
|
|
351
|
+
return s(b, this);
|
|
352
|
+
}
|
|
353
|
+
})();
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
356
|
+
function Ee(e) {
|
|
357
|
+
return Math.min(1e3 * 2 ** e, 3e4);
|
|
358
|
+
}
|
|
359
|
+
function De(e) {
|
|
360
|
+
return (e ?? "online") !== "online" || C.isOnline();
|
|
361
|
+
}
|
|
362
|
+
var Oe = class extends Error {
|
|
363
|
+
constructor(e) {
|
|
364
|
+
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
function ke(e) {
|
|
368
|
+
let t = !1, n = 0, r, i = Ce(), a = () => i.status !== "pending", o = (t) => {
|
|
369
|
+
if (!a()) {
|
|
370
|
+
let n = new Oe(t);
|
|
371
|
+
p(n), e.onCancel?.(n);
|
|
372
|
+
}
|
|
373
|
+
}, s = () => {
|
|
374
|
+
t = !0;
|
|
375
|
+
}, c = () => {
|
|
376
|
+
t = !1;
|
|
377
|
+
}, l = () => d.isFocused() && (e.networkMode === "always" || C.isOnline()) && e.canRun(), u = () => De(e.networkMode) && e.canRun(), f = (e) => {
|
|
378
|
+
a() || (r?.(), i.resolve(e));
|
|
379
|
+
}, p = (e) => {
|
|
380
|
+
a() || (r?.(), i.reject(e));
|
|
381
|
+
}, ee = () => new Promise((t) => {
|
|
382
|
+
r = (e) => {
|
|
383
|
+
(a() || l()) && t(e);
|
|
384
|
+
}, e.onPause?.();
|
|
385
|
+
}).then(() => {
|
|
386
|
+
r = void 0, a() || e.onContinue?.();
|
|
387
|
+
}), m = () => {
|
|
388
|
+
if (a()) return;
|
|
389
|
+
let r, i = n === 0 ? e.initialPromise : void 0;
|
|
390
|
+
try {
|
|
391
|
+
r = i ?? e.fn();
|
|
392
|
+
} catch (e) {
|
|
393
|
+
r = Promise.reject(e);
|
|
394
|
+
}
|
|
395
|
+
Promise.resolve(r).then(f).catch((r) => {
|
|
396
|
+
if (a()) return;
|
|
397
|
+
let i = e.retry ?? (Se.isServer() ? 0 : 3), o = e.retryDelay ?? Ee, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
398
|
+
if (t || !c) {
|
|
399
|
+
p(r);
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
n++, e.onFail?.(n, r), ge(s).then(() => l() ? void 0 : ee()).then(() => {
|
|
403
|
+
t ? p(r) : m();
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
};
|
|
407
|
+
return {
|
|
408
|
+
promise: i,
|
|
409
|
+
status: () => i.status,
|
|
410
|
+
cancel: o,
|
|
411
|
+
continue: () => (r?.(), i),
|
|
412
|
+
cancelRetry: s,
|
|
413
|
+
continueRetry: c,
|
|
414
|
+
canStart: u,
|
|
415
|
+
start: () => (u() ? m() : ee().then(m), i)
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
420
|
+
var w, Ae = (w = /* @__PURE__ */ new WeakMap(), class {
|
|
421
|
+
constructor() {
|
|
422
|
+
i(this, w, void 0);
|
|
423
|
+
}
|
|
424
|
+
destroy() {
|
|
425
|
+
this.clearGcTimeout();
|
|
426
|
+
}
|
|
427
|
+
scheduleGc() {
|
|
428
|
+
this.clearGcTimeout(), ie(this.gcTime) && o(w, this, m.setTimeout(() => {
|
|
429
|
+
this.optionalRemove();
|
|
430
|
+
}, this.gcTime));
|
|
431
|
+
}
|
|
432
|
+
updateGcTime(e) {
|
|
433
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (Se.isServer() ? Infinity : 300 * 1e3));
|
|
434
|
+
}
|
|
435
|
+
clearGcTimeout() {
|
|
436
|
+
s(w, this) !== void 0 && (m.clearTimeout(s(w, this)), o(w, this, void 0));
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
//#endregion
|
|
440
|
+
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
441
|
+
function je(e) {
|
|
442
|
+
return { onFetch: (t, n) => {
|
|
443
|
+
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
444
|
+
pages: [],
|
|
445
|
+
pageParams: []
|
|
446
|
+
}, c = 0, l = async () => {
|
|
447
|
+
let n = !1, l = (e) => {
|
|
448
|
+
xe(e, () => t.signal, () => n = !0);
|
|
449
|
+
}, u = be(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
450
|
+
if (n) return Promise.reject(t.signal.reason);
|
|
451
|
+
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
452
|
+
let a = (() => {
|
|
453
|
+
let e = {
|
|
454
|
+
client: t.client,
|
|
455
|
+
queryKey: t.queryKey,
|
|
456
|
+
pageParam: r,
|
|
457
|
+
direction: i ? "backward" : "forward",
|
|
458
|
+
meta: t.options.meta
|
|
459
|
+
};
|
|
460
|
+
return l(e), e;
|
|
461
|
+
})(), o = await u(a), { maxPages: s } = t.options, c = i ? ye : ve;
|
|
462
|
+
return {
|
|
463
|
+
pages: c(e.pages, o, s),
|
|
464
|
+
pageParams: c(e.pageParams, r, s)
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
if (i && a.length) {
|
|
468
|
+
let e = i === "backward", t = e ? Ne : Me, n = {
|
|
469
|
+
pages: a,
|
|
470
|
+
pageParams: o
|
|
471
|
+
};
|
|
472
|
+
s = await d(n, t(r, n), e);
|
|
473
|
+
} else {
|
|
474
|
+
let t = e ?? a.length;
|
|
475
|
+
do {
|
|
476
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Me(r, s);
|
|
477
|
+
if (c > 0 && e == null) break;
|
|
478
|
+
s = await d(s, e), c++;
|
|
479
|
+
} while (c < t);
|
|
480
|
+
}
|
|
481
|
+
return s;
|
|
482
|
+
};
|
|
483
|
+
t.options.persister ? t.fetchFn = () => t.options.persister?.(l, {
|
|
484
|
+
client: t.client,
|
|
485
|
+
queryKey: t.queryKey,
|
|
486
|
+
meta: t.options.meta,
|
|
487
|
+
signal: t.signal
|
|
488
|
+
}, n) : t.fetchFn = l;
|
|
489
|
+
} };
|
|
490
|
+
}
|
|
491
|
+
function Me(e, { pages: t, pageParams: n }) {
|
|
492
|
+
let r = t.length - 1;
|
|
493
|
+
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
494
|
+
}
|
|
495
|
+
function Ne(e, { pages: t, pageParams: n }) {
|
|
496
|
+
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
497
|
+
}
|
|
498
|
+
//#endregion
|
|
499
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateMethodInitSpec.js
|
|
500
|
+
function Pe(e, t) {
|
|
501
|
+
r(e, t), t.add(e);
|
|
502
|
+
}
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
505
|
+
var T, E, D, O, k, A, j, M, N, Fe = (T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), class extends Ae {
|
|
506
|
+
constructor(e) {
|
|
507
|
+
super(), Pe(this, N), i(this, T, void 0), i(this, E, void 0), i(this, D, void 0), i(this, O, void 0), i(this, k, void 0), i(this, A, void 0), i(this, j, void 0), i(this, M, void 0), o(M, this, !1), o(j, this, e.defaultOptions), this.setOptions(e.options), this.observers = [], o(k, this, e.client), o(O, this, s(k, this).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, o(E, this, ze(this.options)), this.state = e.state ?? s(E, this), this.scheduleGc();
|
|
508
|
+
}
|
|
509
|
+
get meta() {
|
|
510
|
+
return this.options.meta;
|
|
511
|
+
}
|
|
512
|
+
get queryType() {
|
|
513
|
+
return s(T, this);
|
|
514
|
+
}
|
|
515
|
+
get promise() {
|
|
516
|
+
return s(A, this)?.promise;
|
|
517
|
+
}
|
|
518
|
+
setOptions(e) {
|
|
519
|
+
if (this.options = {
|
|
520
|
+
...s(j, this),
|
|
521
|
+
...e
|
|
522
|
+
}, e?._type && o(T, this, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
523
|
+
let e = ze(this.options);
|
|
524
|
+
e.data !== void 0 && (this.setState(Re(e.data, e.dataUpdatedAt)), o(E, this, e));
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
optionalRemove() {
|
|
528
|
+
!this.observers.length && this.state.fetchStatus === "idle" && s(O, this).remove(this);
|
|
529
|
+
}
|
|
530
|
+
setData(e, t) {
|
|
531
|
+
let n = _e(this.state.data, e, this.options);
|
|
532
|
+
return a(N, this, P).call(this, {
|
|
533
|
+
data: n,
|
|
534
|
+
type: "success",
|
|
535
|
+
dataUpdatedAt: t?.updatedAt,
|
|
536
|
+
manual: t?.manual
|
|
537
|
+
}), n;
|
|
538
|
+
}
|
|
539
|
+
setState(e) {
|
|
540
|
+
a(N, this, P).call(this, {
|
|
541
|
+
type: "setState",
|
|
542
|
+
state: e
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
cancel(e) {
|
|
546
|
+
let t = s(A, this)?.promise;
|
|
547
|
+
return s(A, this)?.cancel(e), t ? t.then(h).catch(h) : Promise.resolve();
|
|
548
|
+
}
|
|
549
|
+
destroy() {
|
|
550
|
+
super.destroy(), this.cancel({ silent: !0 });
|
|
551
|
+
}
|
|
552
|
+
get resetState() {
|
|
553
|
+
return s(E, this);
|
|
554
|
+
}
|
|
555
|
+
reset() {
|
|
556
|
+
this.destroy(), this.setState(this.resetState);
|
|
557
|
+
}
|
|
558
|
+
isActive() {
|
|
559
|
+
return this.observers.some((e) => se(e.options.enabled, this) !== !1);
|
|
560
|
+
}
|
|
561
|
+
isDisabled() {
|
|
562
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === v || !this.isFetched();
|
|
563
|
+
}
|
|
564
|
+
isFetched() {
|
|
565
|
+
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
566
|
+
}
|
|
567
|
+
isStatic() {
|
|
568
|
+
return this.getObserversCount() > 0 && this.observers.some((e) => oe(e.options.staleTime, this) === "static");
|
|
569
|
+
}
|
|
570
|
+
isStale() {
|
|
571
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
572
|
+
}
|
|
573
|
+
isStaleByTime(e = 0) {
|
|
574
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !ae(this.state.dataUpdatedAt, e);
|
|
575
|
+
}
|
|
576
|
+
onFocus() {
|
|
577
|
+
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), s(A, this)?.continue();
|
|
578
|
+
}
|
|
579
|
+
onOnline() {
|
|
580
|
+
this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), s(A, this)?.continue();
|
|
581
|
+
}
|
|
582
|
+
addObserver(e) {
|
|
583
|
+
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), s(O, this).notify({
|
|
584
|
+
type: "observerAdded",
|
|
585
|
+
query: this,
|
|
586
|
+
observer: e
|
|
587
|
+
}));
|
|
588
|
+
}
|
|
589
|
+
removeObserver(e) {
|
|
590
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (s(A, this) && (s(M, this) || a(N, this, Ie).call(this) ? s(A, this).cancel({ revert: !0 }) : s(A, this).cancelRetry()), this.scheduleGc()), s(O, this).notify({
|
|
591
|
+
type: "observerRemoved",
|
|
592
|
+
query: this,
|
|
593
|
+
observer: e
|
|
594
|
+
}));
|
|
595
|
+
}
|
|
596
|
+
getObserversCount() {
|
|
597
|
+
return this.observers.length;
|
|
598
|
+
}
|
|
599
|
+
invalidate() {
|
|
600
|
+
this.state.isInvalidated || a(N, this, P).call(this, { type: "invalidate" });
|
|
601
|
+
}
|
|
602
|
+
async fetch(e, t) {
|
|
603
|
+
if (this.state.fetchStatus !== "idle" && s(A, this)?.status() !== "rejected") {
|
|
604
|
+
if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
|
|
605
|
+
else if (s(A, this)) return s(A, this).continueRetry(), s(A, this).promise;
|
|
606
|
+
}
|
|
607
|
+
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
608
|
+
let e = this.observers.find((e) => e.options.queryFn);
|
|
609
|
+
e && this.setOptions(e.options);
|
|
610
|
+
}
|
|
611
|
+
let n = new AbortController(), r = (e) => {
|
|
612
|
+
Object.defineProperty(e, "signal", {
|
|
613
|
+
enumerable: !0,
|
|
614
|
+
get: () => (o(M, this, !0), n.signal)
|
|
615
|
+
});
|
|
616
|
+
}, i = () => {
|
|
617
|
+
let e = be(this.options, t), n = (() => {
|
|
618
|
+
let e = {
|
|
619
|
+
client: s(k, this),
|
|
620
|
+
queryKey: this.queryKey,
|
|
621
|
+
meta: this.meta
|
|
622
|
+
};
|
|
623
|
+
return r(e), e;
|
|
624
|
+
})();
|
|
625
|
+
return o(M, this, !1), this.options.persister ? this.options.persister(e, n, this) : e(n);
|
|
626
|
+
}, c = (() => {
|
|
627
|
+
let e = {
|
|
628
|
+
fetchOptions: t,
|
|
629
|
+
options: this.options,
|
|
630
|
+
queryKey: this.queryKey,
|
|
631
|
+
client: s(k, this),
|
|
632
|
+
state: this.state,
|
|
633
|
+
fetchFn: i
|
|
634
|
+
};
|
|
635
|
+
return r(e), e;
|
|
636
|
+
})();
|
|
637
|
+
(s(T, this) === "infinite" ? je(this.options.pages) : this.options.behavior)?.onFetch(c, this), o(D, this, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== c.fetchOptions?.meta) && a(N, this, P).call(this, {
|
|
638
|
+
type: "fetch",
|
|
639
|
+
meta: c.fetchOptions?.meta
|
|
640
|
+
}), o(A, this, ke({
|
|
641
|
+
initialPromise: t?.initialPromise,
|
|
642
|
+
fn: c.fetchFn,
|
|
643
|
+
onCancel: (e) => {
|
|
644
|
+
e instanceof Oe && e.revert && this.setState({
|
|
645
|
+
...s(D, this),
|
|
646
|
+
fetchStatus: "idle"
|
|
647
|
+
}), n.abort();
|
|
648
|
+
},
|
|
649
|
+
onFail: (e, t) => {
|
|
650
|
+
a(N, this, P).call(this, {
|
|
651
|
+
type: "failed",
|
|
652
|
+
failureCount: e,
|
|
653
|
+
error: t
|
|
654
|
+
});
|
|
655
|
+
},
|
|
656
|
+
onPause: () => {
|
|
657
|
+
a(N, this, P).call(this, { type: "pause" });
|
|
658
|
+
},
|
|
659
|
+
onContinue: () => {
|
|
660
|
+
a(N, this, P).call(this, { type: "continue" });
|
|
661
|
+
},
|
|
662
|
+
retry: c.options.retry,
|
|
663
|
+
retryDelay: c.options.retryDelay,
|
|
664
|
+
networkMode: c.options.networkMode,
|
|
665
|
+
canRun: () => !0
|
|
666
|
+
}));
|
|
667
|
+
try {
|
|
668
|
+
let e = await s(A, this).start();
|
|
669
|
+
if (e === void 0) throw Error(`${this.queryHash} data is undefined`);
|
|
670
|
+
return this.setData(e), s(O, this).config.onSuccess?.(e, this), s(O, this).config.onSettled?.(e, this.state.error, this), e;
|
|
671
|
+
} catch (e) {
|
|
672
|
+
if (e instanceof Oe) {
|
|
673
|
+
if (e.silent) return s(A, this).promise;
|
|
674
|
+
if (e.revert) {
|
|
675
|
+
if (this.state.data === void 0) throw e;
|
|
676
|
+
return this.state.data;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
throw a(N, this, P).call(this, {
|
|
680
|
+
type: "error",
|
|
681
|
+
error: e
|
|
682
|
+
}), s(O, this).config.onError?.(e, this), s(O, this).config.onSettled?.(this.state.data, e, this), e;
|
|
683
|
+
} finally {
|
|
684
|
+
this.scheduleGc();
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
function Ie() {
|
|
689
|
+
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
690
|
+
}
|
|
691
|
+
function P(e) {
|
|
692
|
+
let t = (t) => {
|
|
693
|
+
switch (e.type) {
|
|
694
|
+
case "failed": return {
|
|
695
|
+
...t,
|
|
696
|
+
fetchFailureCount: e.failureCount,
|
|
697
|
+
fetchFailureReason: e.error
|
|
698
|
+
};
|
|
699
|
+
case "pause": return {
|
|
700
|
+
...t,
|
|
701
|
+
fetchStatus: "paused"
|
|
702
|
+
};
|
|
703
|
+
case "continue": return {
|
|
704
|
+
...t,
|
|
705
|
+
fetchStatus: "fetching"
|
|
706
|
+
};
|
|
707
|
+
case "fetch": return {
|
|
708
|
+
...t,
|
|
709
|
+
...Le(t.data, this.options),
|
|
710
|
+
fetchMeta: e.meta ?? null
|
|
711
|
+
};
|
|
712
|
+
case "success":
|
|
713
|
+
let n = {
|
|
714
|
+
...t,
|
|
715
|
+
...Re(e.data, e.dataUpdatedAt),
|
|
716
|
+
dataUpdateCount: t.dataUpdateCount + 1,
|
|
717
|
+
...!e.manual && {
|
|
718
|
+
fetchStatus: "idle",
|
|
719
|
+
fetchFailureCount: 0,
|
|
720
|
+
fetchFailureReason: null
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
return o(D, this, e.manual ? n : void 0), n;
|
|
724
|
+
case "error":
|
|
725
|
+
let r = e.error;
|
|
726
|
+
return {
|
|
727
|
+
...t,
|
|
728
|
+
error: r,
|
|
729
|
+
errorUpdateCount: t.errorUpdateCount + 1,
|
|
730
|
+
errorUpdatedAt: Date.now(),
|
|
731
|
+
fetchFailureCount: t.fetchFailureCount + 1,
|
|
732
|
+
fetchFailureReason: r,
|
|
733
|
+
fetchStatus: "idle",
|
|
734
|
+
status: "error",
|
|
735
|
+
isInvalidated: !0
|
|
736
|
+
};
|
|
737
|
+
case "invalidate": return {
|
|
738
|
+
...t,
|
|
739
|
+
isInvalidated: !0
|
|
740
|
+
};
|
|
741
|
+
case "setState": return {
|
|
742
|
+
...t,
|
|
743
|
+
...e.state
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
this.state = t(this.state), y.batch(() => {
|
|
748
|
+
this.observers.forEach((e) => {
|
|
749
|
+
e.onQueryUpdate();
|
|
750
|
+
}), s(O, this).notify({
|
|
751
|
+
query: this,
|
|
752
|
+
type: "updated",
|
|
753
|
+
action: e
|
|
754
|
+
});
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
function Le(e, t) {
|
|
758
|
+
return {
|
|
759
|
+
fetchFailureCount: 0,
|
|
760
|
+
fetchFailureReason: null,
|
|
761
|
+
fetchStatus: De(t.networkMode) ? "fetching" : "paused",
|
|
762
|
+
...e === void 0 && {
|
|
763
|
+
error: null,
|
|
764
|
+
status: "pending"
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
function Re(e, t) {
|
|
769
|
+
return {
|
|
770
|
+
data: e,
|
|
771
|
+
dataUpdatedAt: t ?? Date.now(),
|
|
772
|
+
error: null,
|
|
773
|
+
isInvalidated: !1,
|
|
774
|
+
status: "success"
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
function ze(e) {
|
|
778
|
+
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;
|
|
779
|
+
return {
|
|
780
|
+
data: t,
|
|
781
|
+
dataUpdateCount: 0,
|
|
782
|
+
dataUpdatedAt: n ? r ?? Date.now() : 0,
|
|
783
|
+
error: null,
|
|
784
|
+
errorUpdateCount: 0,
|
|
785
|
+
errorUpdatedAt: 0,
|
|
786
|
+
fetchFailureCount: 0,
|
|
787
|
+
fetchFailureReason: null,
|
|
788
|
+
fetchMeta: null,
|
|
789
|
+
isInvalidated: !1,
|
|
790
|
+
status: n ? "success" : "pending",
|
|
791
|
+
fetchStatus: "idle"
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
//#endregion
|
|
795
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
796
|
+
var F, I, L, R, z, Be = (F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), class extends Ae {
|
|
797
|
+
constructor(e) {
|
|
798
|
+
super(), Pe(this, z), i(this, F, void 0), i(this, I, void 0), i(this, L, void 0), i(this, R, void 0), o(F, this, e.client), this.mutationId = e.mutationId, o(L, this, e.mutationCache), o(I, this, []), this.state = e.state || Ve(), this.setOptions(e.options), this.scheduleGc();
|
|
799
|
+
}
|
|
800
|
+
setOptions(e) {
|
|
801
|
+
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
802
|
+
}
|
|
803
|
+
get meta() {
|
|
804
|
+
return this.options.meta;
|
|
805
|
+
}
|
|
806
|
+
addObserver(e) {
|
|
807
|
+
s(I, this).includes(e) || (s(I, this).push(e), this.clearGcTimeout(), s(L, this).notify({
|
|
808
|
+
type: "observerAdded",
|
|
809
|
+
mutation: this,
|
|
810
|
+
observer: e
|
|
811
|
+
}));
|
|
812
|
+
}
|
|
813
|
+
removeObserver(e) {
|
|
814
|
+
o(I, this, s(I, this).filter((t) => t !== e)), this.scheduleGc(), s(L, this).notify({
|
|
815
|
+
type: "observerRemoved",
|
|
816
|
+
mutation: this,
|
|
817
|
+
observer: e
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
optionalRemove() {
|
|
821
|
+
s(I, this).length || (this.state.status === "pending" ? this.scheduleGc() : s(L, this).remove(this));
|
|
822
|
+
}
|
|
823
|
+
continue() {
|
|
824
|
+
return s(R, this)?.continue() ?? this.execute(this.state.variables);
|
|
825
|
+
}
|
|
826
|
+
async execute(e) {
|
|
827
|
+
let t = () => {
|
|
828
|
+
a(z, this, B).call(this, { type: "continue" });
|
|
829
|
+
}, n = {
|
|
830
|
+
client: s(F, this),
|
|
831
|
+
meta: this.options.meta,
|
|
832
|
+
mutationKey: this.options.mutationKey
|
|
833
|
+
};
|
|
834
|
+
o(R, this, ke({
|
|
835
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
836
|
+
onFail: (e, t) => {
|
|
837
|
+
a(z, this, B).call(this, {
|
|
838
|
+
type: "failed",
|
|
839
|
+
failureCount: e,
|
|
840
|
+
error: t
|
|
841
|
+
});
|
|
842
|
+
},
|
|
843
|
+
onPause: () => {
|
|
844
|
+
a(z, this, B).call(this, { type: "pause" });
|
|
845
|
+
},
|
|
846
|
+
onContinue: t,
|
|
847
|
+
retry: this.options.retry ?? 0,
|
|
848
|
+
retryDelay: this.options.retryDelay,
|
|
849
|
+
networkMode: this.options.networkMode,
|
|
850
|
+
canRun: () => s(L, this).canRun(this)
|
|
851
|
+
}));
|
|
852
|
+
let r = this.state.status === "pending", i = !s(R, this).canStart();
|
|
853
|
+
try {
|
|
854
|
+
if (r) t();
|
|
855
|
+
else {
|
|
856
|
+
a(z, this, B).call(this, {
|
|
857
|
+
type: "pending",
|
|
858
|
+
variables: e,
|
|
859
|
+
isPaused: i
|
|
860
|
+
}), s(L, this).config.onMutate && await s(L, this).config.onMutate(e, this, n);
|
|
861
|
+
let t = await this.options.onMutate?.(e, n);
|
|
862
|
+
t !== this.state.context && a(z, this, B).call(this, {
|
|
863
|
+
type: "pending",
|
|
864
|
+
context: t,
|
|
865
|
+
variables: e,
|
|
866
|
+
isPaused: i
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
let o = await s(R, this).start();
|
|
870
|
+
return await s(L, this).config.onSuccess?.(o, e, this.state.context, this, n), await this.options.onSuccess?.(o, e, this.state.context, n), await s(L, this).config.onSettled?.(o, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(o, null, e, this.state.context, n), a(z, this, B).call(this, {
|
|
871
|
+
type: "success",
|
|
872
|
+
data: o
|
|
873
|
+
}), o;
|
|
874
|
+
} catch (t) {
|
|
875
|
+
try {
|
|
876
|
+
await s(L, this).config.onError?.(t, e, this.state.context, this, n);
|
|
877
|
+
} catch (e) {
|
|
878
|
+
Promise.reject(e);
|
|
879
|
+
}
|
|
880
|
+
try {
|
|
881
|
+
await this.options.onError?.(t, e, this.state.context, n);
|
|
882
|
+
} catch (e) {
|
|
883
|
+
Promise.reject(e);
|
|
884
|
+
}
|
|
885
|
+
try {
|
|
886
|
+
await s(L, this).config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
|
|
887
|
+
} catch (e) {
|
|
888
|
+
Promise.reject(e);
|
|
889
|
+
}
|
|
890
|
+
try {
|
|
891
|
+
await this.options.onSettled?.(void 0, t, e, this.state.context, n);
|
|
892
|
+
} catch (e) {
|
|
893
|
+
Promise.reject(e);
|
|
894
|
+
}
|
|
895
|
+
throw a(z, this, B).call(this, {
|
|
896
|
+
type: "error",
|
|
897
|
+
error: t
|
|
898
|
+
}), t;
|
|
899
|
+
} finally {
|
|
900
|
+
s(L, this).runNext(this);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
});
|
|
904
|
+
function B(e) {
|
|
905
|
+
let t = (t) => {
|
|
906
|
+
switch (e.type) {
|
|
907
|
+
case "failed": return {
|
|
908
|
+
...t,
|
|
909
|
+
failureCount: e.failureCount,
|
|
910
|
+
failureReason: e.error
|
|
911
|
+
};
|
|
912
|
+
case "pause": return {
|
|
913
|
+
...t,
|
|
914
|
+
isPaused: !0
|
|
915
|
+
};
|
|
916
|
+
case "continue": return {
|
|
917
|
+
...t,
|
|
918
|
+
isPaused: !1
|
|
919
|
+
};
|
|
920
|
+
case "pending": return {
|
|
921
|
+
...t,
|
|
922
|
+
context: e.context,
|
|
923
|
+
data: void 0,
|
|
924
|
+
failureCount: 0,
|
|
925
|
+
failureReason: null,
|
|
926
|
+
error: null,
|
|
927
|
+
isPaused: e.isPaused,
|
|
928
|
+
status: "pending",
|
|
929
|
+
variables: e.variables,
|
|
930
|
+
submittedAt: Date.now()
|
|
931
|
+
};
|
|
932
|
+
case "success": return {
|
|
933
|
+
...t,
|
|
934
|
+
data: e.data,
|
|
935
|
+
failureCount: 0,
|
|
936
|
+
failureReason: null,
|
|
937
|
+
error: null,
|
|
938
|
+
status: "success",
|
|
939
|
+
isPaused: !1
|
|
940
|
+
};
|
|
941
|
+
case "error": return {
|
|
942
|
+
...t,
|
|
943
|
+
data: void 0,
|
|
944
|
+
error: e.error,
|
|
945
|
+
failureCount: t.failureCount + 1,
|
|
946
|
+
failureReason: e.error,
|
|
947
|
+
isPaused: !1,
|
|
948
|
+
status: "error"
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
this.state = t(this.state), y.batch(() => {
|
|
953
|
+
s(I, this).forEach((t) => {
|
|
954
|
+
t.onMutationUpdate(e);
|
|
955
|
+
}), s(L, this).notify({
|
|
956
|
+
mutation: this,
|
|
957
|
+
type: "updated",
|
|
958
|
+
action: e
|
|
959
|
+
});
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
function Ve() {
|
|
963
|
+
return {
|
|
964
|
+
context: void 0,
|
|
965
|
+
data: void 0,
|
|
966
|
+
error: null,
|
|
967
|
+
failureCount: 0,
|
|
968
|
+
failureReason: null,
|
|
969
|
+
isPaused: !1,
|
|
970
|
+
status: "idle",
|
|
971
|
+
variables: void 0,
|
|
972
|
+
submittedAt: 0
|
|
973
|
+
};
|
|
974
|
+
}
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
977
|
+
var V, H, U, He = (V = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), class extends n {
|
|
978
|
+
constructor(e = {}) {
|
|
979
|
+
super(), i(this, V, void 0), i(this, H, void 0), i(this, U, void 0), this.config = e, o(V, this, /* @__PURE__ */ new Set()), o(H, this, /* @__PURE__ */ new Map()), o(U, this, 0);
|
|
980
|
+
}
|
|
981
|
+
build(e, t, n) {
|
|
982
|
+
var r;
|
|
983
|
+
let i = new Be({
|
|
984
|
+
client: e,
|
|
985
|
+
mutationCache: this,
|
|
986
|
+
mutationId: o(U, this, (r = s(U, this), ++r)),
|
|
987
|
+
options: e.defaultMutationOptions(t),
|
|
988
|
+
state: n
|
|
989
|
+
});
|
|
990
|
+
return this.add(i), i;
|
|
991
|
+
}
|
|
992
|
+
add(e) {
|
|
993
|
+
s(V, this).add(e);
|
|
994
|
+
let t = W(e);
|
|
995
|
+
if (typeof t == "string") {
|
|
996
|
+
let n = s(H, this).get(t);
|
|
997
|
+
n ? n.push(e) : s(H, this).set(t, [e]);
|
|
998
|
+
}
|
|
999
|
+
this.notify({
|
|
1000
|
+
type: "added",
|
|
1001
|
+
mutation: e
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
remove(e) {
|
|
1005
|
+
if (s(V, this).delete(e)) {
|
|
1006
|
+
let t = W(e);
|
|
1007
|
+
if (typeof t == "string") {
|
|
1008
|
+
let n = s(H, this).get(t);
|
|
1009
|
+
if (n) if (n.length > 1) {
|
|
1010
|
+
let t = n.indexOf(e);
|
|
1011
|
+
t !== -1 && n.splice(t, 1);
|
|
1012
|
+
} else n[0] === e && s(H, this).delete(t);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
this.notify({
|
|
1016
|
+
type: "removed",
|
|
1017
|
+
mutation: e
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
canRun(e) {
|
|
1021
|
+
let t = W(e);
|
|
1022
|
+
if (typeof t == "string") {
|
|
1023
|
+
let n = s(H, this).get(t)?.find((e) => e.state.status === "pending");
|
|
1024
|
+
return !n || n === e;
|
|
1025
|
+
} else return !0;
|
|
1026
|
+
}
|
|
1027
|
+
runNext(e) {
|
|
1028
|
+
let t = W(e);
|
|
1029
|
+
return typeof t == "string" ? (s(H, this).get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1030
|
+
}
|
|
1031
|
+
clear() {
|
|
1032
|
+
y.batch(() => {
|
|
1033
|
+
s(V, this).forEach((e) => {
|
|
1034
|
+
this.notify({
|
|
1035
|
+
type: "removed",
|
|
1036
|
+
mutation: e
|
|
1037
|
+
});
|
|
1038
|
+
}), s(V, this).clear(), s(H, this).clear();
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
getAll() {
|
|
1042
|
+
return Array.from(s(V, this));
|
|
1043
|
+
}
|
|
1044
|
+
find(e) {
|
|
1045
|
+
let t = {
|
|
1046
|
+
exact: !0,
|
|
1047
|
+
...e
|
|
1048
|
+
};
|
|
1049
|
+
return this.getAll().find((e) => le(t, e));
|
|
1050
|
+
}
|
|
1051
|
+
findAll(e = {}) {
|
|
1052
|
+
return this.getAll().filter((t) => le(e, t));
|
|
1053
|
+
}
|
|
1054
|
+
notify(e) {
|
|
1055
|
+
y.batch(() => {
|
|
1056
|
+
this.listeners.forEach((t) => {
|
|
1057
|
+
t(e);
|
|
1058
|
+
});
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
resumePausedMutations() {
|
|
1062
|
+
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1063
|
+
return y.batch(() => Promise.all(e.map((e) => e.continue().catch(h))));
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
function W(e) {
|
|
1067
|
+
return e.options.scope?.id;
|
|
1068
|
+
}
|
|
1069
|
+
//#endregion
|
|
1070
|
+
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1071
|
+
var G, Ue = (G = /* @__PURE__ */ new WeakMap(), class extends n {
|
|
1072
|
+
constructor(e = {}) {
|
|
1073
|
+
super(), i(this, G, void 0), this.config = e, o(G, this, /* @__PURE__ */ new Map());
|
|
1074
|
+
}
|
|
1075
|
+
build(e, t, n) {
|
|
1076
|
+
let r = t.queryKey, i = t.queryHash ?? ue(r, t), a = this.get(i);
|
|
1077
|
+
return a || (a = new Fe({
|
|
1078
|
+
client: e,
|
|
1079
|
+
queryKey: r,
|
|
1080
|
+
queryHash: i,
|
|
1081
|
+
options: e.defaultQueryOptions(t),
|
|
1082
|
+
state: n,
|
|
1083
|
+
defaultOptions: e.getQueryDefaults(r)
|
|
1084
|
+
}), this.add(a)), a;
|
|
1085
|
+
}
|
|
1086
|
+
add(e) {
|
|
1087
|
+
s(G, this).has(e.queryHash) || (s(G, this).set(e.queryHash, e), this.notify({
|
|
1088
|
+
type: "added",
|
|
1089
|
+
query: e
|
|
1090
|
+
}));
|
|
1091
|
+
}
|
|
1092
|
+
remove(e) {
|
|
1093
|
+
let t = s(G, this).get(e.queryHash);
|
|
1094
|
+
t && (e.destroy(), t === e && s(G, this).delete(e.queryHash), this.notify({
|
|
1095
|
+
type: "removed",
|
|
1096
|
+
query: e
|
|
1097
|
+
}));
|
|
1098
|
+
}
|
|
1099
|
+
clear() {
|
|
1100
|
+
y.batch(() => {
|
|
1101
|
+
this.getAll().forEach((e) => {
|
|
1102
|
+
this.remove(e);
|
|
1103
|
+
});
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
get(e) {
|
|
1107
|
+
return s(G, this).get(e);
|
|
1108
|
+
}
|
|
1109
|
+
getAll() {
|
|
1110
|
+
return [...s(G, this).values()];
|
|
1111
|
+
}
|
|
1112
|
+
find(e) {
|
|
1113
|
+
let t = {
|
|
1114
|
+
exact: !0,
|
|
1115
|
+
...e
|
|
1116
|
+
};
|
|
1117
|
+
return this.getAll().find((e) => ce(t, e));
|
|
1118
|
+
}
|
|
1119
|
+
findAll(e = {}) {
|
|
1120
|
+
let t = this.getAll();
|
|
1121
|
+
return Object.keys(e).length > 0 ? t.filter((t) => ce(e, t)) : t;
|
|
1122
|
+
}
|
|
1123
|
+
notify(e) {
|
|
1124
|
+
y.batch(() => {
|
|
1125
|
+
this.listeners.forEach((t) => {
|
|
1126
|
+
t(e);
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
onFocus() {
|
|
1131
|
+
y.batch(() => {
|
|
1132
|
+
this.getAll().forEach((e) => {
|
|
1133
|
+
e.onFocus();
|
|
1134
|
+
});
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
onOnline() {
|
|
1138
|
+
y.batch(() => {
|
|
1139
|
+
this.getAll().forEach((e) => {
|
|
1140
|
+
e.onOnline();
|
|
1141
|
+
});
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
}), K, q, J, Y, X, Z, Q, $, We = (K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), class {
|
|
1145
|
+
constructor(e = {}) {
|
|
1146
|
+
i(this, K, void 0), i(this, q, void 0), i(this, J, void 0), i(this, Y, void 0), i(this, X, void 0), i(this, Z, void 0), i(this, Q, void 0), i(this, $, void 0), o(K, this, e.queryCache || new Ue()), o(q, this, e.mutationCache || new He()), o(J, this, e.defaultOptions || {}), o(Y, this, /* @__PURE__ */ new Map()), o(X, this, /* @__PURE__ */ new Map()), o(Z, this, 0);
|
|
1147
|
+
}
|
|
1148
|
+
mount() {
|
|
1149
|
+
var e;
|
|
1150
|
+
o(Z, this, (e = s(Z, this), e++, e)), s(Z, this) === 1 && (o(Q, this, d.subscribe(async (e) => {
|
|
1151
|
+
e && (await this.resumePausedMutations(), s(K, this).onFocus());
|
|
1152
|
+
})), o($, this, C.subscribe(async (e) => {
|
|
1153
|
+
e && (await this.resumePausedMutations(), s(K, this).onOnline());
|
|
1154
|
+
})));
|
|
1155
|
+
}
|
|
1156
|
+
unmount() {
|
|
1157
|
+
var e;
|
|
1158
|
+
o(Z, this, (e = s(Z, this), e--, e)), s(Z, this) === 0 && (s(Q, this)?.call(this), o(Q, this, void 0), s($, this)?.call(this), o($, this, void 0));
|
|
1159
|
+
}
|
|
1160
|
+
isFetching(e) {
|
|
1161
|
+
return s(K, this).findAll({
|
|
1162
|
+
...e,
|
|
1163
|
+
fetchStatus: "fetching"
|
|
1164
|
+
}).length;
|
|
1165
|
+
}
|
|
1166
|
+
isMutating(e) {
|
|
1167
|
+
return s(q, this).findAll({
|
|
1168
|
+
...e,
|
|
1169
|
+
status: "pending"
|
|
1170
|
+
}).length;
|
|
1171
|
+
}
|
|
1172
|
+
getQueryData(e) {
|
|
1173
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1174
|
+
return s(K, this).get(t.queryHash)?.state.data;
|
|
1175
|
+
}
|
|
1176
|
+
ensureQueryData(e) {
|
|
1177
|
+
let t = this.defaultQueryOptions(e), n = s(K, this).build(this, t), r = n.state.data;
|
|
1178
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(oe(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1179
|
+
}
|
|
1180
|
+
getQueriesData(e) {
|
|
1181
|
+
return s(K, this).findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1182
|
+
}
|
|
1183
|
+
setQueryData(e, t, n) {
|
|
1184
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = s(K, this).get(r.queryHash)?.state.data, a = re(t, i);
|
|
1185
|
+
if (a !== void 0) return s(K, this).build(this, r).setData(a, {
|
|
1186
|
+
...n,
|
|
1187
|
+
manual: !0
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
setQueriesData(e, t, n) {
|
|
1191
|
+
return y.batch(() => s(K, this).findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1192
|
+
}
|
|
1193
|
+
getQueryState(e) {
|
|
1194
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1195
|
+
return s(K, this).get(t.queryHash)?.state;
|
|
1196
|
+
}
|
|
1197
|
+
removeQueries(e) {
|
|
1198
|
+
let t = s(K, this);
|
|
1199
|
+
y.batch(() => {
|
|
1200
|
+
t.findAll(e).forEach((e) => {
|
|
1201
|
+
t.remove(e);
|
|
1202
|
+
});
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
resetQueries(e, t) {
|
|
1206
|
+
let n = s(K, this);
|
|
1207
|
+
return y.batch(() => (n.findAll(e).forEach((e) => {
|
|
1208
|
+
e.reset();
|
|
1209
|
+
}), this.refetchQueries({
|
|
1210
|
+
type: "active",
|
|
1211
|
+
...e
|
|
1212
|
+
}, t)));
|
|
1213
|
+
}
|
|
1214
|
+
cancelQueries(e, t = {}) {
|
|
1215
|
+
let n = {
|
|
1216
|
+
revert: !0,
|
|
1217
|
+
...t
|
|
1218
|
+
}, r = y.batch(() => s(K, this).findAll(e).map((e) => e.cancel(n)));
|
|
1219
|
+
return Promise.all(r).then(h).catch(h);
|
|
1220
|
+
}
|
|
1221
|
+
invalidateQueries(e, t = {}) {
|
|
1222
|
+
return y.batch(() => (s(K, this).findAll(e).forEach((e) => {
|
|
1223
|
+
e.invalidate();
|
|
1224
|
+
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1225
|
+
...e,
|
|
1226
|
+
type: e?.refetchType ?? e?.type ?? "active"
|
|
1227
|
+
}, t)));
|
|
1228
|
+
}
|
|
1229
|
+
refetchQueries(e, t = {}) {
|
|
1230
|
+
let n = {
|
|
1231
|
+
...t,
|
|
1232
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
1233
|
+
}, r = y.batch(() => s(K, this).findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1234
|
+
let t = e.fetch(void 0, n);
|
|
1235
|
+
return n.throwOnError || (t = t.catch(h)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1236
|
+
}));
|
|
1237
|
+
return Promise.all(r).then(h);
|
|
1238
|
+
}
|
|
1239
|
+
fetchQuery(e) {
|
|
1240
|
+
let t = this.defaultQueryOptions(e);
|
|
1241
|
+
t.retry === void 0 && (t.retry = !1);
|
|
1242
|
+
let n = s(K, this).build(this, t);
|
|
1243
|
+
return n.isStaleByTime(oe(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1244
|
+
}
|
|
1245
|
+
prefetchQuery(e) {
|
|
1246
|
+
return this.fetchQuery(e).then(h).catch(h);
|
|
1247
|
+
}
|
|
1248
|
+
fetchInfiniteQuery(e) {
|
|
1249
|
+
return e._type = "infinite", this.fetchQuery(e);
|
|
1250
|
+
}
|
|
1251
|
+
prefetchInfiniteQuery(e) {
|
|
1252
|
+
return this.fetchInfiniteQuery(e).then(h).catch(h);
|
|
1253
|
+
}
|
|
1254
|
+
ensureInfiniteQueryData(e) {
|
|
1255
|
+
return e._type = "infinite", this.ensureQueryData(e);
|
|
1256
|
+
}
|
|
1257
|
+
resumePausedMutations() {
|
|
1258
|
+
return C.isOnline() ? s(q, this).resumePausedMutations() : Promise.resolve();
|
|
1259
|
+
}
|
|
1260
|
+
getQueryCache() {
|
|
1261
|
+
return s(K, this);
|
|
1262
|
+
}
|
|
1263
|
+
getMutationCache() {
|
|
1264
|
+
return s(q, this);
|
|
1265
|
+
}
|
|
1266
|
+
getDefaultOptions() {
|
|
1267
|
+
return s(J, this);
|
|
1268
|
+
}
|
|
1269
|
+
setDefaultOptions(e) {
|
|
1270
|
+
o(J, this, e);
|
|
1271
|
+
}
|
|
1272
|
+
setQueryDefaults(e, t) {
|
|
1273
|
+
s(Y, this).set(g(e), {
|
|
1274
|
+
queryKey: e,
|
|
1275
|
+
defaultOptions: t
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
getQueryDefaults(e) {
|
|
1279
|
+
let t = [...s(Y, this).values()], n = {};
|
|
1280
|
+
return t.forEach((t) => {
|
|
1281
|
+
_(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1282
|
+
}), n;
|
|
1283
|
+
}
|
|
1284
|
+
setMutationDefaults(e, t) {
|
|
1285
|
+
s(X, this).set(g(e), {
|
|
1286
|
+
mutationKey: e,
|
|
1287
|
+
defaultOptions: t
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
getMutationDefaults(e) {
|
|
1291
|
+
let t = [...s(X, this).values()], n = {};
|
|
1292
|
+
return t.forEach((t) => {
|
|
1293
|
+
_(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1294
|
+
}), n;
|
|
1295
|
+
}
|
|
1296
|
+
defaultQueryOptions(e) {
|
|
1297
|
+
if (e._defaulted) return e;
|
|
1298
|
+
let t = {
|
|
1299
|
+
...s(J, this).queries,
|
|
1300
|
+
...this.getQueryDefaults(e.queryKey),
|
|
1301
|
+
...e,
|
|
1302
|
+
_defaulted: !0
|
|
1303
|
+
};
|
|
1304
|
+
return t.queryHash ||= ue(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 === v && (t.enabled = !1), t;
|
|
1305
|
+
}
|
|
1306
|
+
defaultMutationOptions(e) {
|
|
1307
|
+
return e?._defaulted ? e : {
|
|
1308
|
+
...s(J, this).mutations,
|
|
1309
|
+
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
|
|
1310
|
+
...e,
|
|
1311
|
+
_defaulted: !0
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
clear() {
|
|
1315
|
+
s(K, this).clear(), s(q, this).clear();
|
|
1316
|
+
}
|
|
1317
|
+
}), Ge = class n {
|
|
1318
|
+
constructor(e = {}) {
|
|
1319
|
+
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 We({ defaultOptions: { queries: {
|
|
1320
|
+
staleTime: e.staleTime || 300 * 1e3,
|
|
1321
|
+
gcTime: e.gcTime || 600 * 1e3,
|
|
1322
|
+
retry: e.retry || 3,
|
|
1323
|
+
retryDelay: e.retryDelay || ((e) => Math.min(1e3 * 2 ** e, 3e4))
|
|
1324
|
+
} } }), e.skipNetworkListeners || this.initNetworkListeners();
|
|
1325
|
+
}
|
|
1326
|
+
_normalizeUrl(e) {
|
|
1327
|
+
try {
|
|
1328
|
+
let t = new URL(e);
|
|
1329
|
+
return t.origin + t.pathname.replace(/\/$/, "");
|
|
1330
|
+
} catch {
|
|
1331
|
+
return e;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
configure(e = {}) {
|
|
1335
|
+
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;
|
|
1336
|
+
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) {
|
|
1337
|
+
let t = {};
|
|
1338
|
+
e.staleTime && (t.staleTime = e.staleTime), e.gcTime && (t.gcTime = e.gcTime), e.retry && (t.retry = e.retry), this.queryClient.setDefaultOptions({ queries: {
|
|
1339
|
+
...this.queryClient.getDefaultOptions().queries,
|
|
1340
|
+
...t
|
|
1341
|
+
} });
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
clearLocalCache() {
|
|
1345
|
+
this.queryClient.clear(), this.availableDatasets = [];
|
|
1346
|
+
}
|
|
1347
|
+
initNetworkListeners() {
|
|
1348
|
+
typeof window < "u" && window.addEventListener("online", () => {
|
|
1349
|
+
console.warn("Network connection restored, refreshing data..."), this.refreshAll();
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
getHeaders(e = {}) {
|
|
1353
|
+
return {
|
|
1354
|
+
"Content-Type": "application/json",
|
|
1355
|
+
...e
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
async fetchApi(e, t, n = {}) {
|
|
1359
|
+
let r = `${this.apiUrl}/${this.apiVersion}${e}`, i = {
|
|
1360
|
+
method: n.method || "POST",
|
|
1361
|
+
headers: this.getHeaders(n.headers),
|
|
1362
|
+
mode: "cors",
|
|
1363
|
+
...n
|
|
1364
|
+
};
|
|
1365
|
+
t !== void 0 && (t.key = this.authKey, t.token = this.authToken, i.body = JSON.stringify(t));
|
|
1366
|
+
try {
|
|
1367
|
+
let t = await fetch(r, i);
|
|
1368
|
+
if (!t.ok) {
|
|
1369
|
+
let n = await t.json().catch(() => null);
|
|
1370
|
+
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}`);
|
|
1371
|
+
}
|
|
1372
|
+
return await t.json();
|
|
1373
|
+
} catch (t) {
|
|
1374
|
+
throw console.error(`API request to ${e} failed:`, t), t instanceof Error && (t.endpoint = e, t.timestamp = (/* @__PURE__ */ new Date()).toISOString()), t;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
async fetchAllDatasets(e = {}) {
|
|
1378
|
+
let t = e.offset || 0, n = e.limit || 50, r = [
|
|
1379
|
+
"datasets",
|
|
1380
|
+
t,
|
|
1381
|
+
n
|
|
1382
|
+
];
|
|
1383
|
+
return await this.queryClient.fetchQuery({
|
|
1384
|
+
queryKey: r,
|
|
1385
|
+
queryFn: async () => {
|
|
1386
|
+
let e = {
|
|
1387
|
+
action: "get",
|
|
1388
|
+
version: this.apiVersion,
|
|
1389
|
+
find: {
|
|
1390
|
+
where: { type: "dataset" },
|
|
1391
|
+
attributes: [
|
|
1392
|
+
"id",
|
|
1393
|
+
"name",
|
|
1394
|
+
"description"
|
|
1395
|
+
],
|
|
1396
|
+
limit: n,
|
|
1397
|
+
offset: t
|
|
1398
|
+
}
|
|
1399
|
+
}, r = await this.fetchApi("/securable", e);
|
|
1400
|
+
return {
|
|
1401
|
+
data: r?.rows ?? [],
|
|
1402
|
+
pagination: {
|
|
1403
|
+
offset: t,
|
|
1404
|
+
limit: n,
|
|
1405
|
+
total: r?.count ?? 0,
|
|
1406
|
+
pages: Math.ceil((r?.count ?? 0) / n)
|
|
1407
|
+
}
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
async searchDatasets(e, t) {
|
|
1413
|
+
if (!e) return { data: [] };
|
|
1414
|
+
let n = [
|
|
1415
|
+
"datasets",
|
|
1416
|
+
"search",
|
|
1417
|
+
e,
|
|
1418
|
+
t
|
|
1419
|
+
];
|
|
1420
|
+
return await this.queryClient.fetchQuery({
|
|
1421
|
+
queryKey: n,
|
|
1422
|
+
queryFn: async () => {
|
|
1423
|
+
let n = {
|
|
1424
|
+
action: "get",
|
|
1425
|
+
version: this.apiVersion,
|
|
1426
|
+
find: { where: { type: "dataset" } }
|
|
1427
|
+
};
|
|
1428
|
+
e?.length > 0 && (n.find.search = {
|
|
1429
|
+
match_types: ["name"],
|
|
1430
|
+
keyphrase: e
|
|
1431
|
+
}), t?.offset && (n.find.offset = t?.offset), t?.limit && (n.find.limit = t?.limit);
|
|
1432
|
+
let r = await this.fetchApi("/securable", n), i = { data: r?.rows ?? [] };
|
|
1433
|
+
return t?.limit && (i.pagination = {
|
|
1434
|
+
offset: t?.offset ?? 0,
|
|
1435
|
+
limit: t?.limit,
|
|
1436
|
+
total: r?.count ?? 0,
|
|
1437
|
+
pages: Math.ceil((r?.count ?? 0) / t?.limit)
|
|
1438
|
+
}), i;
|
|
1439
|
+
}
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
async fetchDatasetNames(t) {
|
|
1443
|
+
if (!t || t.length === 0) throw Error("At least one dataset ID is required");
|
|
1444
|
+
let { valid: n, invalid: r } = e(t);
|
|
1445
|
+
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.");
|
|
1446
|
+
let i = [
|
|
1447
|
+
"dataset-names",
|
|
1448
|
+
n,
|
|
1449
|
+
this.authKey,
|
|
1450
|
+
this.authToken
|
|
1451
|
+
];
|
|
1452
|
+
return await this.queryClient.fetchQuery({
|
|
1453
|
+
queryKey: i,
|
|
1454
|
+
queryFn: async () => {
|
|
1455
|
+
let e = {
|
|
1456
|
+
action: "get",
|
|
1457
|
+
version: this.apiVersion,
|
|
1458
|
+
find: {
|
|
1459
|
+
where: {
|
|
1460
|
+
type: "dataset",
|
|
1461
|
+
id: { in: n }
|
|
1462
|
+
},
|
|
1463
|
+
attributes: [
|
|
1464
|
+
"name",
|
|
1465
|
+
"id",
|
|
1466
|
+
"description"
|
|
1467
|
+
]
|
|
1468
|
+
}
|
|
1469
|
+
};
|
|
1470
|
+
return (await this.fetchApi("/securable", e))?.rows ?? [];
|
|
1471
|
+
}
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
async fetchDatasetsWithColumnsAndFormulas(t) {
|
|
1475
|
+
if (!t || t.length === 0) throw Error("At least one dataset ID is required");
|
|
1476
|
+
let { valid: n, invalid: r } = e(t);
|
|
1477
|
+
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.");
|
|
1478
|
+
let i = [
|
|
1479
|
+
"datasets",
|
|
1480
|
+
n,
|
|
1481
|
+
this.authKey,
|
|
1482
|
+
this.authToken
|
|
1483
|
+
];
|
|
1484
|
+
return await this.queryClient.fetchQuery({
|
|
1485
|
+
queryKey: i,
|
|
1486
|
+
queryFn: async () => {
|
|
1487
|
+
let e = {
|
|
1488
|
+
action: "get",
|
|
1489
|
+
version: this.apiVersion,
|
|
1490
|
+
find: {
|
|
1491
|
+
where: {
|
|
1492
|
+
type: "dataset",
|
|
1493
|
+
id: { in: n }
|
|
1494
|
+
},
|
|
1495
|
+
attributes: [
|
|
1496
|
+
"name",
|
|
1497
|
+
"id",
|
|
1498
|
+
"description"
|
|
1499
|
+
],
|
|
1500
|
+
include: [{
|
|
1501
|
+
model: "Column",
|
|
1502
|
+
attributes: [
|
|
1503
|
+
"id",
|
|
1504
|
+
"name",
|
|
1505
|
+
"description",
|
|
1506
|
+
"type",
|
|
1507
|
+
"subtype",
|
|
1508
|
+
"format",
|
|
1509
|
+
"hidden",
|
|
1510
|
+
"lowestLevel",
|
|
1511
|
+
"expression",
|
|
1512
|
+
"duration_levels",
|
|
1513
|
+
"duration_format"
|
|
1514
|
+
],
|
|
1515
|
+
separate: !0,
|
|
1516
|
+
order: [["order", "asc"]],
|
|
1517
|
+
include: [
|
|
1518
|
+
{
|
|
1519
|
+
model: "Column",
|
|
1520
|
+
attributes: [
|
|
1521
|
+
"id",
|
|
1522
|
+
"securable_id",
|
|
1523
|
+
"hierarchy_enabled",
|
|
1524
|
+
"currency_id"
|
|
1525
|
+
],
|
|
1526
|
+
as: "Joins"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
model: "HierarchyLevel",
|
|
1530
|
+
attributes: [
|
|
1531
|
+
"id",
|
|
1532
|
+
"level",
|
|
1533
|
+
"name"
|
|
1534
|
+
],
|
|
1535
|
+
as: "HierarchyLevels"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
model: "Currency",
|
|
1539
|
+
attributes: [
|
|
1540
|
+
"id",
|
|
1541
|
+
"name",
|
|
1542
|
+
"symbol"
|
|
1543
|
+
],
|
|
1544
|
+
as: "Currency"
|
|
1545
|
+
}
|
|
1546
|
+
]
|
|
1547
|
+
}, {
|
|
1548
|
+
model: "Formula",
|
|
1549
|
+
attributes: [
|
|
1550
|
+
"id",
|
|
1551
|
+
"name",
|
|
1552
|
+
"description",
|
|
1553
|
+
"type",
|
|
1554
|
+
"subtype",
|
|
1555
|
+
"format",
|
|
1556
|
+
"hidden",
|
|
1557
|
+
"lowestLevel",
|
|
1558
|
+
"expression",
|
|
1559
|
+
"duration_levels",
|
|
1560
|
+
"duration_format"
|
|
1561
|
+
],
|
|
1562
|
+
include: [{
|
|
1563
|
+
model: "Currency",
|
|
1564
|
+
attributes: [
|
|
1565
|
+
"id",
|
|
1566
|
+
"name",
|
|
1567
|
+
"symbol"
|
|
1568
|
+
],
|
|
1569
|
+
as: "Currency"
|
|
1570
|
+
}]
|
|
1571
|
+
}]
|
|
1572
|
+
}
|
|
1573
|
+
};
|
|
1574
|
+
return (await this.fetchApi("/securable", e))?.rows ?? [];
|
|
1575
|
+
}
|
|
1576
|
+
});
|
|
1577
|
+
}
|
|
1578
|
+
async fetchData(e) {
|
|
1579
|
+
if (!e) throw Error("Query is required");
|
|
1580
|
+
let t = ["data", e];
|
|
1581
|
+
return await this.queryClient.fetchQuery({
|
|
1582
|
+
queryKey: t,
|
|
1583
|
+
queryFn: async () => {
|
|
1584
|
+
let t = {
|
|
1585
|
+
action: "get",
|
|
1586
|
+
version: this.apiVersion,
|
|
1587
|
+
find: { queries: [e] }
|
|
1588
|
+
}, n = await this.fetchApi("/data", t);
|
|
1589
|
+
return {
|
|
1590
|
+
data: n?.data || [],
|
|
1591
|
+
performance: n?.performance || {}
|
|
1592
|
+
};
|
|
1593
|
+
}
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
getCachedData(e) {
|
|
1597
|
+
let t = ["data", e], n = this.queryClient.getQueryState(t), r = this.queryClient.getDefaultOptions().queries?.staleTime;
|
|
1598
|
+
if (!(!n?.data || n.isInvalidated || typeof r != "number") && !(r !== Infinity && Date.now() - n.dataUpdatedAt > r)) return n.data;
|
|
1599
|
+
}
|
|
1600
|
+
async validate(e, t) {
|
|
1601
|
+
if (!t?.expression) return { valid: !1 };
|
|
1602
|
+
let n = {
|
|
1603
|
+
action: "validate",
|
|
1604
|
+
version: this.apiVersion,
|
|
1605
|
+
properties: t
|
|
1606
|
+
}, r = await this.fetchApi(`/${e}`, n);
|
|
1607
|
+
return {
|
|
1608
|
+
valid: !!r?.valid,
|
|
1609
|
+
reason: r?.reason ?? r?.error,
|
|
1610
|
+
explanation: r?.explanation,
|
|
1611
|
+
type: r?.type
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
async fetchTheme(e) {
|
|
1615
|
+
if (!e) throw Error("Theme ID is required");
|
|
1616
|
+
let t = ["theme", e];
|
|
1617
|
+
return await this.queryClient.fetchQuery({
|
|
1618
|
+
queryKey: t,
|
|
1619
|
+
queryFn: async () => (await this.fetchApi("/theme", {
|
|
1620
|
+
action: "get",
|
|
1621
|
+
version: this.apiVersion,
|
|
1622
|
+
find: { where: { id: e } }
|
|
1623
|
+
}))?.rows?.[0]
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
refreshAll() {
|
|
1627
|
+
this.queryClient.refetchQueries();
|
|
1628
|
+
}
|
|
1629
|
+
invalidateDatasetData(e) {
|
|
1630
|
+
e ? (this.queryClient.invalidateQueries({ queryKey: ["dataset", e] }), this.queryClient.invalidateQueries({ queryKey: ["columns", e] })) : this.queryClient.invalidateQueries({ queryKey: ["datasets"] });
|
|
1631
|
+
}
|
|
1632
|
+
invalidateAll() {
|
|
1633
|
+
this.queryClient.clear();
|
|
1634
|
+
}
|
|
1635
|
+
static getInstance(e = {}) {
|
|
1636
|
+
return n.instance ? Object.keys(e).length > 0 && n.instance.configure(e) : n.instance = new n(e), n.instance;
|
|
1637
|
+
}
|
|
1638
|
+
async fetchDatasetsRecursive(n) {
|
|
1639
|
+
if (!n || n.length === 0) throw Error("At least one dataset ID is required");
|
|
1640
|
+
let { valid: r, invalid: i } = e(n);
|
|
1641
|
+
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.");
|
|
1642
|
+
let a = [...new Set(r)], o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), c = (e) => {
|
|
1643
|
+
e && t(e) && !o.has(e) && !a.includes(e) && a.push(e);
|
|
1644
|
+
};
|
|
1645
|
+
for (; a.length > 0;) {
|
|
1646
|
+
let e = [];
|
|
1647
|
+
for (; a.length > 0 && e.length < 50;) {
|
|
1648
|
+
let t = a.shift();
|
|
1649
|
+
o.has(t) || e.push(t);
|
|
1650
|
+
}
|
|
1651
|
+
if (e.length !== 0) try {
|
|
1652
|
+
(await this.fetchDatasetsWithColumnsAndFormulas(e)).forEach((e) => {
|
|
1653
|
+
let t = this.postProcessDatasetMetadata(e);
|
|
1654
|
+
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) => {
|
|
1655
|
+
c(e);
|
|
1656
|
+
}), s.set(t.id, t), this.availableDatasets.some((e) => e.id === t.id) || this.availableDatasets.push({
|
|
1657
|
+
id: t.id,
|
|
1658
|
+
name: t.name,
|
|
1659
|
+
columns: t.columns
|
|
1660
|
+
});
|
|
1661
|
+
});
|
|
1662
|
+
} catch (e) {
|
|
1663
|
+
console.error("Error fetching datasets recursively:", e);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
return [...s.values()];
|
|
1667
|
+
}
|
|
1668
|
+
postProcessDatasetMetadata(e) {
|
|
1669
|
+
let t = [], n = (e.columns ?? []).map((e) => {
|
|
1670
|
+
let n = e.joins ?? (Array.isArray(e.joins) ? e.joins : []);
|
|
1671
|
+
Array.isArray(n) && n.length > 0 && t.push(...n);
|
|
1672
|
+
let { joins: r, ...i } = e;
|
|
1673
|
+
return {
|
|
1674
|
+
...i,
|
|
1675
|
+
joins: n
|
|
1676
|
+
};
|
|
1677
|
+
});
|
|
1678
|
+
return {
|
|
1679
|
+
...e,
|
|
1680
|
+
columns: n,
|
|
1681
|
+
formulas: e.formulas ?? [],
|
|
1682
|
+
outgoingJoins: t,
|
|
1683
|
+
dateLoaded: /* @__PURE__ */ new Date()
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
getAvailableDatasets() {
|
|
1687
|
+
return this.availableDatasets;
|
|
1688
|
+
}
|
|
1689
|
+
getLinkedDatasetsIds(e) {
|
|
1690
|
+
let t = this.queryClient.getQueryData(["dataset", e]);
|
|
1691
|
+
return t ? (t.outgoingJoins ?? []).map((e) => e.securable_id).filter((t) => !!t && t !== e) : [];
|
|
1692
|
+
}
|
|
1693
|
+
}, Ke = Ge.getInstance();
|
|
1694
|
+
//#endregion
|
|
1695
|
+
export { Ke as n, Ge as t };
|