@luzmo/analytics-components-kit 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/angular/components/add-to-dashboard.ts +20 -6
- package/angular/components/data-fields-select.ts +5 -0
- package/angular/components/interactive-viz-item.ts +87 -22
- package/angular/components/item-grid-item-actions-menu.ts +5 -0
- package/angular/components/item-grid.ts +7 -0
- package/angular/components/item-option-color-picker.ts +28 -28
- package/angular/components/item-option-guidelines.ts +22 -1
- package/angular/components/item-option-multi-language-field.ts +7 -7
- package/angular/components/item-option-number-field.ts +14 -14
- package/angular/components/item-option-positions-number-field.ts +14 -14
- package/angular/components/item-option-radio-button-group.ts +7 -7
- package/angular/components/item-option-text-field.ts +7 -7
- package/angular/components/item-slot-picker-panel.ts +1 -1
- package/angular/components/item-slot-picker.ts +7 -7
- package/angular/esm/components/add-to-dashboard.d.ts +8 -4
- package/angular/esm/components/add-to-dashboard.js +23 -7
- package/angular/esm/components/data-fields-select.d.ts +2 -0
- package/angular/esm/components/data-fields-select.js +4 -0
- package/angular/esm/components/interactive-viz-item.d.ts +30 -9
- package/angular/esm/components/interactive-viz-item.js +98 -27
- package/angular/esm/components/item-grid-item-actions-menu.d.ts +2 -0
- package/angular/esm/components/item-grid-item-actions-menu.js +4 -0
- package/angular/esm/components/item-grid.d.ts +3 -1
- package/angular/esm/components/item-grid.js +9 -1
- package/angular/esm/components/item-option-color-picker.d.ts +10 -10
- package/angular/esm/components/item-option-color-picker.js +34 -34
- package/angular/esm/components/item-option-guidelines.d.ts +8 -2
- package/angular/esm/components/item-option-guidelines.js +26 -2
- package/angular/esm/components/item-option-multi-language-field.d.ts +3 -3
- package/angular/esm/components/item-option-multi-language-field.js +10 -10
- package/angular/esm/components/item-option-number-field.d.ts +5 -5
- package/angular/esm/components/item-option-number-field.js +18 -18
- package/angular/esm/components/item-option-positions-number-field.d.ts +5 -5
- package/angular/esm/components/item-option-positions-number-field.js +18 -18
- package/angular/esm/components/item-option-radio-button-group.d.ts +3 -3
- package/angular/esm/components/item-option-radio-button-group.js +10 -10
- package/angular/esm/components/item-option-text-field.d.ts +3 -3
- package/angular/esm/components/item-option-text-field.js +10 -10
- package/angular/esm/components/item-slot-picker-panel.d.ts +1 -1
- package/angular/esm/components/item-slot-picker-panel.js +1 -1
- package/angular/esm/components/item-slot-picker.d.ts +3 -3
- package/angular/esm/components/item-slot-picker.js +9 -9
- package/angular/package.json +2 -2
- package/components/add-to-dashboard/dashboard-actions.d.ts +2 -1
- package/components/add-to-dashboard/index.cjs +1 -1
- package/components/add-to-dashboard/index.js +1 -1
- package/components/{add-to-dashboard-CzIuDtAq.cjs → add-to-dashboard-BtzTZdjN.cjs} +1 -1
- package/components/{add-to-dashboard-DGC0_hRB.js → add-to-dashboard-Bu6S3qVz.js} +125 -120
- package/components/chart-helpers-BHxQbLBw.cjs +20 -0
- package/components/{chart-helpers-Cbl3sRra.js → chart-helpers-BKeMLhov.js} +51 -38
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/{filters-CxIzuI5q.js → filters-DEpmh9Nj.js} +113 -102
- package/components/filters-LDXhe1Bp.cjs +187 -0
- package/components/index.cjs +1 -1
- package/components/index.js +6 -6
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +2 -1
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.js +3 -3
- package/components/interactive-viz-item/interactive-viz-item.d.ts +44 -0
- package/components/{interactive-viz-item-BKLOmawA.js → interactive-viz-item-Cc3Ix95e.js} +151 -110
- package/components/interactive-viz-item-SF12d97t.cjs +269 -0
- package/components/item-grid/item-grid.d.ts +1 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -1
- package/components/item-slot-picker-panel/item-slot-picker-panel.d.ts +19 -1
- package/components/item-slot-picker-panel-Cw3UCK03.cjs +84 -0
- package/components/{item-slot-picker-panel-fJqEmxeD.js → item-slot-picker-panel-DprM9Rli.js} +64 -33
- package/custom-elements.json +3044 -2532
- package/grid-core/item-grid-base.d.ts +5 -4
- package/package.json +1 -1
- package/react/package.json +2 -2
- package/standalone/add-to-dashboard.js +1 -1
- package/standalone/chunks/{chart-helpers-CR-EUEPf.js → chart-helpers-DZsidiCl.js} +1 -1
- package/standalone/chunks/data-broker-DpSrH3IP.js +2 -0
- package/standalone/chunks/{display-settings-binning-BeLLxd3i.js → display-settings-binning-DhHlclWH.js} +1 -1
- package/standalone/chunks/{display-settings-datetime-BkeiKIVV.js → display-settings-datetime-C8xvOvi4.js} +1 -1
- package/standalone/chunks/{display-settings-grand-totals-BuhpQKJ6.js → display-settings-grand-totals-CUpigDcs.js} +1 -1
- package/standalone/chunks/{display-settings-numeric-m30IYI7I.js → display-settings-numeric-BLWF54Jx.js} +1 -1
- package/standalone/chunks/{display-settings-period-over-period-CqDlOSRn.js → display-settings-period-over-period-COd4tvUw.js} +1 -1
- package/standalone/chunks/en-DNsyAwgq.js +2 -0
- package/standalone/chunks/en-GB-Di3OzVdL.js +2 -0
- package/standalone/chunks/en-US-DNsyAwgq.js +2 -0
- package/standalone/chunks/{filters-CxgBXUF1.js → filters-lhg_WVDK.js} +72 -72
- package/standalone/chunks/{formula-codemirror-Cq94j3-f.js → formula-codemirror-DZMzLE2I.js} +1 -1
- package/standalone/chunks/{item-option-action-button-group-BoyqF9vt.js → item-option-action-button-group-Bl1HR1JK.js} +1 -1
- package/standalone/chunks/{item-option-base-CBcDT8MX.js → item-option-base-DF24wTyv.js} +1 -1
- package/standalone/chunks/{item-option-color-palette-picker-C9PGAv4V.js → item-option-color-palette-picker-MkIIn56p.js} +1 -1
- package/standalone/chunks/{item-option-color-picker-D4fVJlqF.js → item-option-color-picker-CxosMo_p.js} +1 -1
- package/standalone/chunks/{item-option-color-range-BlAdTguE.js → item-option-color-range-C7C70r4J.js} +1 -1
- package/standalone/chunks/{item-option-guidelines-DMsYsHDu.js → item-option-guidelines-iu8yWRzr.js} +1 -1
- package/standalone/chunks/{item-option-multi-language-field-NUbm1drg.js → item-option-multi-language-field-foanqCdr.js} +1 -1
- package/standalone/chunks/{item-option-number-field-DRp7kbHL.js → item-option-number-field-ByVD4oq0.js} +1 -1
- package/standalone/chunks/{item-option-panel-cXrRclzM.js → item-option-panel-Bya-K7HH.js} +2 -2
- package/standalone/chunks/{item-option-picker-Ba09L4Cs.js → item-option-picker-CqNNVIML.js} +1 -1
- package/standalone/chunks/{item-option-position-picker-GEGTnhjw.js → item-option-position-picker-BjCFVtDH.js} +1 -1
- package/standalone/chunks/{item-option-positions-number-field-n44s1k5v.js → item-option-positions-number-field-BJJtXZL-.js} +1 -1
- package/standalone/chunks/{item-option-radio-button-group-3s_b1NvR.js → item-option-radio-button-group-C5bxsD85.js} +1 -1
- package/standalone/chunks/{item-option-slider-DtY65Gxk.js → item-option-slider-DUXWz70B.js} +1 -1
- package/standalone/chunks/{item-option-switch-4sJaI0mx.js → item-option-switch-BHyJuOkP.js} +1 -1
- package/standalone/chunks/{item-option-text-field-Bt6Lj6kh.js → item-option-text-field-rBZY9OX4.js} +1 -1
- package/standalone/chunks/{item-slot-picker-panel-BOSVFBIy.js → item-slot-picker-panel-BM82vSXi.js} +74 -72
- package/standalone/chunks/load-data-fields-for-datasets-DS9O1oyy.js +25 -0
- package/standalone/chunks/localize-DLl7tgQp.js +2 -0
- package/standalone/interactive-viz-item.js +54 -53
- package/standalone/manifest.json +31 -31
- package/types.d.ts +1 -1
- package/components/chart-helpers-fMnqHRzC.cjs +0 -20
- package/components/filters-BPbPFOu5.cjs +0 -187
- package/components/interactive-viz-item-ojdH1uk0.cjs +0 -268
- package/components/item-slot-picker-panel-BhhN54IM.cjs +0 -82
- package/standalone/chunks/data-broker-DXDyIrj_.js +0 -2
- package/standalone/chunks/en-63f7j4v7.js +0 -2
- package/standalone/chunks/en-GB-QAmXQf8W.js +0 -2
- package/standalone/chunks/en-US-63f7j4v7.js +0 -2
- package/standalone/chunks/load-data-fields-for-datasets-CDlut-6S.js +0 -25
- package/standalone/chunks/localize-DXRmGRe-.js +0 -2
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
require("./tokens-BWMfo_w4.cjs");const e=require("./base-CGDNY_7v.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-EoNvtTBG.cjs"),r=require("./data-broker-DCghLjhq.cjs"),i=require("./type-check-BehV9ZL1.cjs"),a=require("./localize-D3i4Epy_.cjs"),o=require("./slots-config-B6AOo19R.cjs"),s=require("./slot-labels.config-DKnxOncr.cjs");require("./item-slot-picker-O9HKr3mv.cjs");let c=require("lit"),l=require("lit/decorators.js"),u=require("@lit/localize");require("@luzmo/lucero/select"),require("@luzmo/lucero/field-label");let d=require("lit/directives/if-defined.js"),f=require("@lit/task");var p=`:host{font-size:var(--luzmo-item-slot-picker-panel-font-size,var(--luzmo-font-size));font-family:var(--luzmo-font-family,sans-serif);color:var(--luzmo-font-color,inherit);display:block}:host([size=s]){font-size:var(--luzmo-item-slot-picker-panel-font-size-s,var(--luzmo-font-size-s))}:host([size=l]){font-size:var(--luzmo-item-slot-picker-panel-font-size-l,var(--luzmo-font-size-l))}:host([size=xl]){font-size:var(--luzmo-item-slot-picker-panel-font-size-xl,var(--luzmo-font-size-xl))}.container{flex-direction:column;align-items:flex-start;display:flex}.dataset-picker{align-self:stretch;align-items:flex-start;gap:var(--luzmo-item-slot-picker-panel-dataset-picker-gap,var(--luzmo-spacing-2));border-bottom-style:solid;border-bottom-width:var(--luzmo-item-slot-picker-panel-dataset-picker-border-width,1px);border-bottom-color:var(--luzmo-item-slot-picker-panel-dataset-picker-border-color,var(--luzmo-border-color));flex-direction:column;flex-shrink:0;margin-block-end:var(--luzmo-item-slot-picker-panel-dataset-picker-margin-block-end,var(--luzmo-spacing-4));padding-block-end:var(--luzmo-item-slot-picker-panel-dataset-picker-padding-block-end,var(--luzmo-spacing-4));display:flex}.slots-panel{gap:var(--luzmo-item-slot-picker-panel-gap,var(--luzmo-spacing-5));flex-direction:column;display:flex}.slot-container{gap:var(--luzmo-item-slot-picker-panel-slot-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}luzmo-field-label{margin:0}luzmo-item-slot-picker{display:block}:host([grows]) .container{align-items:stretch;width:100%}:host([grows]) .dataset-picker{align-items:stretch}:host([grows]) .dataset-picker luzmo-select{width:100%}`,m,h=50,g=(m=class extends n.t(e.n(e.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0})){constructor(...e){super(...e),this._loadSlotsConfig=new f.Task(this,{task:async([e])=>{if(e&&e!==this._itemTypeLoaded){this._itemTypeLoaded=e;let t=await o.t(e);return this._slotsConfig=t??[],this._slotsConfig}return this._slotsConfig},args:()=>[this.itemType,this.language]}),this._slotsConfig=[],this._datasetListItems=[],this._datasetListRetrieving=!1,this._datasetListPending=!1,this._datasetNamesFetchAttempted=!1,this._hasMoreDatasets=!0,this._fetchedDatasetsDataFields=[],this._failedDatasetIds=new Set,this._loadDataFieldsTask=new f.Task(this,{args:()=>[this._currentDatasetId,this.apiUrl,this.authKey,this.authToken,this.datasetsDataFields.length],task:async([e,t,n,a,o])=>{if(o>0||!e)return null;if(!i.s(e))return console.warn(`[LuzmoItemSlotPickerPanel] Invalid dataset ID provided (not a valid UUID): ${e}`),this._failedDatasetIds.add(e),null;if(this._failedDatasetIds.has(e))return null;let s=this._fetchedDatasetsDataFields.find(t=>t.id===e);if(s&&s.columns&&s.columns.length>0)return s;try{let t=await r.n.fetchDatasetsWithColumnsAndFormulas([e]);if(t.length===0)return this._failedDatasetIds.add(e),null;let n=t[0],i=this._fetchedDatasetsDataFields.findIndex(t=>t.id===e);return i===-1?this._fetchedDatasetsDataFields=[...this._fetchedDatasetsDataFields,n]:this._fetchedDatasetsDataFields[i]=n,n}catch(t){return console.warn(`Failed to fetch dataset data fields:`,t),this._failedDatasetIds.add(e),null}}}),this.contentLanguage=`en`,this.slotsContents=[],this.selects=`multiple`,this.dataFieldsSearch=`auto`,this.datasetSearch=`auto`,this.icons=`menu-only`,this.datasetsDataFields=[],this.datasetIds=[],this.datasetPicker=!1,this.apiUrl=`https://api.luzmo.com`,this.placement=`bottom-start`,this.slotMenuPlacement=`bottom-end`,this.slotMenuMode=`overlay`,this.constraintMode=`auto`,this.grows=!1,this._currentSlotsContents=[],this._createSlotChangeHandler=e=>t=>{t.preventDefault(),t.stopPropagation();let n=t.detail.slotContents??[],r=this._applySlotConstraints(e,n);r!==null&&(this._currentSlotsContents=r,this.slotsContents=structuredClone(r),this.dispatchEvent(new CustomEvent(`luzmo-slots-contents-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotsContents:r}})))}}get _availableDatasets(){return this.datasetsDataFields.length>0?this.datasetsDataFields:this.datasetIds.length>0?this.datasetIds.map(e=>{let t=this._datasetListItems.find(t=>t.id===e);return t?{id:t.id,name:t.name,description:t.description}:{id:e,name:{en:e}}}):this._datasetListItems.length>0?this._datasetListItems.map(e=>({id:e.id,name:e.name,description:e.description})):[]}get _currentDatasetsDataFields(){if(this.datasetsDataFields.length>0){if(!this._currentDatasetId)return this.datasetsDataFields;let e=this.datasetsDataFields.find(e=>e.id===this._currentDatasetId);return e?[e]:this.datasetsDataFields}let e=this._loadDataFieldsTask.value;if(e)return[{id:e.id,name:e.name,description:e.description,columns:e.columns??[],formulas:e.formulas??[]}];if(this._fetchedDatasetsDataFields.length>0&&this._currentDatasetId){let e=this._fetchedDatasetsDataFields.find(e=>e.id===this._currentDatasetId);if(e)return[{id:e.id,name:e.name,description:e.description,columns:e.columns??[],formulas:e.formulas??[]}]}return[]}get _shouldFetchDatasetList(){return this.datasetPicker&&this.datasetsDataFields.length===0}_areDatasetsLinked(e,t){return e===t}_getUsedDatasetIds(){let e=new Set;for(let t of this._currentSlotsContents)for(let n of t.content)n.datasetId&&e.add(n.datasetId);return[...e]}willUpdate(e){super.willUpdate(e),e.has(`slotsContents`)&&(this._currentSlotsContents=structuredClone(this.slotsContents??[]));let t=e.has(`selectedDatasetId`),n=e.has(`datasetsDataFields`),i=e.has(`datasetIds`),a=e.has(`datasetPicker`),o=e.has(`authKey`),s=e.has(`authToken`),c=e.has(`apiUrl`);(i||o||s||c)&&(this._datasetListItems=[],this._hasMoreDatasets=!0,this._datasetNamesFetchAttempted=!1,this._fetchedDatasetsDataFields=[],this._failedDatasetIds.clear(),r.n.configure({apiUrl:this.apiUrl,authKey:this.authKey??``,authToken:this.authToken??``})),n&&this.datasetsDataFields.length>0&&(this._datasetListItems=[],this._hasMoreDatasets=!0,this._fetchedDatasetsDataFields=[],this._failedDatasetIds.clear()),(t||n||i)&&this._updateCurrentDatasetId(),(i||o||s||c||a)&&this.datasetIds.length>0&&this.datasetPicker&&this.datasetsDataFields.length===0&&this._datasetListItems.length===0&&this._fetchDatasetNamesForPicker()}_updateCurrentDatasetId(){let e=this._availableDatasets;this._currentDatasetId=this.selectedDatasetId&&e.some(e=>e.id===this.selectedDatasetId)||this.selectedDatasetId&&this.datasetIds.includes(this.selectedDatasetId)?this.selectedDatasetId:e.length>0?e[0].id:void 0}async _fetchDatasetNamesForPicker(){if(this.datasetIds.length!==0){this._datasetListPending=!0;try{let e=await r.n.fetchDatasetNames(this.datasetIds);this._datasetListItems=e}catch(e){console.warn(`Failed to fetch dataset names:`,e)}finally{this._datasetListPending=!1,this._datasetNamesFetchAttempted=!0}}}async _loadMoreDatasets(e){if(!this._datasetListRetrieving&&this._hasMoreDatasets){this._datasetListRetrieving=!0,e&&(e.retrieving=!0);try{let e=this._datasetListItems.length,t=await r.n.fetchAllDatasets({offset:e,limit:h});this._datasetListItems=[...this._datasetListItems,...t.data],this._hasMoreDatasets=e+h<(t.pagination?.total??0),!this._currentDatasetId&&this._datasetListItems.length>0&&this._updateCurrentDatasetId()}catch(e){console.warn(`Failed to load dataset list:`,e),this._hasMoreDatasets=!1}finally{this._datasetListRetrieving=!1,e&&(e.retrieving=!1)}}}_handlePickerScrolled(e){if(this.datasetIds.length>0)return;let t=e.target,{last:n}=e.detail;n>=this._datasetListItems.length-10&&this._hasMoreDatasets&&this._loadMoreDatasets(t)}async _handlePickerOpened(e){let t=e.target;if(this._datasetListItems.length===0&&this._shouldFetchDatasetList&&this.datasetIds.length===0&&this._hasMoreDatasets){t.pending=!0;try{await this._loadMoreDatasets(t)}finally{t.pending=!1}}}_handleDatasetChange(e){let t=e.detail?.value?.[0];if(!t||t===this._currentDatasetId)return;let n=this._getUsedDatasetIds(),r=this._currentSlotsContents.some(e=>e.content.length>0),i=n.every(e=>this._areDatasetsLinked(e,t));if(r&&!i){if(this.constraintMode===`event-only`){this.dispatchEvent(new CustomEvent(`luzmo-dataset-constraint-triggered`,{bubbles:!0,composed:!0,detail:{previousDatasetId:this._currentDatasetId,newDatasetId:t,currentSlotsContents:structuredClone(this._currentSlotsContents),wouldClearSlots:!0}}));return}this._currentSlotsContents=[],this.slotsContents=[],this.dispatchEvent(new CustomEvent(`luzmo-slots-contents-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotsContents:[]}}))}this._currentDatasetId=t,this.dispatchEvent(new CustomEvent(`luzmo-dataset-changed`,{bubbles:!0,composed:!0,detail:{datasetId:t}}))}_getSlotContents(e){return this._currentSlotsContents?.find(t=>t.name===e)?.content??[]}_applySlotConstraints(e,t){let n=this.slotsConfiguration??this._slotsConfig,r=structuredClone(this._currentSlotsContents),i=structuredClone(this._currentSlotsContents),a=i.findIndex(t=>t.name===e);a===-1?i.push({name:e,content:t}):i[a].content=t;let o=[];for(let r of n){if(r.keepOnlyFirstWhenOtherSlotFilled?.includes(e)&&t.length>0){let t=i.findIndex(e=>e.name===r.name);t!==-1&&i[t].content.length>1&&(o.push({type:`keepOnlyFirstWhenOtherSlotFilled`,affectedSlotName:r.name,triggeredBySlotName:e}),i[t].content=[i[t].content[0]])}if(r.clearWhenOtherSlotHasMultipleItems?.includes(e)&&t.length>1){let t=i.findIndex(e=>e.name===r.name);t!==-1&&i[t].content.length>0&&(o.push({type:`clearWhenOtherSlotHasMultipleItems`,affectedSlotName:r.name,triggeredBySlotName:e}),i[t].content=[])}}if(this.constraintMode===`event-only`&&o.length>0){let n={triggerSlotName:e,proposedTriggerContents:t,originalSlotsContents:r,proposedSlotsContents:i,constraints:o};return this.dispatchEvent(new CustomEvent(`luzmo-slot-constraint-triggered`,{detail:n,bubbles:!0,composed:!0})),null}return i}_getTranslatedLabel(e){let t=(typeof e.label==`string`?e.label:e.label?a.t(e.label,this.language):void 0)??e.name;return s.t[t]?s.t[t]():t}_renderDatasetPicker(){if(!this.datasetPicker)return c.nothing;let e=this._availableDatasets,t=e.length>1,n=this.datasetIds.length>0,r=this._shouldFetchDatasetList;if(!t&&!n&&!r)return c.nothing;let i=this._datasetListPending||this.datasetIds.length>0&&this._datasetListItems.length===0&&this.datasetsDataFields.length===0&&!this._datasetNamesFetchAttempted,o=i?[]:e.map(e=>({value:e.id,label:a.t(e.name,this.contentLanguage)||e.id})),s=i?[]:this._currentDatasetId?[this._currentDatasetId]:[],l=i?(0,u.msg)(`Loading datasets...`):(0,u.msg)(`Select dataset...`);return c.html`
|
|
21
|
-
<div class="dataset-picker" part="dataset-picker">
|
|
22
|
-
<luzmo-field-label part="dataset-field-label" size=${this.size}>
|
|
23
|
-
${this.datasetPickerLabel??(0,u.msg)(`Dataset`)}
|
|
24
|
-
</luzmo-field-label>
|
|
25
|
-
<luzmo-select
|
|
26
|
-
selects="single"
|
|
27
|
-
variant="highlight"
|
|
28
|
-
search=${(0,d.ifDefined)(this.datasetSearch)}
|
|
29
|
-
placement=${this.placement}
|
|
30
|
-
.size=${this.size}
|
|
31
|
-
.options=${o}
|
|
32
|
-
.value=${s}
|
|
33
|
-
.label=${l}
|
|
34
|
-
?pending=${i}
|
|
35
|
-
@change=${this._handleDatasetChange}
|
|
36
|
-
@luzmo-opened=${this._handlePickerOpened}
|
|
37
|
-
@luzmo-scrolled=${this._handlePickerScrolled}
|
|
38
|
-
></luzmo-select>
|
|
39
|
-
</div>
|
|
40
|
-
`}_renderSlot(e){let t=this._getSlotContents(e.name),n=this._createSlotChangeHandler(e.name),r=this._getTranslatedLabel(e);return c.html`
|
|
41
|
-
<div class="slot-container" part="slot-container">
|
|
42
|
-
<luzmo-field-label part="field-label" size=${this.size}>
|
|
43
|
-
${r}
|
|
44
|
-
</luzmo-field-label>
|
|
45
|
-
<luzmo-item-slot-picker
|
|
46
|
-
part="item-slot-picker"
|
|
47
|
-
item-type=${(0,d.ifDefined)(this.itemType)}
|
|
48
|
-
slot-name=${e.name}
|
|
49
|
-
language=${this.language}
|
|
50
|
-
content-language=${this.contentLanguage}
|
|
51
|
-
api-url=${(0,d.ifDefined)(this.apiUrl)}
|
|
52
|
-
auth-key=${(0,d.ifDefined)(this.authKey)}
|
|
53
|
-
auth-token=${(0,d.ifDefined)(this.authToken)}
|
|
54
|
-
size=${this.size}
|
|
55
|
-
selects=${this.selects}
|
|
56
|
-
search=${(0,d.ifDefined)(this.dataFieldsSearch)}
|
|
57
|
-
icons=${(0,d.ifDefined)(this.icons)}
|
|
58
|
-
placement=${this.placement}
|
|
59
|
-
slot-menu-placement=${this.slotMenuPlacement}
|
|
60
|
-
slot-menu-mode=${this.slotMenuMode}
|
|
61
|
-
?grows=${this.grows}
|
|
62
|
-
aria-required=${e.isRequired?`true`:c.nothing}
|
|
63
|
-
.slotConfiguration=${e}
|
|
64
|
-
.slotContents=${t}
|
|
65
|
-
.datasetsDataFields=${this._currentDatasetsDataFields}
|
|
66
|
-
@luzmo-slot-contents-changed=${n}
|
|
67
|
-
></luzmo-item-slot-picker>
|
|
68
|
-
</div>
|
|
69
|
-
`}_renderSlots(e){let t=e.map(e=>this._renderSlot(e));return c.html`
|
|
70
|
-
<div class="slots-panel" part="slots-panel">
|
|
71
|
-
${t}
|
|
72
|
-
</div>
|
|
73
|
-
`}_renderContent(e){return c.html`
|
|
74
|
-
<div class="container" part="container">
|
|
75
|
-
${this._renderDatasetPicker()}
|
|
76
|
-
${this._renderSlots(e)}
|
|
77
|
-
</div>
|
|
78
|
-
`}render(){return this.slotsConfiguration&&this.slotsConfiguration.length>0?this._renderContent(this.slotsConfiguration):this._loadSlotsConfig.render({pending:()=>c.html`
|
|
79
|
-
<p role="status">Loading...</p>
|
|
80
|
-
`,complete:e=>!e||e.length===0?c.html`<p>No slots configuration found for ${this.itemType}</p>`:this._renderContent(e),error:e=>c.html`
|
|
81
|
-
<div role="alert">Could not load slots configuration for '${this.itemType}': ${e}.</div>
|
|
82
|
-
`})}},m.styles=(0,c.unsafeCSS)(p),m);t.t([(0,l.state)()],g.prototype,`_datasetListItems`,void 0),t.t([(0,l.state)()],g.prototype,`_datasetListRetrieving`,void 0),t.t([(0,l.state)()],g.prototype,`_datasetListPending`,void 0),t.t([(0,l.state)()],g.prototype,`_currentDatasetId`,void 0),t.t([(0,l.state)()],g.prototype,`_fetchedDatasetsDataFields`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`item-type`})],g.prototype,`itemType`,void 0),t.t([(0,l.property)({type:String,attribute:`content-language`,reflect:!0})],g.prototype,`contentLanguage`,void 0),t.t([(0,l.property)({type:Array})],g.prototype,`slotsConfiguration`,void 0),t.t([(0,l.property)({type:Array})],g.prototype,`slotsContents`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],g.prototype,`selects`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`data-fields-search`})],g.prototype,`dataFieldsSearch`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`dataset-search`})],g.prototype,`datasetSearch`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],g.prototype,`icons`,void 0),t.t([(0,l.property)({type:Array,reflect:!1})],g.prototype,`datasetsDataFields`,void 0),t.t([(0,l.property)({type:Array,attribute:`dataset-ids`})],g.prototype,`datasetIds`,void 0),t.t([(0,l.property)({type:String,attribute:`selected-dataset-id`,reflect:!0})],g.prototype,`selectedDatasetId`,void 0),t.t([(0,l.property)({type:Boolean,attribute:`dataset-picker`,reflect:!0})],g.prototype,`datasetPicker`,void 0),t.t([(0,l.property)({type:String,attribute:`dataset-picker-label`})],g.prototype,`datasetPickerLabel`,void 0),t.t([(0,l.property)({type:String,attribute:`api-url`})],g.prototype,`apiUrl`,void 0),t.t([(0,l.property)({type:String,attribute:`auth-key`})],g.prototype,`authKey`,void 0),t.t([(0,l.property)({type:String,attribute:`auth-token`})],g.prototype,`authToken`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],g.prototype,`placement`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`slot-menu-placement`})],g.prototype,`slotMenuPlacement`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`slot-menu-mode`})],g.prototype,`slotMenuMode`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`constraint-mode`})],g.prototype,`constraintMode`,void 0),t.t([(0,l.property)({type:Boolean,reflect:!0})],g.prototype,`grows`,void 0),t.t([(0,l.state)()],g.prototype,`_currentSlotsContents`,void 0),g=t.t([(0,u.localized)()],g),customElements.get(`luzmo-item-slot-picker-panel`)||customElements.define(`luzmo-item-slot-picker-panel`,g),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return g}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
var e=class{constructor(){this.listeners=/* @__PURE__ */ new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},t=new class extends e{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#e=n;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function i(e){setTimeout(e,0)}var a=typeof window>`u`||`Deno`in globalThis;function o(){}function s(e,t){return typeof e==`function`?e(t):e}function c(e){return typeof e==`number`&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return typeof e==`function`?e(t):e}function d(e,t){return typeof e==`function`?e(t):e}function f(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==m(o,t.options))return!1}else if(!g(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function p(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(a))return!1}else if(!g(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function m(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function g(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>g(e[n],t[n])):!1}var _=Object.prototype.hasOwnProperty;function v(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=y(e)&&y(t);if(!r&&!(b(e)&&b(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:_.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=v(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!x(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!x(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function x(e){return Object.prototype.toString.call(e)===`[object Object]`}function ee(e){return new Promise(t=>{r.setTimeout(t,e)})}function S(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:v(e,t)}function te(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ne(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var C=/* @__PURE__ */ Symbol();function w(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===C?()=>Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function T(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0})),i)}),e}var E=/* @__PURE__ */ (()=>{let e=()=>a;return{isServer(){return e()},setIsServer(t){e=t}}})();function re(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var D=i;function O(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=D,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var k=O(),A=new class extends e{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function j(e){return Math.min(1e3*2**e,3e4)}function M(e){return(e??`online`)!==`online`||A.isOnline()}var N=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function P(e){let n=!1,r=0,i,a=re(),o=()=>a.status!==`pending`,s=t=>{if(!o()){let n=new N(t);p(n),e.onCancel?.(n)}},c=()=>{n=!0},l=()=>{n=!1},u=()=>t.isFocused()&&(e.networkMode===`always`||A.isOnline())&&e.canRun(),d=()=>M(e.networkMode)&&e.canRun(),f=e=>{o()||(i?.(),a.resolve(e))},p=e=>{o()||(i?.(),a.reject(e))},m=()=>new Promise(t=>{i=e=>{(o()||u())&&t(e)},e.onPause?.()}).then(()=>{i=void 0,o()||e.onContinue?.()}),h=()=>{if(o())return;let t,i=r===0?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if(o())return;let i=e.retry??(E.isServer()?0:3),a=e.retryDelay??j,s=typeof a==`function`?a(r,t):a,c=i===!0||typeof i==`number`&&r<i||typeof i==`function`&&i(r,t);n||!c?p(t):(r++,e.onFail?.(r,t),ee(s).then(()=>u()?void 0:m()).then(()=>{n?p(t):h()}))})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(i?.(),a),cancelRetry:c,continueRetry:l,canStart:d,start:()=>(d()?h():m().then(h),a)}}var F=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),c(this.gcTime)&&(this.#e=r.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(E.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(r.clearTimeout(this.#e),this.#e=void 0)}};function I(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{T(e,()=>t.signal,()=>n=!0)},u=w(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?ne:te;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?R:L,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:L(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function L(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function R(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var z=class extends F{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=H(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=H(this.options);e.data!==void 0&&(this.setState(V(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=S(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(o).catch(o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>d(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===C||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>u(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!l(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=w(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?I(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=P({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof N&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof N){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...B(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...V(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),k.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function B(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:M(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function V(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function H(e){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;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var U=class extends F{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||W(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=P({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(/* @__PURE__ */ Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),k.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function W(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var G=class extends e{constructor(e={}){super(),this.config=e,this.#e=/* @__PURE__ */ new Set,this.#t=/* @__PURE__ */ new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new U({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=K(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=K(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=K(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=K(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){k.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>p(t,e))}findAll(e={}){return this.getAll().filter(t=>p(e,t))}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return k.batch(()=>Promise.all(e.map(e=>e.continue().catch(o))))}};function K(e){return e.options.scope?.id}var q=class extends e{constructor(e={}){super(),this.config=e,this.#e=/* @__PURE__ */ new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??m(r,t),a=this.get(i);return a||(a=new z({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){k.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>f(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>f(e,t)):t}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){k.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){k.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},J=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new q,this.#t=e.mutationCache||new G,this.#n=e.defaultOptions||{},this.#r=/* @__PURE__ */ new Map,this.#i=/* @__PURE__ */ new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=A.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(u(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=s(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return k.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;k.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return k.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=k.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(o).catch(o)}invalidateQueries(e,t={}){return k.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=k.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(o)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(o)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(u(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(o).catch(o)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(o).catch(o)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return A.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(h(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{g(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(h(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{g(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=m(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===C&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Y(e){return e==null}function X(e){return typeof e==`string`||e instanceof String}function ie(e){return!Number.isNaN(e)&&Number.isFinite(e)}function ae(e){return typeof e==`boolean`}function oe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function se(e){return typeof e==`object`&&!!e&&Object.keys(e).length===0}var ce=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Z(e){return typeof e==`string`&&ce.test(e)}function Q(e){let t=[],n=[];for(let r of e)Z(r)?t.push(r):n.push(r);return{valid:t,invalid:n}}var $=class e{constructor(e={}){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 J({defaultOptions:{queries:{staleTime:e.staleTime||3e5,gcTime:e.gcTime||6e5,retry:e.retry||3,retryDelay:e.retryDelay||(e=>Math.min(1e3*2**e,3e4))}}}),e.skipNetworkListeners||this.initNetworkListeners()}_normalizeUrl(e){try{let t=new URL(e);return t.origin+t.pathname.replace(/\/$/,``)}catch{return e}}configure(e={}){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;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){let t={};e.staleTime&&(t.staleTime=e.staleTime),e.gcTime&&(t.gcTime=e.gcTime),e.retry&&(t.retry=e.retry),this.queryClient.setDefaultOptions({queries:{...this.queryClient.getDefaultOptions().queries,...t}})}}clearLocalCache(){this.queryClient.clear(),this.availableDatasets=[]}initNetworkListeners(){typeof window<`u`&&window.addEventListener(`online`,()=>{console.warn(`Network connection restored, refreshing data...`),this.refreshAll()})}getHeaders(e={}){return{"Content-Type":`application/json`,...e}}async fetchApi(e,t,n={}){let r=`${this.apiUrl}/${this.apiVersion}${e}`,i={method:n.method||`POST`,headers:this.getHeaders(n.headers),mode:`cors`,...n};t!==void 0&&(t.key=this.authKey,t.token=this.authToken,i.body=JSON.stringify(t));try{let t=await fetch(r,i);if(!t.ok){let n=await t.json().catch(()=>null);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}`)}return await t.json()}catch(t){throw console.error(`API request to ${e} failed:`,t),t instanceof Error&&(t.endpoint=e,t.timestamp=(/* @__PURE__ */ new Date()).toISOString()),t}}async fetchAllDatasets(e={}){let t=e.offset||0,n=e.limit||50,r=[`datasets`,t,n];return await this.queryClient.fetchQuery({queryKey:r,queryFn:async()=>{let e={action:`get`,version:this.apiVersion,find:{where:{type:`dataset`},attributes:[`id`,`name`,`description`],limit:n,offset:t}},r=await this.fetchApi(`/securable`,e);return{data:r?.rows??[],pagination:{offset:t,limit:n,total:r?.count??0,pages:Math.ceil((r?.count??0)/n)}}}})}async searchDatasets(e,t){if(!e)return{data:[]};let n=[`datasets`,`search`,e,t];return await this.queryClient.fetchQuery({queryKey:n,queryFn:async()=>{let n={action:`get`,version:this.apiVersion,find:{where:{type:`dataset`}}};e?.length>0&&(n.find.search={match_types:[`name`],keyphrase:e}),t?.offset&&(n.find.offset=t?.offset),t?.limit&&(n.find.limit=t?.limit);let r=await this.fetchApi(`/securable`,n),i={data:r?.rows??[]};return t?.limit&&(i.pagination={offset:t?.offset??0,limit:t?.limit,total:r?.count??0,pages:Math.ceil((r?.count??0)/t?.limit)}),i}})}async fetchDatasetNames(e){if(!e||e.length===0)throw Error(`At least one dataset ID is required`);let{valid:t,invalid:n}=Q(e);if(n.length>0&&console.warn(`[DataBroker] Invalid dataset IDs provided (not valid UUIDs): ${n.join(`, `)}. These will be skipped.`),t.length===0)throw Error(`No valid dataset IDs provided. Dataset IDs must be valid UUIDs.`);let r=[`dataset-names`,t,this.authKey,this.authToken];return await this.queryClient.fetchQuery({queryKey:r,queryFn:async()=>{let e={action:`get`,version:this.apiVersion,find:{where:{type:`dataset`,id:{in:t}},attributes:[`name`,`id`,`description`]}};return(await this.fetchApi(`/securable`,e))?.rows??[]}})}async fetchDatasetsWithColumnsAndFormulas(e){if(!e||e.length===0)throw Error(`At least one dataset ID is required`);let{valid:t,invalid:n}=Q(e);if(n.length>0&&console.warn(`[DataBroker] Invalid dataset IDs provided (not valid UUIDs): ${n.join(`, `)}. These will be skipped.`),t.length===0)throw Error(`No valid dataset IDs provided. Dataset IDs must be valid UUIDs.`);let r=[`datasets`,t,this.authKey,this.authToken];return await this.queryClient.fetchQuery({queryKey:r,queryFn:async()=>{let e={action:`get`,version:this.apiVersion,find:{where:{type:`dataset`,id:{in:t}},attributes:[`name`,`id`,`description`],include:[{model:`Column`,attributes:[`id`,`name`,`description`,`type`,`subtype`,`format`,`hidden`,`lowestLevel`,`expression`,`duration_levels`,`duration_format`],separate:!0,order:[[`order`,`asc`]],include:[{model:`Column`,attributes:[`id`,`securable_id`,`hierarchy_enabled`,`currency_id`],as:`Joins`},{model:`HierarchyLevel`,attributes:[`id`,`level`,`name`],as:`HierarchyLevels`},{model:`Currency`,attributes:[`id`,`name`,`symbol`],as:`Currency`}]},{model:`Formula`,attributes:[`id`,`name`,`description`,`type`,`subtype`,`format`,`hidden`,`lowestLevel`,`expression`,`duration_levels`,`duration_format`],include:[{model:`Currency`,attributes:[`id`,`name`,`symbol`],as:`Currency`}]}]}};return(await this.fetchApi(`/securable`,e))?.rows??[]}})}async fetchData(e){if(!e)throw Error(`Query is required`);let t=[`data`,e];return await this.queryClient.fetchQuery({queryKey:t,queryFn:async()=>{let t={action:`get`,version:this.apiVersion,find:{queries:[e]}},n=await this.fetchApi(`/data`,t);return{data:n?.data||[],performance:n?.performance||{}}}})}getCachedData(e){let t=[`data`,e],n=this.queryClient.getQueryState(t),r=this.queryClient.getDefaultOptions().queries?.staleTime;if(n?.data&&!n.isInvalidated&&typeof r==`number`&&!(r!==1/0&&Date.now()-n.dataUpdatedAt>r))return n.data}async validate(e,t){if(!t?.expression)return{valid:!1};let n={action:`validate`,version:this.apiVersion,properties:t},r=await this.fetchApi(`/${e}`,n);return{valid:!!r?.valid,reason:r?.reason??r?.error,explanation:r?.explanation,type:r?.type}}async fetchTheme(e){if(!e)throw Error(`Theme ID is required`);let t=[`theme`,e];return await this.queryClient.fetchQuery({queryKey:t,queryFn:async()=>(await this.fetchApi(`/theme`,{action:`get`,version:this.apiVersion,find:{where:{id:e}}}))?.rows?.[0]})}refreshAll(){this.queryClient.refetchQueries()}invalidateDatasetData(e){e?(this.queryClient.invalidateQueries({queryKey:[`dataset`,e]}),this.queryClient.invalidateQueries({queryKey:[`columns`,e]})):this.queryClient.invalidateQueries({queryKey:[`datasets`]})}invalidateAll(){this.queryClient.clear()}static getInstance(t={}){return e.instance?Object.keys(t).length>0&&e.instance.configure(t):e.instance=new e(t),e.instance}async fetchDatasetsRecursive(e){if(!e||e.length===0)throw Error(`At least one dataset ID is required`);let{valid:t,invalid:n}=Q(e);if(n.length>0&&console.warn(`[DataBroker] Invalid dataset IDs provided (not valid UUIDs): ${n.join(`, `)}. These will be skipped.`),t.length===0)throw Error(`No valid dataset IDs provided. Dataset IDs must be valid UUIDs.`);let r=[...new Set(t)],i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Map,o=e=>{e&&Z(e)&&!i.has(e)&&!r.includes(e)&&r.push(e)};for(;r.length>0;){let e=[];for(;r.length>0&&e.length<50;){let t=r.shift();i.has(t)||e.push(t)}if(e.length!==0)try{(await this.fetchDatasetsWithColumnsAndFormulas(e)).forEach(e=>{let t=this.postProcessDatasetMetadata(e);i.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=>{o(e)}),a.set(t.id,t),this.availableDatasets.some(e=>e.id===t.id)||this.availableDatasets.push({id:t.id,name:t.name,columns:t.columns})})}catch(e){console.error(`Error fetching datasets recursively:`,e)}}return[...a.values()]}postProcessDatasetMetadata(e){let t=[],n=(e.columns??[]).map(e=>{let n=e.joins??(Array.isArray(e.joins)?e.joins:[]);Array.isArray(n)&&n.length>0&&t.push(...n);let{joins:r,...i}=e;return{...i,joins:n}});return{...e,columns:n,formulas:e.formulas??[],outgoingJoins:t,dateLoaded:/* @__PURE__ */ new Date}}getAvailableDatasets(){return this.availableDatasets}getLinkedDatasetsIds(e){let t=this.queryClient.getQueryData([`dataset`,e]);return t?(t.outgoingJoins??[]).map(e=>e.securable_id).filter(t=>!!t&&t!==e):[]}},le=$.getInstance();export{se as a,X as c,Y as i,Z as l,le as n,ie as o,ae as r,oe as s,$ as t,Q as u};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{n as e,r as t,t as n}from"./localized-mixin-BWJj88bd.js";import{t as r}from"./localized-decorator-DosMCCQo.js";import{n as i,u as a}from"./data-broker-DXDyIrj_.js";import{t as o}from"./localize-DXRmGRe-.js";import{html as s,property as c,unsafeCSS as ee}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.6.1/standalone/lit.js";import{ElementSizes as te,LuzmoElement as ne,SizedMixin as re}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.6.1/standalone/utils.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.6.1/standalone/select.js";var l={icon:{icon:[32,32,`M16 0C7.2 0 0 7.2 0 16 0 24.8 7.2 32 16 32 24.8 32 32 24.8 32 16 32 7.2 24.8 0 16 0zM16 2C20.9 2 25.2 4.5 27.7 8.4 27.1 8.9 26.5 9.7 26 10 25.1 10.6 25.3 12 25 13 24.7 14 25.7 15 26 16 26.5 17.4 28.5 17.3 29.9 17.9 29 24.1 24.2 28.9 18 29.8 18.7 27.9 18.5 25.5 20 24 20.7 23.3 22 22.9 22 22 22 21.3 22.4 20.4 21.9 19.9L20 18 15 18C14.3 17.3 13.7 16.4 12.9 15.9 12.2 15.6 10.5 15.5 11 15 11.7 14.3 12.1 13.2 13 13 13.4 12.9 14 13.3 14 12.6 14 12.1 13.6 11.3 14.1 10.9 14.4 10.7 14.6 10 15.1 10 15.5 10 16 10.1 16.3 9.7 16.6 9.3 17 9.1 17 8.6 17 7.4 17.7 6 17 5L14.8 2.1C15.2 2 15.6 2 16 2zM2.6 12C3.5 13.9 4.2 16.1 6 17 8 18 12 17.8 12 20 12 21.4 11.4 22.9 12 24.1 12.4 24.7 12.7 25.5 13.2 26.2 13.4 26.5 14 26.7 14 27.1 14 27.8 13.7 28.9 13.5 29.8 7 28.6 2 22.9 2 16 2 14.6 2.2 13.3 2.6 12z`],name:`globe`}.icon,name:`topography`},u={icon:[20,24,`M2.63 0A2.68 2.68 0 0 0 0 2.7v18.6C0 22.77 1.17 24 2.63 24h14.73A2.68 2.68 0 0 0 20 21.3V2.7C20 1.24 18.82 0 17.36 0Zm0 2h14.73c.35 0 .64.28.64.7V10H2V2.7c0-.42.28-.7.63-.7zM2 12h3v2H2Zm5 0h4v2H7Zm6 0h5v2h-5ZM2 16h3v2H2Zm5 0h4v2H7Zm6 0h5v5.3c0 .43-.29.7-.64.7H13ZM2 20h3v2H2.63c-.35 0-.63-.27-.63-.7zm5 0h4v2H7Z`],name:`derived-12`},ie={icon:[24,28,`M3 0a3 3 0 0 0-3 3v22c0 1.65 1.35 3 3 3h18c1.65 0 3-1.35 3-3V3a3 3 0 0 0-3-3Zm0 2h18c.57 0 1 .42 1 1v8H2V3c0-.58.42-1 1-1ZM2 13h5v3H2Zm7 0h5v3H9Zm7 0h6v3h-6ZM2 18h5v3H2Zm7 0h5v3H9Zm7 0h6v7c0 .57-.43 1-1 1h-5ZM2 23h5v3H3c-.58 0-1-.43-1-1Zm7 0h5v3H9Z`],name:`derived-14`},d={icon:[28,32,`M3 0C1.4 0 0 1.4 0 3v26c0 1.6 1.4 3 3 3h22c1.6 0 3-1.4 3-3V3c0-1.6-1.4-3-3-3Zm0 2h22c.6 0 1 .4 1 1v9H2V3c0-.6.4-1 1-1zM2 14h6v4H2Zm8 0h6v4h-6Zm8 0h8v4h-8ZM2 20h6v4H2Zm8 0h6v4h-6Zm8 0h8v9c0 .6-.4 1-1 1h-7ZM2 26h6v4H3c-.6 0-1-.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3v3H2V9a3 3 0 0 1 3-3Zm-3 8h7v4H2Zm9 0h8v4h-8zm10 0h7v4h-7ZM2 20h7v4H2Zm9 0h8v4h-8zm10 0h7v4h-7ZM2 26h7v4H5a3 3 0 0 1-3-3Zm9 0h8v4h-8zm10 0h7v1a3 3 0 0 1-3 3h-4z`],name:`date`},m={icon:[30,32,`M8 1a1 1 0 0 0-1 1v2H5C2.26 4 0 6.26 0 9v17c0 2.75 2.25 5 5 5h9.91a10 10 0 0 1-1.57-2H11v-4h1.09a10 10 0 0 1-.09-1 10 10 0 0 1 .09-1H11v-4h2.34a10 10 0 0 1 1.57-2H11v-4h8v1.49a10 10 0 0 1 2-.4V13h7v3a10 10 0 0 1 2 2V9a5 5 0 0 0-5-5h-2V2a1 1 0 0 0-2 0v2H9V2a1 1 0 0 0-1-1zM5 6h2v1a1 1 0 0 0 1 1 1 1 0 0 0 1-1V6h12v1a1 1 0 0 0 1 1 1 1 0 0 0 1-1V6h2c1.68 0 3 1.32 3 3v2H2V9c0-1.68 1.33-3 3-3zm-3 7h7v4H2v-4zm20 3c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 2c3.33 0 6 2.67 6 6s-2.67 6-6 6-6-2.67-6-6 2.67-6 6-6zM2 19h7v4H2v-4zm19 1a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-3v-3a1 1 0 0 0-1-1zM2 25h7v4H5c-1.67 0-3-1.32-3-3v-1z`],name:`datetime`},h={icon:[21,24,`M 5 0 C 4.4477153 0 4 0.44771525 4 1 L 4 2 C 1.790861 2 0 3.790861 0 6 L 0 20 C 0 22.2 1.8 24 4 24 L 10.757812 24 C 9.4618931 23.15264 8.3188977 22.04833 8 21.242188 C 7.3447412 20.103874 6.999907 18.81344 7 17.5 C 7.0084015 15.407448 7.8906416 13.413557 9.4335938 12 L 8 12 L 8 9 L 13 9 L 13 10.166016 C 13.493146 10.060385 13.99569 10.004765 14.5 10 C 14.667099 10.0087 14.833859 10.023069 15 10.042969 L 15 9 L 19 9 L 19 11.529297 C 19.809686 12.130147 20.489907 12.888089 21 13.757812 L 21 6 C 21 3.8 19.2 2 17 2 L 17 1 C 17 0.44771525 16.552285 0 16 0 C 15.447715 0 15 0.44771525 15 1 L 15 2 L 6 2 L 6 1 C 6 0.44771525 5.5522847 0 5 0 z M 4 4 L 4 5 C 4 5.5522847 4.4477153 6 5 6 C 5.5522847 6 6 5.5522847 6 5 L 6 4 L 15 4 L 15 5 C 15 5.5522847 15.447715 6 16 6 C 16.552285 6 17 5.5522847 17 5 L 17 4 C 18.13 4 19 4.87 19 6 L 19 7 L 2 7 L 2 6 C 2 4.87 2.88 4 4 4 z M 2 9 L 6 9 L 6 12 L 2 12 L 2 9 z M 14.560547 10.988281 C 10.982544 10.988281 8.0605469 13.910279 8.0605469 17.488281 C 8.0605469 21.066284 10.982544 23.988281 14.560547 23.988281 C 18.138549 23.988281 21.060547 21.066284 21.060547 17.488281 C 21.060547 13.910279 18.138549 10.988281 14.560547 10.988281 z M 14.560547 12.988281 C 17.05767 12.988281 19.060547 14.991158 19.060547 17.488281 C 19.060547 19.985405 17.05767 21.988281 14.560547 21.988281 C 12.063424 21.988281 10.060547 19.985405 10.060547 17.488281 C 10.060547 14.991158 12.063424 12.988281 14.560547 12.988281 z M 2 14 L 6 14 L 6 17 L 2 17 L 2 14 z M 13.857422 14.857422 A 1 1 0 0 0 12.857422 15.857422 L 12.857422 19 A 1.0001 1.0001 0 0 0 13.857422 20 L 16 20 A 1 1 0 0 0 17 19 A 1 1 0 0 0 16 18 L 14.857422 18 L 14.857422 15.857422 A 1 1 0 0 0 13.857422 14.857422 z M 2 19 L 6 19 L 6 22 L 4 22 C 2.88 22 2 21.13 2 20 L 2 19 z`],name:`datetime-12`},se={icon:[26,28,`M 8 0 A 1 1 0 0 0 7 1 L 7 2 L 5 2 C 2.25 2 0 4.24 0 7 L 0 23 C 0 25.75 2.25 28 5 28 L 14.025391 28 A 8.499999 8.499999 0 0 1 12.314453 26 L 10 26 L 10 22 L 11.042969 22 A 8.499999 8.499999 0 0 1 11 21.5 A 8.499999 8.499999 0 0 1 11.134766 20 L 10 20 L 10 16 L 13.025391 16 A 8.499999 8.499999 0 0 1 15.546875 14 L 10 14 L 10 10 L 16 10 L 16 13.789062 A 8.499999 8.499999 0 0 1 18 13.134766 L 18 10 L 24 10 L 24 14 L 23.496094 14 A 8.499999 8.499999 0 0 1 26 16.027344 L 26 7 A 5 5 0 0 0 21 2 L 19 2 L 19 1 A 1 1 0 0 0 17 1 L 17 2 L 9 2 L 9 1 A 1 1 0 0 0 8 0 z M 5 4 L 7 4 L 7 5 A 1 1 0 0 0 9 5 L 9 4 L 17 4 L 17 5 A 1 1 0 0 0 19 5 L 19 4 L 21 4 C 23 4 24 5.32 24 7 L 24 8 L 2 8 L 2 7 C 2 5.32 3 4 5 4 z M 2 10 L 8 10 L 8 14 L 2 14 L 2 10 z M 19.560547 14.988281 C 15.982544 14.988281 13.060547 17.910279 13.060547 21.488281 C 13.060547 25.066284 15.982544 27.988281 19.560547 27.988281 C 23.138549 27.988281 26.060547 25.066284 26.060547 21.488281 C 26.060547 17.910279 23.138549 14.988281 19.560547 14.988281 z M 2 16 L 8 16 L 8 20 L 2 20 L 2 16 z M 19.560547 16.988281 C 22.05767 16.988281 24.060547 18.991158 24.060547 21.488281 C 24.060547 23.985405 22.05767 25.988281 19.560547 25.988281 C 17.063424 25.988281 15.060547 23.985405 15.060547 21.488281 C 15.060547 18.991158 17.063424 16.988281 19.560547 16.988281 z M 18.857422 18.857422 A 1 1 0 0 0 17.857422 19.857422 L 17.857422 23 A 1.0001 1.0001 0 0 0 18.857422 24 L 21 24 A 1 1 0 0 0 22 23 A 1 1 0 0 0 21 22 L 19.857422 22 L 19.857422 19.857422 A 1 1 0 0 0 18.857422 18.857422 z M 2 22 L 8 22 L 8 26 L 5 26 C 3.33 26 2 24.68 2 23 L 2 22 z`],name:`datetime-14`},ce={icon:[19,24,`M9.73 0H9.5C7.04 0 4.56.8 2.72 2.44.9 4.08-.23 6.64.04 9.8c.23 2.6 2.24 5.84 4.25 8.7 1 1.43 2.02 2.71 2.85 3.67.4.47.78.87 1.1 1.16.16.15.3.28.47.39.16.11.27.28.79.28s.63-.17.8-.28a16.3 16.3 0 0 0 1.56-1.55 44.3 44.3 0 0 0 2.85-3.67c2-2.86 4.02-6.1 4.25-8.7.28-3.17-.85-5.72-2.69-7.36A10.13 10.13 0 0 0 9.73 0Zm-.42 2h.19c2.03 0 4.04.66 5.44 1.92 1.4 1.26 2.26 3.07 2.02 5.7-.14 1.6-1.96 4.98-3.9 7.73a44.52 44.52 0 0 1-2.7 3.5c-.35.4-.63.68-.86.9a14 14 0 0 1-.86-.9 44.43 44.43 0 0 1-2.72-3.5C3.99 14.6 2.18 11.2 2.04 9.63c-.23-2.64.62-4.45 2.02-5.7A8.22 8.22 0 0 1 9.31 2Zm.19 3A2.5 2.5 0 0 0 7 7.5 2.5 2.5 0 0 0 9.5 10 2.5 2.5 0 0 0 12 7.5 2.5 2.5 0 0 0 9.5 5Z`],name:`coordinates-12`},le={icon:[22,28,`M11.01 0c-2.83 0-5.68.91-7.8 2.81S-.23 7.62.03 11.31c.1 1.51.8 3.19 1.76 4.96a55.08 55.08 0 0 0 6.96 9.64c.52.56.96 1.02 1.35 1.37.2.17.36.3.54.43.2.12.3.29.83.29s.66-.18.84-.31c.18-.13.35-.27.53-.44.36-.35.77-.81 1.24-1.38a52.72 52.72 0 0 0 3.2-4.34c2.24-3.37 4.47-7.24 4.69-10.22.26-3.68-1.06-6.6-3.17-8.5a11.63 11.63 0 0 0-7.79-2.8Zm0 2c2.4 0 4.77.8 6.45 2.3 1.7 1.51 2.74 3.72 2.51 6.86-.14 2-2.18 6-4.36 9.27a51.02 51.02 0 0 1-3.07 4.17c-.43.52-.8.93-1.08 1.2 0-.02-.02-.01-.03-.02-.3-.27-.72-.7-1.2-1.22a53.4 53.4 0 0 1-6.68-9.24 12.02 12.02 0 0 1-1.52-4.15c-.22-3.15.83-5.35 2.52-6.87A9.75 9.75 0 0 1 11 2Zm-.13 3a4.51 4.51 0 0 0 .12 9c2.47 0 4.5-2.03 4.5-4.5S13.47 5 11 5zM11 7c1.4 0 2.5 1.1 2.5 2.5A2.5 2.5 0 0 1 11 12c-1.4 0-2.5-1.1-2.5-2.5S9.6 7 11 7z`],name:`coordinates-14`},g={icon:[26,32,`M13 6a5 5 0 0 0-5 5 5 5 0 0 0 5 4.98A5 5 0 0 0 17.98 11 5 5 0 0 0 13 6.01zm0 2a3 3 0 0 1 3.02 3.03A3 3 0 0 1 13 13.98a2.98 2.98 0 0 1-3.03-2.99A3.03 3.03 0 0 1 13 7.97zm0-8A12.96 12.96 0 0 0 0 13c0 5.4 7.4 14.2 11.1 18.1 1.1 1.2 2.8 1.2 3.9 0 3.59-3.9 10.96-12.7 10.96-18.1A12.9 12.9 0 0 0 13.03 0Zm0 2a10.96 10.96 0 0 1 11 11c0 4.5-6.1 11.97-9.3 15.79-1.02 1.2-2.27 1.2-3.29 0-3.1-3.78-9.45-11.3-9.45-15.8A10.96 10.96 0 0 1 13.03 2Z`],name:`coordinates`},_={icon:[13,24,`M6.92 0a1 1 0 0 0-1 1v2.09c-1.07.1-2.1.41-3 .94A4.03 4.03 0 0 0 .85 7.45c0 1.8.87 3.15 2.01 3.95 1.15.8 2.5 1.18 3.78 1.56 1.27.37 2.44.75 3.2 1.28.76.53 1.16 1.07 1.16 2.31 0 .98-.4 1.47-1.19 1.89-.8.42-2 .62-3.24.53a8.22 8.22 0 0 1-3.35-.94C2.36 17.54 2 17.02 2 16.55a1 1 0 0 0-1-1 1 1 0 0 0-1 1c0 1.43 1.02 2.53 2.22 3.22 1.07.61 2.37 1 3.7 1.15V23a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-2.04c1-.07 1.98-.3 2.83-.75A4.13 4.13 0 0 0 13 16.55a4.7 4.7 0 0 0-2.02-3.95c-1.14-.8-2.5-1.18-3.77-1.56a12.07 12.07 0 0 1-3.2-1.28c-.76-.53-1.16-1.07-1.16-2.31 0-.77.36-1.26 1.1-1.7a5.98 5.98 0 0 1 2.97-.71c1.12 0 2.24.26 2.98.7.74.45 1.1.94 1.1 1.7a1 1 0 0 0 1 1 1 1 0 0 0 1-1 4 4 0 0 0-2.07-3.4 7.35 7.35 0 0 0-3.01-.95V.99a1 1 0 0 0-1-.99Z`],name:`currency-12`},v={icon:[15,28,`M7.96 0a1.5 1.5 0 0 0-1.5 1.5v2.05a7.9 7.9 0 0 0-3.1 1.1A5 5 0 0 0 .92 8.82c0 2.12 1.02 3.8 2.35 4.77 1.33.97 2.86 1.4 4.25 1.85 1.38.43 2.62.85 3.37 1.39.74.54 1.11 1.02 1.11 2.34 0 1-.34 1.42-1.1 1.84-.76.42-2 .64-3.29.54a8.32 8.32 0 0 1-3.46-1c-.86-.52-1.15-1-1.15-1.38a1.5 1.5 0 0 0-1.5-1.5 1.5 1.5 0 0 0-1.5 1.5c0 1.77 1.22 3.13 2.6 3.96 1.14.68 2.47 1.1 3.86 1.3v2.07a1.5 1.5 0 0 0 1.5 1.5 1.5 1.5 0 0 0 1.5-1.5v-2c1.02-.1 2-.37 2.9-.86A5.12 5.12 0 0 0 15 19.18c0-2.13-1.03-3.8-2.36-4.77-1.33-.97-2.86-1.4-4.24-1.84a12.7 12.7 0 0 1-3.37-1.4c-.75-.54-1.12-1.02-1.12-2.34 0-.76.3-1.2 1.03-1.64a6.05 6.05 0 0 1 3.01-.74c1.16 0 2.3.3 3.02.74.72.45 1.02.88 1.02 1.64a1.5 1.5 0 0 0 1.5 1.5 1.5 1.5 0 0 0 1.5-1.5 5 5 0 0 0-2.44-4.19c-.93-.58-2-.93-3.1-1.09V1.5A1.5 1.5 0 0 0 7.96 0Z`],name:`currency-14`},y={icon:[16,32,`M8.5 0A1.51 1.51 0 0 0 7 1.51v3.02A1.51 1.51 0 0 0 8.5 6.01a1.51 1.51 0 0 0 1.51-1.51V1.5A1.51 1.51 0 0 0 8.51.04Zm0 26A1.51 1.51 0 0 0 7 27.5v2.99A1.51 1.51 0 0 0 8.5 32a1.51 1.51 0 0 0 1.51-1.51v-3.02a1.51 1.51 0 0 0-1.5-1.51Zm0-22C4.72 4 .98 6 .98 10.01a6.69 6.69 0 0 0 2.46 5.3c1.43 1.12 3.1 1.62 4.57 2.1 1.51.5 2.87.99 3.7 1.63.83.64 1.29 1.32 1.29 2.95 0 1.28-.46 1.89-1.29 2.38-.87.49-2.19.75-3.59.64a8.58 8.58 0 0 1-3.78-1.2c-.94-.61-1.36-1.22-1.36-1.82a1.51 1.51 0 0 0-1.5-1.51A1.51 1.51 0 0 0 0 21.98c0 1.9 1.25 3.4 2.72 4.35 1.51.95 3.32 1.51 5.18 1.67a9.23 9.23 0 0 0 5.32-1.06 5.69 5.69 0 0 0 2.76-4.95c0-2.38-1.02-4.2-2.45-5.3-1.4-1.12-3.03-1.62-4.54-2.1-1.5-.5-2.87-.99-3.7-1.67-.83-.64-1.29-1.28-1.29-2.9 0-4.01 9-4.01 9 0a1.51 1.51 0 0 0 1.5 1.5 1.51 1.51 0 0 0 1.52-1.5c0-4.01-3.78-6.05-7.56-6.05z`],name:`currency`},b={icon:[21,24,`M7 0a1 1 0 0 0 0 2h2v2a1 1 0 0 0 0 .05A10.01 10.01 0 0 0 10 24a10 10 0 0 0 7.74-16.32l2.97-2.97a1 1 0 0 0 0-1.42A1 1 0 0 0 20 3a1 1 0 0 0-.7.3l-2.98 2.97A9.95 9.95 0 0 0 11 4.06 1 1 0 0 0 11 4V2h2a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-3zm3 6c4.43 0 8 3.57 8 8 0 4.44-3.57 8-8 8s-8-3.56-8-8c0-4.43 3.57-8 8-8zm0 2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1 1 1 0 0 0 1-1V9a1 1 0 0 0-1-1Z`],name:`duration-12`},ue={icon:[25,28,`M9 0a1 1 0 0 0 0 2h2v2.04C4.85 4.56 0 9.72 0 16c0 6.61 5.39 12 12 12a12.01 12.01 0 0 0 9.16-19.74l3.55-3.55a1 1 0 0 0 0-1.42A1 1 0 0 0 24 3a1 1 0 0 0-.71.3l-3.54 3.55A11.95 11.95 0 0 0 13 4.04V2h2a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-3zm3 6c5.54 0 10 4.46 10 10 0 5.53-4.46 10-10 10a9.99 9.99 0 1 1 0-20Zm0 3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1Z`],name:`duration-14`},x={icon:[28,32,`M11 0a1 1 0 0 0 0 2h2v2.04C5.75 4.55 0 10.6 0 18c0 7.72 6.28 14 14 14A14.02 14.02 0 0 0 24.58 8.83l3.13-3.12a1 1 0 0 0 0-1.41 1 1 0 0 0-1.42 0l-3.12 3.12A13.94 13.94 0 0 0 15 4.04V2h2a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-3zm3 6c6.64 0 12 5.36 12 12s-5.36 12-12 12a12 12 0 1 1 0-24Zm0 4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1z`],name:`duration`},de={icon:[24,24,`M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm0 2c3.28 0 6.19 1.58 8.04 4.04-.6.26-.38 1.13-.68 1.5-.38.5-.6.99-.76 1.52a3.1 3.1 0 0 0 0 1.43c.15.53.38 1.13.76 1.51.38.38.87.45 1.5.75.31.12.61.65.95.95a9.96 9.96 0 0 1-8.53 8.19c.04-.38.08-.76.2-1.02.22-.76.33-1.62.75-2.27.37-.6 1.1-1.1 1.43-1.43.38-.38.6-.38.76-.75a1.92 1.92 0 0 0 0-1.51 2.53 2.53 0 0 0-1.51-1.44c-.87-.38-2.76.38-3.66 0-.91-.38-.99-1.13-1.51-1.5-.5-.39-1.36-.12-1.44-.76-.11-.57 1.02-1.25 1.47-1.44.42-.19.46.27.76 0 .22-.26-.19-1.13 0-1.5.15-.38.45-.61.72-.72.26-.12.45.11.75 0 .26-.12.57-.38.75-.76.12-.37 0-1.1 0-1.47 0-.38.12-.07 0-.75-.15-.53-.83-1.82-1.28-2.57ZM2.42 9.17c.15.41.75 2.15 1.43 2.8.75.78 2.07 1.12 2.94 1.5.87.38 1.93.3 2.27.76.26.37 0 .22 0 .71v2.23c0 .49-.12.34 0 .75.07.38.45 1.1.71 1.44.27.38.53.26.76.75.15.38-.23 1.14-.19 1.74A9.96 9.96 0 0 1 2.42 9.13Z`],name:`spatial-12`},fe={icon:[28,28,`M13.98 0a14 14 0 1 0 .04 28 14 14 0 0 0 0-28zm0 2c4 0 7.54 1.92 9.7 4.9-.91.16-.6 1.36-.95 1.85a4.42 4.42 0 0 0-.87 1.74 3.66 3.66 0 0 0 0 1.74c.16.6.38 1.28.87 1.73.45.5 1.02.6 1.74.9.45.16.79.95 1.32 1.25a11.96 11.96 0 0 1-10.27 9.74c.08-.45.08-.98.23-1.4.27-.87.38-1.88.87-2.64.45-.72 1.32-1.28 1.73-1.73.46-.42.68-.38.87-.87a2.26 2.26 0 0 0 0-1.74 2.98 2.98 0 0 0-1.73-1.73c-1.06-.46-3.32.41-4.38 0-1.06-.46-1.13-1.32-1.74-1.78-.6-.41-1.62-.11-1.73-.87-.12-.71 1.2-1.5 1.73-1.73.53-.23.57.3.87 0 .3-.3-.19-1.28 0-1.74.19-.49.57-.75.87-.87.34-.15.57.12.87 0a1.62 1.62 0 0 0 .9-.9c.2-.45 0-1.28 0-1.74 0-.45.15-.11 0-.86A15.81 15.81 0 0 0 13.3 2h.72zm-1.66.11h-.23zm-.68.15zm-1.13.3-.16.04zm-.76.23a11.81 11.81 0 0 0-.56.27l-.23.07.23-.07a11.89 11.89 0 0 1 .56-.27Zm-1.4.6Zm-1.2.76Zm-.38.23Zm-1.06.94Zm-.3.3Zm-.3.3Zm18.57 1.02ZM4.2 7.06Zm-.41.71Zm20.56.12ZM3.3 8.64Zm21.5.08.08.19zm.46 1.05zm-22.64.5Zm.04.22s.83 2.57 1.77 3.47c.9.95 2.45 1.32 3.47 1.78 1.06.41 2.27.37 2.64.86.38.5 0 .3 0 .87v2.64c0 .57-.11.38 0 .87.12.45.57 1.32.87 1.74.3.41.64.26.87.86.23.5-.3 1.51-.15 2.23a11.96 11.96 0 0 1-9.62-15.1Zm22.94.38zm.26 1.17zm.12.98zm0 1.5zm0 .31zM15.4 25.89h-.22zm-.26 0zm-2.08 0 .23.03h-.23z`],name:`spatial-14`},S={icon:[32,32,`M16 0A16 16 0 0 0 0 16a16.01 16.01 0 0 0 16 16 16.02 16.02 0 0 0 16-16c0-8.83-7.18-16-16-16Zm0 2a13.98 13.98 0 0 1 11.43 5.9c-1.46-.08-.99 1.48-1.43 2.1-.5.68-.84 1.31-1 2a4.17 4.17 0 0 0 0 2c.16.69.47 1.47 1 2s1.17.66 2 1c.58.24 1.01 1.39 1.77 1.54A14 14 0 0 1 17.69 29.9c.12-.6.12-1.33.3-1.9.34-.99.48-2.14 1-2.99.53-.85 1.5-1.5 2-2s.79-.47 1-1a2.62 2.62 0 0 0 0-2 3.4 3.4 0 0 0-2-2c-1.2-.5-3.79.5-5 0-1.2-.5-1.3-1.5-2-2-.68-.5-1.86-.17-2-1-.13-.83 1.42-1.76 2-2 .6-.24.65.35 1 0 .36-.35-.21-1.48 0-2a1.85 1.85 0 0 1 1-1c.38-.15.63.15 1 0a1.85 1.85 0 0 0 1-1c.23-.53 0-1.5 0-2s.21-.11 0-1c-.2-.88-1.39-3.14-1.97-3.97.32-.02.64-.03.97-.03zM3 12s.95 2.94 2 4c1.05 1.05 2.82 1.5 4 2 1.17.48 2.6.43 3 1 .4.56 0 .33 0 1v3c0 .66-.13.47 0 1 .12.52.64 1.5 1 2 .36.49.72.32 1 1 .26.63-.5 1.99-.1 2.84A13.98 13.98 0 0 1 2 16c0-1.17.15-2.32.42-3.42.27-.08.58-.57.58-.57z`],name:`spatial`},pe={icon:[32,24,`M14.03 1a2.57 2.57 0 0 0-2.55 2.55v2.56c0 1.4 1.15 2.54 2.55 2.54h.32v1.92H4.78c-.27 0-.49 0-.74.05s-.58.18-.82.45c-.24.28-.3.6-.33.8-.03.23-.02.42-.02.6v.96a.96.96 0 1 0 1.91 0v-.95h9.57v.95c.03 1.25 1.88 1.25 1.91 0v-.95h9.57v.95a.96.96 0 1 0 1.9 0v-.95c0-.2 0-.38-.02-.6a1.41 1.41 0 0 0-.32-.8c-.23-.28-.57-.41-.82-.46a3.86 3.86 0 0 0-.74-.05h-9.57V8.65h.32c1.4 0 2.55-1.15 2.55-2.54V3.55c0-1.4-1.15-2.55-2.55-2.55Zm0 1.91h2.55c.37 0 .64.27.64.64v2.56c0 .36-.27.63-.64.63h-2.55a.61.61 0 0 1-.64-.63V3.55c0-.37.27-.64.64-.64zM2.53 15.35A2.62 2.62 0 0 0 0 17.95v2.46A2.61 2.61 0 0 0 2.6 23h2.46a2.61 2.61 0 0 0 2.6-2.58v-2.46a2.61 2.61 0 0 0-2.59-2.61Zm11.48 0a2.61 2.61 0 0 0-2.53 2.6v2.46A2.61 2.61 0 0 0 14.07 23h2.47a2.6 2.6 0 0 0 2.58-2.6v-2.45a2.61 2.61 0 0 0-2.57-2.6zm11.48 0a2.62 2.62 0 0 0-2.53 2.6v2.46A2.61 2.61 0 0 0 25.54 23H28a2.61 2.61 0 0 0 2.6-2.58v-2.46a2.61 2.61 0 0 0-2.6-2.61ZM2.6 17.26h2.46c.38 0 .68.29.68.69v2.46a.67.67 0 0 1-.68.68H2.6a.67.67 0 0 1-.69-.67v-2.46c0-.4.29-.69.7-.69zm11.48 0h2.46c.39 0 .67.29.67.69v2.46c0 .38-.28.68-.67.68h-2.48a.65.65 0 0 1-.67-.68v-2.46c0-.4.28-.69.67-.69zm11.48 0H28c.4 0 .69.29.69.69v2.46a.67.67 0 0 1-.7.68h-2.45a.67.67 0 0 1-.68-.68v-2.46c0-.4.29-.69.68-.69z`],name:`hierarchy-12`},me={icon:[34,28,`M15 1a3.02 3.02 0 0 0-3.02 3.02v3.03A3.02 3.02 0 0 0 15 10.03H16V12H6.05l-.68.03a1.47 1.47 0 0 0-.91.38 1.44 1.44 0 0 0-.38.91l-.04.68v2a.98.98 0 0 0 .99 1.02A.98.98 0 0 0 6.05 16v-2h9.97v2a1 1 0 0 0 2 0v-2h10.02v2a.98.98 0 0 0 .98 1.02.98.98 0 0 0 1.02-1.02v-2.68a1.44 1.44 0 0 0-.41-.87 1.44 1.44 0 0 0-.9-.38c-.24-.07-.46-.07-.69-.07H18v-1.97H19a3.02 3.02 0 0 0 2.98-3.02V3.99A3.02 3.02 0 0 0 18.97 1Zm0 2h4c.58 0 1 .46 1 1.02v3.03c0 .53-.42.98-1 .98h-4A.98.98 0 0 1 13.98 7V3.99A1 1 0 0 1 15 3zM3 18A3.02 3.02 0 0 0 0 21.04v3.02A3 3 0 0 0 3.02 27H7a3.02 3.02 0 0 0 3.02-2.99V21A3.02 3.02 0 0 0 7 18.01ZM15 18a3.02 3.02 0 0 0-3.02 3.03v3.02A3 3 0 0 0 15 27h4a3.02 3.02 0 0 0 3-2.99V21a3.02 3.02 0 0 0-3.03-2.98Zm11.98 0a3.02 3.02 0 0 0-3.02 3.03v3.02c0 1.63 1.4 2.95 3.02 2.95h4a3.02 3.02 0 0 0 3.03-2.99V21A3.02 3.02 0 0 0 31 18.01ZM2.95 20.06h4.04a1 1 0 0 1 1.02 1.02v3.02c0 .53-.45.94-1.02.94H3.02a.98.98 0 0 1-.98-.98v-3.02c0-.53.38-.95.95-.98zm11.98 0H19c.57 0 .98.41.98 1.02v3.02c0 .53-.41.94-.98.94h-4a.98.98 0 0 1-1.03-.98v-3.02a1 1 0 0 1 .95-.98zm12.01 0H31A1 1 0 0 1 32 21.07v3.02c0 .53-.45.94-1.02.94h-4a.98.98 0 0 1-.99-.98v-3.02c0-.53.38-.95.94-.98Z`],name:`hierarchy-14`},C={icon:[40,32,`M17 1c-1.64 0-3 1.36-3 3v4a3 3 0 0 0 3 3h2v3H8c-.83 0-1.55.39-2.08.92A2.95 2.95 0 0 0 5 17v2a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-2c0-.17.11-.45.33-.67.22-.22.5-.33.67-.33h11v3a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-3h11c.17 0 .45.11.66.33.22.22.34.5.34.67v2a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-2c0-.83-.39-1.55-.92-2.08A2.95 2.95 0 0 0 32 14H21v-3h2a3 3 0 0 0 3-3V4c0-1.64-1.35-3-3-3Zm0 2h6c.57 0 1 .43 1 1v4c0 .57-.43 1-1 1h-6c-.57 0-1-.43-1-1V4c0-.57.43-1 1-1ZM3 21a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h6c1.64 0 3-1.36 3-3v-4c0-1.65-1.36-3-3-3zm14 0a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3v-4a3 3 0 0 0-3-3zm14 0a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h6c1.64 0 3-1.36 3-3v-4c0-1.65-1.36-3-3-3zM3 23h6c.57 0 1 .43 1 1v4c0 .57-.43 1-1 1H3c-.58 0-1-.43-1-1v-4c0-.57.42-1 1-1zm14 0h6c.57 0 1 .43 1 1v4c0 .57-.43 1-1 1h-6c-.57 0-1-.43-1-1v-4c0-.57.43-1 1-1zm14 0h6c.57 0 1 .43 1 1v4c0 .57-.43 1-1 1h-6c-.58 0-1-.43-1-1v-4c0-.57.42-1 1-1z`],name:`hierarchy`},he={icon:[28,24,`M3.9 1A3.9 3.9 0 0 0 0 4.86v14.28A3.9 3.9 0 0 0 3.9 23h20.2a3.9 3.9 0 0 0 3.9-3.86V4.86A3.9 3.9 0 0 0 24.1 1Zm0 2h20.2c1.08 0 1.9.82 1.9 1.86v10.43h-3.78l-3.37-2.01a1 1 0 0 0-.51-.14h-2.37L13.38 9.3a1 1 0 0 0-1.42-.24l-1.93 1.43-2.36-4.66a1 1 0 0 0-1.72-.1L2 11.58V4.86C2 3.82 2.82 3 3.9 3ZM22 5a2 2 0 0 0-2 2 2 2 0 0 0 2 2 2 2 0 0 0 2-2 2 2 0 0 0-2-2ZM6.65 8.26l2.13 4.2a1 1 0 0 0 1.48.34l2.05-1.52 2.3 3.43a1 1 0 0 0 .83.43h2.62l3.38 2a1 1 0 0 0 .5.15H26v1.85c0 1.04-.82 1.86-1.9 1.86H3.9C2.81 21 2 20.18 2 19.14v-3.98z`],name:`image-12`},ge={icon:[33,28,`M4.44 1A4.45 4.45 0 0 0 0 5.43v17.14C0 25.01 2 27 4.44 27h24.12A4.45 4.45 0 0 0 33 22.57V5.43C33 2.99 31 1 28.56 1Zm0 2h24.12A2.41 2.41 0 0 1 31 5.43v12.72h-4.75l-4.07-2.43a1 1 0 0 0-.51-.14h-2.91l-3.15-4.7a1 1 0 0 0-1.43-.25L11.7 12.5l-2.9-5.8a1 1 0 0 0-1.73-.1L2 14.14V5.43A2.41 2.41 0 0 1 4.44 3zm20.68 2.29a3.6 3.6 0 0 0-3.6 3.57 3.6 3.6 0 0 0 7.18 0 3.6 3.6 0 0 0-3.58-3.57zm0 2c.88 0 1.58.69 1.58 1.57 0 .88-.7 1.58-1.58 1.58-.9 0-1.6-.7-1.6-1.58 0-.88.7-1.58 1.6-1.58zM7.77 9.11l2.67 5.33a1 1 0 0 0 1.49.35l2.6-1.94 2.86 4.26a1 1 0 0 0 .84.45h3.16L25.46 20a1 1 0 0 0 .51.14H31v2.43A2.41 2.41 0 0 1 28.56 25H4.44A2.41 2.41 0 0 1 2 22.57v-4.84z`],name:`image-14`},w={icon:[38,32,`M5 1C2.25 1 0 3.25 0 6v20a5 5 0 0 0 5 5h28c2.75 0 5-2.25 5-5V6c0-2.75-2.25-5-5-5Zm0 2h28c1.68 0 3 1.33 3 3v15h-5.72l-4.77-2.85a1 1 0 0 0-.5-.15h-3.48l-3.7-5.55a1 1 0 0 0-1.43-.24l-3.05 2.28L9.9 7.55a1 1 0 0 0-1.73-.1L2 16.7V6c0-1.67 1.32-3 3-3Zm23.9 3a4.02 4.02 0 0 0-3.9 4c0 2.2 1.8 4 4 4a4.01 4.01 0 0 0 0-8h-.1zm.1 2c1.12 0 2 .89 2 2 0 1.12-.88 2-2 2-1.11 0-2-.88-2-2 0-1.11.89-2 2-2zM8.88 10l3.23 6.45a1 1 0 0 0 1.49.35l3.15-2.36 3.42 5.12A1 1 0 0 0 21 20h3.72l4.76 2.86A1 1 0 0 0 30 23h6v3c0 1.67-1.32 3-3 3H5c-1.68 0-3-1.33-3-3v-5.7z`],name:`image`},T={icon:[24,24,`M12 0C5.4 0 0 5.39 0 12A12 12 0 1 0 12 0Zm0 2c5.54 0 10 4.47 10 10 0 5.54-4.46 10-10 10a10 10 0 1 1 0-20zm0 7a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z`],name:`numeric-12`},E={icon:[28,28,`M14 0C6.28 0 0 6.28 0 14s6.28 14 14 14a14 14 0 0 0 0-28Zm0 2c6.64 0 12 5.36 12 12s-5.36 12-12 12S2 20.64 2 14A12 12 0 0 1 14 2Zm0 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z`],name:`numeric-14`},D={icon:[32,32,`M19 16a3 3 0 0 1-3 3 3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3zM16 0a16 16 0 0 0 0 32c8.82 0 16-7.18 16-16 0-8.83-7.18-16-16-16Zm0 2A14 14 0 1 1 2 16C2 8.25 8.25 2 16 2z`],name:`numeric`},O={icon:[26,24,`M18 .85c-2.7 0-5.4.82-7.6 2.47a1 1 0 0 0-.2 1.4 1 1 0 0 0 1.4.2 11.04 11.04 0 0 1 12.8 0 1 1 0 0 0 1.4-.2 1 1 0 0 0-.2-1.4A12.78 12.78 0 0 0 18 .85zm0 3.79c-1.71 0-3.46.56-4.7 1.76a1 1 0 0 0-.02 1.42 1 1 0 0 0 1.42.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-2.4 1.03-3.98 3-4V0zm7.92 0a1 1 0 0 0 0 2h2v2a1 1 0 0 0 0 .05 10.01 10.01 0 0 0 1 19.95 10 10 0 0 0 7.74-16.32l2.97-2.97a1 1 0 0 0 0-1.42 1 1 0 0 0-.71-.29 1 1 0 0 0-.7.3l-2.98 2.97a9.95 9.95 0 0 0-5.32-2.2 1 1 0 0 0 0-.07V2h2a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-6zM28 0v2h3v16c0 2.21-1 3.98-3 4v2c3.62-.03 4.96-3 5-6V0h-5zM15.92 6c4.43 0 8 3.57 8 8 0 4.44-3.57 8-8 8s-8-3.56-8-8c0-4.43 3.57-8 8-8zm0 2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1 1 1 0 0 0 1-1V9a1 1 0 0 0-1-1z`],name:`array-duration-12`},ye={icon:[38,28,`M5 0C1.99.03.01 2.29 0 6v22h5v-2H2V6c0-2.4 1.03-3.98 3-4V0zm10 0a1 1 0 0 0 0 2h2v2.04C10.85 4.56 6 9.72 6 16c0 6.61 5.39 12 12 12a12.01 12.01 0 0 0 9.16-19.74l3.55-3.55a1 1 0 0 0 0-1.42A1 1 0 0 0 30 3a1 1 0 0 0-.71.3l-3.54 3.55A11.95 11.95 0 0 0 19 4.04V2h2a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-6zm18 0v2h3v20c0 2.21-1 3.98-3 4v2c3.62-.03 4.96-3 5-6V0h-5zM18 6c5.54 0 10 4.46 10 10 0 5.53-4.46 10-10 10a10 10 0 0 1 0-20zm0 3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1z`],name:`array-duration-14`},z={icon:[44,32,`M6 0C3 0 0 2.3 0 6v26h6v-2H2V6c0-2.4 2-4 4-4V0zm13 0a1 1 0 0 0 0 2h2v2.04A14 14 0 0 0 22 32 14.02 14.02 0 0 0 32.58 8.83l3.13-3.12a1 1 0 0 0 0-1.4 1 1 0 0 0-1.42 0l-3.12 3.11A13.94 13.94 0 0 0 23 4.04V2h2a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-6zm19 0v2h4v24c0 2.2-2 4-4 4v2c3.6 0 6-3 6-6V0h-6zM22 6c6.64 0 12 5.36 12 12s-5.36 12-12 12a12 12 0 0 1 0-24zm0 4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1z`],name:`array-duration`},B={icon:[33,24,`M5 0C2 0 0 2.3 0 6v18h5v-2H2V6c0-2.4 1-4 3-4V0zm11.5 0a12 12 0 0 0-12 12 12 12 0 1 0 12-12zM28 0v2h3v16c0 2.2-1 4-3 4v2c3.6 0 5-3 5-6V0h-5zM16.5 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 7a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z`],name:`array-numeric-12`},be={icon:[38,28,`M5 0C2 0 0 2.3 0 6v22h5v-2H2V6c0-2.4 1-4 3-4V0zm14 0a14 14 0 0 0 0 28 14 14 0 0 0 0-28zm14 0v2h3v20c0 2.2-1 4-3 4v2c3.6 0 5-3 5-6V0h-5zM19 2A12 12 0 1 1 7 14 12 12 0 0 1 19 2zm0 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z`],name:`array-numeric-14`},V={icon:[44,32,`M6 0a6 6 0 0 0-6 6v26h6v-2H2V6c0-2.4 2-4 4-4V0zm16 0a16 16 0 0 0 0 32 16 16 0 0 0 0-32zm16 0v2h4v24c0 2.2-2 4-4 4v2c3.6 0 6-3 6-6V0h-6zM22 2A14 14 0 1 1 8 16 14 14 0 0 1 22 2zm0 11a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z`],name:`array-numeric`},H={icon:[32,32,`M7.3 9 6.2 10v.5H9L7.3 21.2c-1 5.7-1.6 7.1-1.9 7.6-.3.5-.7.8-1.3.8-.6 0-1.7-.5-2.3-1-.2-.2-.5-.1-.7 0-.6.5-1.1 1.2-1.1 1.8 0 .9 1.1 1.6 2.2 1.6 1 0 2.4-.6 3.8-2 2-1.9 3.6-4.5 4.8-10.2.9-3.6 1.2-5.9 1.8-9.2l3.4-.3.8-1.3h-3.9c1-6.3 1.8-7.2 2.8-7.2.6 0 1.3.5 2.2 1.5.2.3.6.3.9 0 .5-.3 1-1 1.1-1.7C20 1 19.1 0 17.6 0c-1.4 0-3.5 1-5.3 2.7a12.4 12.4 0 0 0-3 6.3ZM18.2 13c1-1.4 1.7-1.9 2-1.9.4 0 .6.4 1.2 2.2l1 3.2c-2 3-3.3 4.5-4.2 4.5-.3 0-.5 0-.7-.2l-.7-.4c-.7 0-1.6.8-1.6 1.9 0 1 .8 1.8 1.8 1.8 1.7 0 3.1-1.6 5.9-6l.8 2.7c.7 2.3 1.5 3.3 2.5 3.3 1.3 0 3-1 4.9-4l-.8-.8c-1.1 1.3-1.9 2-2.3 2-.5 0-1-.8-1.5-2.6l-1.2-3.9 2-2.5c.8-.9 1.3-1.2 1.7-1.2.3 0 .6.1.8.3.2.3.3.4.6.4.6 0 1.6-.8 1.6-1.8s-.6-1.8-1.6-1.8c-1.5 0-3 1.4-5.6 5.3l-.5-1.7C23.5 9.5 23 8.3 22 8.3c-1.3 0-3 1.5-4.6 4z`],name:`formula`},U=[{level:1,key:`year`,i18n:()=>t(`Year`,{desc:`Time unit`})},{level:2,key:`quarter`,i18n:()=>t(`Quarter`,{desc:`Time unit`})},{level:3,key:`month`,i18n:()=>t(`Month`,{desc:`Time unit`})},{level:4,key:`week`,i18n:()=>t(`Week`,{desc:`Time unit`})},{level:5,key:`day`,i18n:()=>t(`Day`,{desc:`Date format option`})},{level:6,key:`hour`,i18n:()=>t(`Hour`,{desc:`Time unit`})},{level:7,key:`minute`,i18n:()=>t(`Minute`,{desc:`Time unit`})},{level:8,key:`second`,i18n:()=>t(`Second`,{desc:`Time unit`})},{level:9,key:`millisecond`,i18n:()=>t(`Millisecond`,{desc:`Date format option`})}],xe={level2:[{key:`default`,label:`Default`,i18n:()=>t(`Default`,{desc:`Date format option`})},{key:`quarter_number`,label:`Quarter number`,i18n:()=>t(`Quarter number`,{desc:`Date format option`})}],level3:[{key:`default`,label:`Default`,i18n:()=>t(`Default`,{desc:`Date format option`})},{key:`month_in_year`,label:`Month in year`,i18n:()=>t(`Month in year`,{desc:`Date format option`})}],level4:[{key:`default`,label:`Default`,i18n:()=>t(`Default`,{desc:`Date format option`})},{key:`week_number`,label:`Week number`,i18n:()=>t(`Week number`,{desc:`Date format option`})}],level5:[{key:`default`,label:`Default`,i18n:()=>t(`Default`,{desc:`Date format option`})},{key:`day_in_week`,label:`Day in week`,i18n:()=>t(`Day in week`,{desc:`Date format option`})},{key:`day_in_month`,label:`Day in month`,i18n:()=>t(`Day in month`,{desc:`Date format option`})},{key:`day_in_year`,label:`Day in year`,i18n:()=>t(`Day in year`,{desc:`Date format option`})}],level6:[{key:`default`,label:`Default`,i18n:()=>t(`Default`,{desc:`Date format option`})},{key:`hour_in_day`,label:`Hour in day`,i18n:()=>t(`Hour in day`,{desc:`Date format option`})}],level7:[{key:`default`,label:`Default`,i18n:()=>t(`Default`,{desc:`Date format option`})},{key:`minute_in_hour`,label:`Minute in hour`,i18n:()=>t(`Minute in hour`,{desc:`Date format option`})}],level8:[{key:`default`,label:`Default`,i18n:()=>t(`Default`,{desc:`Date format option`})},{key:`second_in_minute`,label:`Second in minute`,i18n:()=>t(`Second in minute`,{desc:`Date format option`})}]},Se={number:()=>t(`Number`,{desc:`Number format option`}),letter:()=>t(`Letter`,{desc:`Letter format option. Letter of the alphabeth.`}),short:()=>t(`Short`,{desc:`Short format option`}),long:()=>t(`Long`,{desc:`Long format option`})},Ce={sunday:()=>t(`Sunday`,{desc:`Date format option`}),monday:()=>t(`Monday`,{desc:`Date format option`})},W={"array[hierarchy]":{s:j,m:M,l:N,xl:N},"array[datetime]":{s:P,m:F,l:I,xl:I},"array[numeric]":{s:B,m:be,l:V,xl:V},"array[currency]":{s:L,m:_e,l:R,xl:R},"array[duration]":{s:ve,m:ye,l:z,xl:z},coordinates:{s:ce,m:le,l:g,xl:g},currency:{s:_,m:v,l:y,xl:y},date:{s:ae,m:oe,l:p,xl:p},datetime:{s:h,m:se,l:m,xl:m},derived:{s:u,m:ie,l:f,xl:f},duration:{s:b,m:ue,l:x,xl:x},hierarchy:{s:pe,m:me,l:C,xl:C},image:{s:he,m:ge,l:w,xl:w},numeric:{s:T,m:E,l:D,xl:D},spatial:{s:de,m:fe,l:S,xl:S},topography:{s:l,m:l,l,xl:l},ipaddress:{s:O,m:k,l:A,xl:A},formula:{s:H,m:H,l:H,xl:H}},we={xxs:`s`,xs:`s`,s:`s`,m:`m`,l:`l`,xl:`xl`,xxl:`xl`},G=e=>e?we[e]:`m`,K=(e,t=`m`)=>{let n=G(t);return e?.type===`array[hierarchy]`?W[`array[hierarchy]`][n]:e?.type===`array[datetime]`?W[`array[datetime]`][n]:e?.type===`array[numeric]`?e?.subtype===`currency`?W[`array[currency]`][n]:e?.subtype===`duration`?W[`array[duration]`][n]:W[`array[numeric]`][n]:e?.type===`spatial`?e?.subtype===`topography`?W.topography[n]:W.coordinates[n]:e?.type===`numeric`?e?.subtype===`currency`?W.currency[n]:e?.subtype===`duration`?W.duration[n]:W.numeric[n]:e?.type===`datetime`?e?.lowestLevel&&e?.lowestLevel>5&&e?.lowestLevel<=9?W.datetime[n]:e?.lowestLevel&&e?.lowestLevel>1&&e?.lowestLevel<=5?W.date[n]:W.datetime[n]:e?.type===`hierarchy`&&e?.subtype===`ip_address`?W.ipaddress[n]:e?.type===`hierarchy`&&e?.subtype===`hierarchy_element_expression`?W.image[n]:W.hierarchy[n]},Te=(e,t=`m`)=>{if(!e)return;let n=G(t),r=typeof e.expression==`string`?e.expression.trim().length>0:e.expression!=null;if(e.formulaId!=null||typeof e.formula==`string`&&e.formula.length>0)return W.formula[n];if(e.formulaId==null&&e.columnId!=null&&r)return W.derived[n]},q=e=>!!(e&&Object.keys(e).length>0),J=(e,t,n={})=>{if(t.hidden===!0&&!n.includeHidden||!t.id||!t.type)return null;let r=q(t.name)?t.name:{en:`Untitled`},i={datasetId:e,columnId:t.id,type:t.type,name:r};return t.description&&q(t.description)&&(i.description=t.description),t.subtype&&(i.subtype=t.subtype),t.format&&(i.format=t.format),typeof t.lowestLevel==`number`&&(i.lowestLevel=t.lowestLevel),typeof t.highestLevel==`number`&&(i.highestLevel=t.highestLevel),typeof t.hierarchy_enabled==`boolean`&&(i.hierarchy_enabled=t.hierarchy_enabled),t.expression&&(i.expression=t.expression),Array.isArray(t.duration_levels)&&t.duration_levels.length>0&&(i.duration_levels=[...t.duration_levels]),t.duration_format&&(i.duration_format=t.duration_format),Array.isArray(t.hierarchyLevels)&&t.hierarchyLevels.length>0&&(i.hierarchyLevels=t.hierarchyLevels.map(({id:e,level:t,name:n})=>({id:e,level:t,name:n}))),t.currency?.id&&t.currency.symbol&&(i.currency={id:t.currency.id,name:t.currency.name,symbol:t.currency.symbol}),i},Y=(e,t,n={})=>{if(t.hidden===!0&&!n.includeHidden||!t.id||!t.type)return null;let r=q(t.name)?t.name:{en:`Untitled`},i={datasetId:e,formulaId:t.id,type:t.type,name:r};return t.description&&q(t.description)&&(i.description=t.description),t.subtype&&(i.subtype=t.subtype),t.format&&(i.format=t.format),typeof t.lowestLevel==`number`&&(i.lowestLevel=t.lowestLevel),t.expression&&(i.expression=t.expression),Array.isArray(t.duration_levels)&&t.duration_levels.length>0&&(i.duration_levels=[...t.duration_levels]),t.duration_format&&(i.duration_format=t.duration_format),t.currency?.id&&t.currency.symbol&&(i.currency={id:t.currency.id,name:t.currency.name,symbol:t.currency.symbol}),i},Ee=(e,t={})=>{if(!e?.id)return[];let n=[];return Array.isArray(e.columns)&&e.columns.forEach(r=>{let i=J(e.id,r,t);i&&n.push(i)}),Array.isArray(e.formulas)&&e.formulas.forEach(r=>{let i=Y(e.id,r,t);i&&n.push(i)}),n},De=(e,t={})=>e.map(e=>({id:e.id,name:e.name,description:e.description,dataFields:Ee(e,t)})),Oe=`:host{font-family:var(--luzmo-font-family)}luzmo-select{--luzmo-option-icon-width:var(--data-fields-select-option-icon-width);width:100%}:host{--data-fields-select-option-icon-width:calc(var(--luzmo-font-size) * 1.4)}:host([size=xxs]),:host([size=xs]),:host([size=s]){--data-fields-select-option-icon-width:calc(var(--luzmo-font-size-s) * 1.4)}:host([size=l]){--data-fields-select-option-icon-width:calc(var(--luzmo-font-size-l) * 1.4)}:host([size=xl]),:host([size=xxl]){--data-fields-select-option-icon-width:calc(var(--luzmo-font-size-xl) * 1.4)}`,X=`::level::`,Z=(e,t)=>`${e}${X}${t}`,Q=e=>{let t=e.indexOf(X);return t===-1?null:{columnId:e.slice(0,t),level:Number(e.slice(t+9))}},$=class extends n(re(ne,{validSizes:Object.values(te)})){constructor(...e){super(...e),this.contentLanguage=`en`,this.icons=`menu-only`,this.levels=`on`,this.allowEmpty=!1,this.selects=`single`,this.value=[],this.retrieving=!1,this.invalid=!1,this.clearable=!1,this.pending=!1,this.disabled=!1,this.readonly=!1,this.quiet=!1,this.search=`auto`,this.placement=`bottom-start`,this.datasetsDataFields=[],this._dataFieldsSelected=[],this._lastEmittedValue=`[]`,this._pendingAutoSelectEvent=!1}static get styles(){return[ee(Oe)]}_isAdHocFormula(e){return`formula`in e&&typeof e.formula==`string`}_sendChangeEvent(){let e=JSON.stringify(this.value);e!==this._lastEmittedValue&&(this._lastEmittedValue=e,this.dispatchEvent(new CustomEvent(`luzmo-data-fields-selected`,{bubbles:!0,composed:!0,cancelable:!0,detail:{dataFields:this._dataFieldsSelected}})))}_toDataFieldData(e,t,n=!1){return n?Y(t,e,{includeHidden:!0}):J(t,e,{includeHidden:!0})}_toAdHocFormulaFieldData(e,t){return{datasetId:t,formula:e.formula,type:e.type,name:e.label??{en:`Ad-hoc formula`},subtype:e.subtype??void 0,format:e.format}}_findFormulaMatch(e,t,n){for(let r of e)if(this._isAdHocFormula(r)){if(r.formula===t)return this._toAdHocFormulaFieldData(r,n)}else if(r.id===t)return this._toDataFieldData(r,n,!0);return null}_resolveDataFieldFromValue(e,t){let n=Q(e),r=n?n.columnId:e;for(let i of t){let t=i.columns??[],a=i.formulas??[],o=t.find(e=>e.id===r);if(o){let e=this._toDataFieldData(o,i.id,!1);if(e&&n&&(e.level=n.level,this._isExpandableHierarchy(o))){let t=o.hierarchyLevels?.find(e=>e.level===n.level);t&&(e.name=t.name)}return e}let s=this._findFormulaMatch(a,e,i.id);if(s)return s}return null}setDataField(e){if(this.disabled||this.readonly)return;let t=e?.detail?.value??[];this._dataFieldsSelected=[];for(let e of t){let t=this._resolveDataFieldFromValue(e,this.datasetsDataFields);t&&this._dataFieldsSelected.push(t)}this.value=t,this._sendChangeEvent()}_normalizeValueForLevels(e){if(this.levels!==`off`)return e;let t=[];for(let n of e){let e=Q(n)?.columnId??n;t.includes(e)||t.push(e)}return t}_findDataFieldsInDatasetsDataFields(e){this._dataFieldsSelected=[];for(let t of e){let e=this._resolveDataFieldFromValue(t,this.datasetsDataFields);e&&this._dataFieldsSelected.push(e)}}_getAutoSelectValue(){for(let e of this.datasetsDataFields){if(e?.columns?.length>0){let t=e.columns[0];return this._isExpandableDatetime(t)?this._buildDatetimeChildren(t)[0]?.value??null:this._isExpandableHierarchy(t)?this._buildHierarchyChildren(t)[0]?.value??null:t.id}for(let t of e?.formulas??[])if(!this._isAdHocFormula(t))return t.id}return null}_autoSelectInitialDataField(){if(this.readonly||this.value.length>0||this.allowEmpty||this.retrieving)return;let e=this._getAutoSelectValue();e&&this._resolveDataFieldFromValue(e,this.datasetsDataFields)&&(this._pendingAutoSelectEvent=!0,this.value=[e])}willUpdate(e){if(super.willUpdate(e),(e.has(`value`)||e.has(`datasetsDataFields`)||e.has(`allowEmpty`)||e.has(`retrieving`)||e.has(`levels`)||e.has(`readonly`))&&this._autoSelectInitialDataField(),e.has(`value`)||e.has(`datasetsDataFields`)||e.has(`levels`)){if(e.has(`levels`)&&this.levels===`off`){let e=this._normalizeValueForLevels(this.value);JSON.stringify(e)!==JSON.stringify(this.value)&&(this._pendingAutoSelectEvent=!0,this.value=e)}this._findDataFieldsInDatasetsDataFields(this.value)}}updated(e){super.updated(e),this._pendingAutoSelectEvent&&e.has(`value`)&&this._dataFieldsSelected.length>0?(this._pendingAutoSelectEvent=!1,this._sendChangeEvent()):e.has(`value`)&&(this._lastEmittedValue=JSON.stringify(this.value))}_buildDatetimeChildren(e){let t=[],n=Math.min(Math.max(e.lowestLevel??1,1),U.length),r=Math.min(Math.max(e.highestLevel??1,1),U.length);for(let i=r;i<=n;i++)t.push({value:Z(e.id,i),label:U[i-1]?.i18n()??``});return t}_buildHierarchyChildren(e){let t=[],n=e.hierarchyLevels??[];for(let r of n)r.level<1||t.push({value:Z(e.id,r.level),label:o(r.name??{},this.contentLanguage)??``});return t}_isExpandableDatetime(e){let t=e.type;return this.levels!==`off`&&(t===`datetime`||t===`array[datetime]`)&&typeof e.lowestLevel==`number`}_isExpandableHierarchy(e){return this.levels!==`off`&&Array.isArray(e.hierarchyLevels)&&e.hierarchyLevels.length>2&&e.hierarchy_enabled===!0}focus(e){this.shadowRoot?.querySelector(`luzmo-select`)?.focus(e)}render(){let e=[],n=this.icons!==`none`;for(let r of this.datasetsDataFields??[]){let i=r?.columns??[],a=r?.formulas??[];for(let t of i){let r={value:t.id,label:o(t?.name??{},this.contentLanguage)??``};n&&(r.icon=K(t,this.size)),this._isExpandableDatetime(t)?r.children=this._buildDatetimeChildren(t):this._isExpandableHierarchy(t)&&(r.children=this._buildHierarchyChildren(t)),e.push(r)}for(let r of a)if(this._isAdHocFormula(r)){let i=r.label?o(r.label,this.contentLanguage):t(`Ad-hoc formula`),a={value:r.formula,label:i??t(`Ad-hoc formula`)};n&&(a.icon=H),e.push(a)}else{let t={value:r.id,label:o(r?.name??{},this.contentLanguage)??``};n&&(t.icon=K(r,this.size)),e.push(t)}}let r=t(`Select...`),i=this.pending?``:this.label||this.placeholder||r,a=this.pending||this.value.length===0?[]:this.value,c=this.icons===`none`||this.icons===`menu-only`?`none`:void 0;return s`<luzmo-select
|
|
3
|
-
id="data-fields"
|
|
4
|
-
.size=${this.size}
|
|
5
|
-
.label=${i}
|
|
6
|
-
.pendingLabel=${this.label||this.placeholder||r}
|
|
7
|
-
.retrieving=${this.retrieving}
|
|
8
|
-
.icons=${c}
|
|
9
|
-
.selects=${this.selects}
|
|
10
|
-
.variant=${this.selects===`multiple`?`checkmarks`:`highlight`}
|
|
11
|
-
.placement=${this.placement}
|
|
12
|
-
.search=${this.search}
|
|
13
|
-
?emphasized=${!this.quiet}
|
|
14
|
-
.quiet=${this.quiet}
|
|
15
|
-
no-wrap
|
|
16
|
-
?invalid=${this.invalid}
|
|
17
|
-
?clearable=${this.clearable&&this.allowEmpty}
|
|
18
|
-
?pending=${this.pending}
|
|
19
|
-
?disabled=${this.disabled}
|
|
20
|
-
.readonly=${this.readonly}
|
|
21
|
-
.options=${e}
|
|
22
|
-
.value=${a}
|
|
23
|
-
@change=${this.setDataField}
|
|
24
|
-
>
|
|
25
|
-
</luzmo-select>`}};e([c({type:String,attribute:`content-language`,reflect:!0})],$.prototype,`contentLanguage`,void 0),e([c({type:String,reflect:!0})],$.prototype,`label`,void 0),e([c({type:String,reflect:!0})],$.prototype,`icons`,void 0),e([c({type:String,reflect:!0})],$.prototype,`levels`,void 0),e([c({type:Boolean,attribute:`allow-empty`,reflect:!0})],$.prototype,`allowEmpty`,void 0),e([c({type:String,attribute:`placeholder`,reflect:!0})],$.prototype,`placeholder`,void 0),e([c({type:String,reflect:!0})],$.prototype,`selects`,void 0),e([c({type:Array,reflect:!0})],$.prototype,`value`,void 0),e([c({type:Boolean,attribute:`retrieving`,reflect:!0})],$.prototype,`retrieving`,void 0),e([c({type:Boolean,attribute:`invalid`,reflect:!0})],$.prototype,`invalid`,void 0),e([c({type:Boolean,attribute:`clearable`,reflect:!0})],$.prototype,`clearable`,void 0),e([c({type:Boolean,attribute:`pending`,reflect:!0})],$.prototype,`pending`,void 0),e([c({type:Boolean,attribute:`disabled`,reflect:!0})],$.prototype,`disabled`,void 0),e([c({type:Boolean,reflect:!0})],$.prototype,`readonly`,void 0),e([c({type:Boolean,reflect:!0})],$.prototype,`quiet`,void 0),e([c({type:String,attribute:`search`,reflect:!0})],$.prototype,`search`,void 0),e([c({type:String,reflect:!0})],$.prototype,`placement`,void 0),e([c({type:Array,reflect:!1})],$.prototype,`datasetsDataFields`,void 0),$=e([r()],$),customElements.get(`luzmo-data-fields-select`)||customElements.define(`luzmo-data-fields-select`,$);var ke=async(e,t)=>{if(!Array.isArray(e)||e.length===0)throw Error(`At least one dataset ID is required`);let{valid:n,invalid:r}=a(e);if(r.length>0&&console.warn(`[loadDataFieldsForDatasets] 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.`);let{dataBrokerConfig:o}=t;if(!o)throw Error(`dataBrokerConfig is required`);o.authKey&&o.authToken||console.warn(`Both authKey and authToken are missing in the DataBroker configuration. This only works for public datasets and should not be used for secured data.`),i.configure({...o,authKey:o.authKey??``,authToken:o.authToken??``});try{return De(await i.fetchDatasetsWithColumnsAndFormulas(n))}catch(e){throw e instanceof Error&&e.message.includes(`Authentication failed`)?Error(`Failed to load datasets: Authentication failed. Please verify your API credentials are correct.`,{cause:e}):e}};export{U as a,H as c,xe as i,d as l,K as n,Se as o,Te as r,Ce as s,ke as t,u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{a as e,c as t,i as n,o as r,r as i,s as a}from"./data-broker-DXDyIrj_.js";function o(o,s,c){if(t(o)||r(o)||i(o))return o.toString();if(n(o)||!a(o)||e(o))return``;let l=``,u=Object.keys(o);return c?.allowEmpty?(s&&o[s]!==void 0&&(l=o[s]),l===void 0&&(l=``)):(s&&o[s]&&(l=o[s]),(n(l)||l===``)&&u?.length&&(l=o[u[0]])),l}export{o as t};
|