@luzmo/analytics-components-kit 1.0.1-alpha.140 → 1.0.1-alpha.141
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 +17 -5
- package/angular/components/ai-interaction-textarea.component.ts +2 -0
- package/angular/components/grid.component.ts +2 -2
- package/angular/esm/components/ai-interaction-textarea.component.d.ts +2 -1
- package/angular/esm/components/ai-interaction-textarea.component.js +7 -2
- package/angular/esm/components/grid.component.d.ts +2 -2
- package/angular/esm/types/ai-chat.types.d.ts +1 -0
- package/angular/types/ai-chat.types.ts +1 -0
- package/components/ai-chat/ai-chat.d.ts +21 -1
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.d.ts +1 -0
- package/components/ai-chat/index.js +3 -3
- package/components/ai-chat/request-contract.d.ts +38 -0
- package/components/ai-chat-BrTAn0m-.cjs +62 -0
- package/components/{ai-chat-Dg2dvhDq.js → ai-chat-D6fPnWEi.js} +211 -151
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +6 -0
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/{ai-interaction-textarea-DDVKMfTQ.cjs → ai-interaction-textarea-BGnQbDpJ.cjs} +2 -2
- package/components/{ai-interaction-textarea-ZDQPVgXC.js → ai-interaction-textarea-EdWcPK0w.js} +6 -3
- package/components/grid/grid.d.ts +4 -9
- package/components/grid/helpers/grid-effects.d.ts +1 -0
- package/components/grid/helpers/grid-events.d.ts +50 -0
- package/components/grid/helpers/grid-interactions.d.ts +91 -0
- package/components/grid/helpers/grid-item-management.d.ts +45 -0
- package/components/grid/helpers/grid-item-popover.d.ts +15 -0
- package/components/grid/helpers/grid-items.d.ts +9 -0
- package/components/grid/helpers/grid-keyboard-updates.d.ts +18 -0
- package/components/grid/helpers/grid-keydown-event.d.ts +18 -0
- package/components/grid/helpers/grid-popover-cleanup.d.ts +4 -0
- package/components/grid/helpers/grid-rendering.d.ts +63 -0
- package/components/grid/helpers/grid-stack-lifecycle.d.ts +26 -0
- package/components/grid/helpers/grid-theme.d.ts +16 -0
- package/components/grid/helpers/grid-update-cycle.d.ts +24 -0
- package/components/grid/index.cjs +1 -1
- package/components/grid/index.js +1 -1
- package/components/grid-BNbbl-9p.cjs +316 -0
- package/components/{grid-BW6LPvCu.js → grid-Ca-fxUK1.js} +2341 -1965
- package/components/index.cjs +1 -1
- package/components/index.js +5 -5
- package/components/item-data-picker-panel/index.cjs +1 -1
- package/components/item-data-picker-panel/index.js +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +1 -1
- package/components/slot-contents-picker/slot-contents-picker.d.ts +4 -2
- package/components/{slot-contents-picker-HRJuZQq5.cjs → slot-contents-picker-BO5lSTDz.cjs} +4 -4
- package/components/{slot-contents-picker-CgACNIVS.js → slot-contents-picker-Bw_G1BwZ.js} +112 -92
- package/custom-elements.json +1558 -17
- package/package.json +2 -2
- package/types/ai-chat.types.d.ts +1 -0
- package/components/ai-chat-CbqvVZDp.cjs +0 -60
- package/components/grid-xtLaTdhb.cjs +0 -316
package/components/index.cjs
CHANGED
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./base-C_azywlB.cjs`),require(`./focus-visible-3ACCHno4.cjs`);const e=require(`./set-locale-CKjJZRH6.cjs`);require(`./localized-mixin-DTvVLuXW.cjs`);const t=require(`./ai-chat-CbqvVZDp.cjs`),n=require(`./localize-BBuZJf_h.cjs`),r=require(`./dataset-icon-BbNgugDA.cjs`);require(`./data-broker-BUIUM5hr.cjs`);const i=require(`./dataset-selector-list-BdeJlo0u.cjs`),a=require(`./dataset-selector-row-CAlRVIk_.cjs`),o=require(`./ai-interaction-textarea-DDVKMfTQ.cjs`),s=require(`./formatter-CWhf4xbq.cjs`),c=require(`./decompose-numeric-format-Bp_e62qP.cjs`),l=require(`./display-settings-rCBWD_I_.cjs`),u=require(`./display-settings-binning-C4V_P8mI.cjs`),d=require(`./display-settings-datetime-Db-0j9VZ.cjs`);require(`./periods.const-CX2ZWWrf.cjs`);const f=require(`./display-settings-grand-totals-0ihnPMfZ.cjs`);require(`./calculate-data-field-icon-BhiGlh0u.cjs`);const p=require(`./display-settings-numeric-CfBT04A7.cjs`),m=require(`./period-over-period-condition.const-wVwKUthh.cjs`),h=require(`./display-settings-period-over-period-CWOpgJmd.cjs`);require(`./get-css-variable-D9AU2CIU.cjs`);const g=require(`./draggable-data-field-level-CJ-vup34.cjs`),_=require(`./draggable-data-field-BsvgQjQY.cjs`),v=require(`./convert-datasets-to-data-fields-BV57XueO.cjs`),y=require(`./load-data-fields-for-datasets-B6cGgPld.cjs`),b=require(`./draggable-data-fields-panel-oNEzkow0.cjs`),x=require(`./edit-option-CAqIUpWx.cjs`),S=require(`./item-data-drop-panel-Bt8rKT6s.cjs`),C=require(`./slot-menu-DyC8HQ5E.cjs`),w=require(`./grid-xtLaTdhb.cjs`),T=require(`./slot-menu-list-Dmb6s6UK.cjs`),E=require(`./droppable-slot-C8rhDVI-.cjs`);require(`./slot-labels.config-BdrqhsYJ.cjs`);const D=require(`./themes-BZL9NfRc.cjs`),ee=require(`./edit-item-C89gy9JF.cjs`),O=require(`./edit-filters-pq1q7Eff.cjs`),k=require(`./filter-expression-picker-Jcv2KTB6.cjs`),A=require(`./data-fields-select-DOFNOn2D.cjs`),j=require(`./filter-value-picker-49_ZrLE2.cjs`),M=require(`./filter-value-picker-datetime-f3T5FuxN.cjs`),N=require(`./utils-Dzbml7oI.cjs`),P=require(`./filter-value-picker-hierarchy-D6FbH0gw.cjs`),F=require(`./filter-value-picker-numeric-BCfpod5c.cjs`),I=require(`./filter-item-Bqhpikdf.cjs`);require(`./edit-option-base-DBfRz1gO.cjs`);const L=require(`./edit-option-action-button-group-DlJwTW3A.cjs`),R=require(`./edit-option-color-palette-picker-CGj9Vnfe.cjs`),z=require(`./edit-option-color-picker-CCnSHbzk.cjs`),B=require(`./edit-option-color-range-DhBp5wlk.cjs`),V=require(`./edit-option-multi-language-field-47AjaXIw.cjs`),H=require(`./edit-option-number-field-BMXponHb.cjs`),U=require(`./edit-option-picker-CpCILJtP.cjs`),W=require(`./edit-option-position-picker-utD_OSQy.cjs`),G=require(`./edit-option-positions-number-field-DhnxicFl.cjs`),K=require(`./edit-option-radio-button-group-BCVOZOhT.cjs`),q=require(`./edit-option-slider-B7ArGXrY.cjs`),J=require(`./edit-option-switch-ByyZ8LFD.cjs`),Y=require(`./edit-option-text-field-LTOr4mYL.cjs`),X=require(`./slot-contents-picker-HRJuZQq5.cjs`),Z=require(`./item-data-picker-panel-DZOIUxuS.cjs`),Q=require(`./viz-item-menu-D18d77aP.cjs`);require(`./types.cjs`);const $=[{key:`general`,label:`General`},{key:`filters`,label:`Filters`},{key:`bar-column`,label:`Bar & Column Charts`},{key:`line`,label:`Line Charts`},{key:`scatter-bubble`,label:`Scatter & Bubble Plots`},{key:`area`,label:`Area Charts`},{key:`pie-donut`,label:`Pie & Donut`},{key:`gauges`,label:`Gauges`},{key:`map`,label:`Map Charts`},{key:`hierarchical`,label:`Hierarchical Charts`},{key:`special`,label:`Special Charts`},{key:`financial`,label:`Financial Charts`}],te=[{type:`area-chart`,label:`Area Chart`},{type:`bar-chart`,label:`Bar Chart`},{type:`box-plot`,label:`Box Plot`},{type:`bubble-chart`,label:`Bubble Chart`},{type:`bullet-chart`,label:`Bullet Chart`},{type:`choropleth-map`,label:`Choropleth Map`},{type:`circle-pack-chart`,label:`Circle Pack Chart`},{type:`circular-gauge`,label:`Circular Gauge`},{type:`column-chart`,label:`Column Chart`},{type:`combination-chart`,label:`Combination Chart`},{type:`conditional-number`,label:`Conditional Number`},{type:`date-comparison-filter`,label:`Date Comparison Filter`},{type:`date-filter`,label:`Date Filter`},{type:`donut-chart`,label:`Donut Chart`},{type:`dropdown-filter`,label:`Dropdown Filter`},{type:`evolution-number`,label:`Evolution Number`},{type:`funnel-chart`,label:`Funnel Chart`},{type:`heat-map`,label:`Heat Map`},{type:`heat-table`,label:`Heat Table`},{type:`hexbin-map`,label:`Hexbin Map`},{type:`image`,label:`Image`},{type:`line-chart`,label:`Line Chart`},{type:`marker-map`,label:`Marker Map`},{type:`ohlc-chart`,label:`OHLC Chart`},{type:`parallel-coordinates-plot`,label:`Parallel Coordinates Plot`},{type:`pivot-table`,label:`Pivot Table`},{type:`pyramid-chart`,label:`Pyramid Chart`},{type:`radar-chart`,label:`Radar Chart`},{type:`regular-table`,label:`Regular Table`},{type:`route-map`,label:`Route Map`},{type:`sankey-diagram`,label:`Sankey Diagram`},{type:`scatter-plot`,label:`Scatter Plot`},{type:`search-filter`,label:`Search Filter`},{type:`slicer-filter`,label:`Slicer Filter`},{type:`slider-filter`,label:`Slider Filter`},{type:`speedometer-chart`,label:`Speedometer Chart`},{type:`spike-map`,label:`Spike Map`},{type:`strip-plot`,label:`Strip Plot`},{type:`sunburst-chart`,label:`Sunburst Chart`},{type:`symbol-map`,label:`Symbol Map`},{type:`text`,label:`Text`},{type:`treemap-chart`,label:`Treemap Chart`},{type:`video`,label:`Video`},{type:`wordcloud-chart`,label:`Wordcloud Chart`}],ne=[{item:`text`,type:`text`,label:`Text`,group:`general`},{item:`image`,type:`image`,label:`Image`,group:`general`},{item:`evolution-number`,type:`evolution-number`,label:`Number with evolution`,group:`general`},{item:`video`,type:`video`,label:`Video`,group:`general`},{item:`regular-table`,type:`regular-table`,label:`Regular Table`,group:`general`},{item:`pivot-table`,type:`pivot-table`,label:`Pivot Table`,group:`general`},{item:`spacer`,type:`spacer`,label:`Spacer`,group:`general`},{item:`date-comparison-filter`,type:`date-comparison-filter`,label:`Date Comparison Filter`,group:`filters`},{item:`date-filter`,type:`date-filter`,label:`Date Filter`,group:`filters`},{item:`slider-filter`,type:`slider-filter`,label:`Slider Filter`,group:`filters`},{item:`search-filter`,type:`search-filter`,label:`Search Filter`,group:`filters`},{item:`dropdown-filter`,type:`dropdown-filter`,label:`Dropdown Filter`,group:`filters`},{item:`slicer-filter-vertical`,type:`slicer`,label:`Slicer Filter`,group:`filters`,options:{layout:{alignment:`vertical`}}},{item:`slicer-filter-horizontal`,type:`slicer`,label:`Slicer Filter Horizontal`,group:`filters`,options:{layout:{alignment:`horizontal`}}},{item:`slicer-filter-table`,type:`slicer`,label:`Slicer Filter Table`,group:`filters`,options:{layout:{alignment:`table`}}},{item:`rank-slicer-filter`,type:`slicer`,label:`Rank Slicer Filter`,group:`filters`,options:{layout:{alignment:`rank-vertical`}}},{item:`bar-chart`,type:`bar-chart`,label:`Bar Chart`,group:`bar-column`},{item:`grouped-bar-chart`,type:`bar-chart`,label:`Grouped Bar Chart`,group:`bar-column`,options:{mode:`grouped`}},{item:`stacked-bar-chart`,type:`bar-chart`,label:`Stacked Bar Chart`,group:`bar-column`,options:{mode:`stacked`}},{item:`column-chart`,type:`column-chart`,label:`Column Chart`,group:`bar-column`},{item:`grouped-column-chart`,type:`column-chart`,label:`Grouped Column Chart`,group:`bar-column`,options:{mode:`grouped`}},{item:`stacked-column-chart`,type:`column-chart`,label:`Stacked Column Chart`,group:`bar-column`,options:{mode:`stacked`}},{item:`line-chart`,type:`line-chart`,label:`Line Chart`,group:`line`},{item:`grouped-line-chart`,type:`line-chart`,label:`Grouped Line Chart`,group:`line`,options:{mode:`grouped`}},{item:`scatter-plot`,type:`scatter-plot`,label:`Scatter Plot`,group:`scatter-bubble`},{item:`scatter-group`,type:`scatter-plot`,label:`Scatter Group`,group:`scatter-bubble`},{item:`bubble-plot`,type:`scatter-plot`,label:`Bubble Plot`,group:`scatter-bubble`},{item:`colored-bubble-plot`,type:`scatter-plot`,label:`Colored Bubble Plot`,group:`scatter-bubble`},{item:`area-chart`,type:`area-chart`,label:`Area Chart`,group:`area`},{item:`stacked-area-chart`,type:`area-chart`,label:`Stacked Area Chart`,group:`area`,options:{mode:`stacked`}},{item:`100-area-chart`,type:`area-chart`,label:`100% Stacked Area Chart`,group:`area`,options:{mode:`100%`}},{item:`streamgraph`,type:`area-chart`,label:`Streamgraph`,group:`area`},{item:`pie-chart`,type:`donut-chart`,label:`Pie Chart`,group:`pie-donut`},{item:`donut-chart`,type:`donut-chart`,label:`Donut Chart`,group:`pie-donut`},{item:`semi-pie-chart`,type:`donut-chart`,label:`Semi Pie Chart`,group:`pie-donut`},{item:`semi-donut-chart`,type:`donut-chart`,label:`Semi Donut Chart`,group:`pie-donut`},{item:`bullet-chart`,type:`bullet-chart`,label:`Bullet Chart`,group:`gauges`},{item:`circular-gauge`,type:`circular-gauge`,label:`Circular Gauge`,group:`gauges`},{item:`conditional-number`,type:`conditional-number`,label:`Conditional Number`,group:`gauges`},{item:`speedometer-chart`,type:`speedometer-chart`,label:`Speedometer`,group:`gauges`},{item:`choropleth-map`,type:`choropleth-map`,label:`Choropleth Map`,group:`map`},{item:`symbol-map`,type:`symbol-map`,label:`Symbol Map`,group:`map`},{item:`marker-map`,type:`marker-map`,label:`Marker Map`,group:`map`},{item:`hexbin-map`,type:`hexbin-map`,label:`Hexbin Map`,group:`map`},{item:`heat-map`,type:`heat-map`,label:`Heat Map`,group:`map`},{item:`route-map`,type:`route-map`,label:`Route Map`,group:`map`},{item:`spike-map`,type:`spike-map`,label:`Spike Map`,group:`map`},{item:`treemap-chart`,type:`treemap-chart`,label:`Treemap Chart`,group:`hierarchical`},{item:`sunburst-chart`,type:`sunburst-chart`,label:`Sunburst Chart`,group:`hierarchical`},{item:`circle-pack-chart`,type:`circle-pack-chart`,label:`Circle Pack Chart`,group:`hierarchical`},{item:`combination-chart`,type:`combination-chart`,label:`Combination Chart`,group:`special`},{item:`parallel-coordinates-plot`,type:`parallel-coordinates-plot`,label:`Parallel Coordinates Plot`,group:`special`},{item:`bubble-chart`,type:`bubble-chart`,label:`Bubble Chart`,group:`special`},{item:`strip-plot`,type:`strip-plot`,label:`Strip Plot`,group:`special`},{item:`radar-chart`,type:`radar-chart`,label:`Radar Chart`,group:`special`},{item:`pyramid-chart`,type:`pyramid-chart`,label:`Pyramid Chart`,group:`special`},{item:`funnel-chart`,type:`funnel-chart`,label:`Funnel Chart`,group:`special`},{item:`alluvial-diagram`,type:`alluvial-diagram`,label:`Alluvial Diagram`,group:`special`},{item:`sankey-diagram`,type:`sankey-diagram`,label:`Sankey Diagram`,group:`special`},{item:`venn-diagram`,type:`venn-diagram`,label:`Venn Diagram`,group:`special`},{item:`box-plot`,type:`box-plot`,label:`Box Plot`,group:`special`},{item:`heat-table`,type:`heat-table`,label:`Heat Table`,group:`special`},{item:`wordcloud-chart`,type:`wordcloud-chart`,label:`Wordcloud Chart`,group:`special`},{item:`ohlc-chart`,type:`ohlc-chart`,label:`OHLC Chart`,group:`financial`},{item:`candlestick-chart`,type:`ohlc-chart`,label:`Candlestick Chart`,group:`financial`}];exports.LuzmoAiChat=t.t,Object.defineProperty(exports,`LuzmoAiInteractionTextarea`,{enumerable:!0,get:function(){return o.t}}),Object.defineProperty(exports,`LuzmoDataFieldsSelect`,{enumerable:!0,get:function(){return A.t}}),exports.LuzmoDatasetIcon=r.t,exports.LuzmoDatasetSelectorList=i.t,exports.LuzmoDatasetSelectorRow=a.t,exports.LuzmoDisplaySettings=l.t,Object.defineProperty(exports,`LuzmoDisplaySettingsBinning`,{enumerable:!0,get:function(){return u.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsDatetime`,{enumerable:!0,get:function(){return d.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsGrandTotals`,{enumerable:!0,get:function(){return f.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsNumeric`,{enumerable:!0,get:function(){return p.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsPeriodOverPeriod`,{enumerable:!0,get:function(){return h.t}}),Object.defineProperty(exports,`LuzmoDraggableDataField`,{enumerable:!0,get:function(){return _.t}}),exports.LuzmoDraggableDataFieldLevel=g.t,Object.defineProperty(exports,`LuzmoDraggableDataFieldsPanel`,{enumerable:!0,get:function(){return b.t}}),Object.defineProperty(exports,`LuzmoDroppableSlot`,{enumerable:!0,get:function(){return E.t}}),Object.defineProperty(exports,`LuzmoEditFilters`,{enumerable:!0,get:function(){return O.t}}),exports.LuzmoEditItem=ee.t,exports.LuzmoEditOption=x.t,exports.LuzmoEditOptionActionButtonGroup=L.t,exports.LuzmoEditOptionColorPalettePicker=R.t,exports.LuzmoEditOptionColorPicker=z.t,exports.LuzmoEditOptionColorRange=B.t,exports.LuzmoEditOptionMultiLangField=V.t,exports.LuzmoEditOptionNumberField=H.t,exports.LuzmoEditOptionPicker=U.t,exports.LuzmoEditOptionPositionPicker=W.t,exports.LuzmoEditOptionPositionsNumberField=G.t,exports.LuzmoEditOptionRadioButtonGroup=K.t,exports.LuzmoEditOptionSlider=q.t,exports.LuzmoEditOptionSwitch=J.t,exports.LuzmoEditOptionTextField=Y.t,Object.defineProperty(exports,`LuzmoFilterExpressionPicker`,{enumerable:!0,get:function(){return k.t}}),Object.defineProperty(exports,`LuzmoFilterItem`,{enumerable:!0,get:function(){return I.t}}),exports.LuzmoFilterValuePicker=j.t,Object.defineProperty(exports,`LuzmoFilterValuePickerDatetime`,{enumerable:!0,get:function(){return M.t}}),Object.defineProperty(exports,`LuzmoFilterValuePickerHierarchy`,{enumerable:!0,get:function(){return P.t}}),Object.defineProperty(exports,`LuzmoFilterValuePickerNumeric`,{enumerable:!0,get:function(){return F.t}}),exports.LuzmoGrid=w.t,Object.defineProperty(exports,`LuzmoGridItemActionsMenu`,{enumerable:!0,get:function(){return w.n}}),Object.defineProperty(exports,`LuzmoItemDataDropPanel`,{enumerable:!0,get:function(){return S.t}}),Object.defineProperty(exports,`LuzmoItemDataPickerPanel`,{enumerable:!0,get:function(){return Z.t}}),Object.defineProperty(exports,`LuzmoSlotContentsPicker`,{enumerable:!0,get:function(){return X.t}}),exports.LuzmoSlotMenu=C.t,exports.LuzmoSlotMenuList=T.t,Object.defineProperty(exports,`LuzmoVizItemMenu`,{enumerable:!0,get:function(){return Q.t}}),exports.PeriodOverPeriodCondition=m.t,exports.convertDatasetsToDataFields=v.t,exports.decomposeNumericFormat=c.t,exports.formatter=s.t,exports.getLocale=e.t,exports.getTheme=D.t,exports.itemGroups=$,exports.itemList=ne,exports.itemTypes=te,exports.loadDataFieldsForDatasets=y.t,exports.localize=n.t,exports.setLocale=e.n,exports.switchItem=N.t,exports.systemThemeIds=D.n,exports.targetLocales=e.r;
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./base-C_azywlB.cjs`),require(`./focus-visible-3ACCHno4.cjs`);const e=require(`./set-locale-CKjJZRH6.cjs`);require(`./localized-mixin-DTvVLuXW.cjs`);const t=require(`./ai-chat-BrTAn0m-.cjs`),n=require(`./localize-BBuZJf_h.cjs`),r=require(`./dataset-icon-BbNgugDA.cjs`);require(`./data-broker-BUIUM5hr.cjs`);const i=require(`./dataset-selector-list-BdeJlo0u.cjs`),a=require(`./dataset-selector-row-CAlRVIk_.cjs`),o=require(`./ai-interaction-textarea-BGnQbDpJ.cjs`),s=require(`./formatter-CWhf4xbq.cjs`),c=require(`./decompose-numeric-format-Bp_e62qP.cjs`),l=require(`./display-settings-rCBWD_I_.cjs`),u=require(`./display-settings-binning-C4V_P8mI.cjs`),d=require(`./display-settings-datetime-Db-0j9VZ.cjs`);require(`./periods.const-CX2ZWWrf.cjs`);const f=require(`./display-settings-grand-totals-0ihnPMfZ.cjs`);require(`./calculate-data-field-icon-BhiGlh0u.cjs`);const p=require(`./display-settings-numeric-CfBT04A7.cjs`),m=require(`./period-over-period-condition.const-wVwKUthh.cjs`),h=require(`./display-settings-period-over-period-CWOpgJmd.cjs`);require(`./get-css-variable-D9AU2CIU.cjs`);const g=require(`./draggable-data-field-level-CJ-vup34.cjs`),_=require(`./draggable-data-field-BsvgQjQY.cjs`),v=require(`./convert-datasets-to-data-fields-BV57XueO.cjs`),y=require(`./load-data-fields-for-datasets-B6cGgPld.cjs`),b=require(`./draggable-data-fields-panel-oNEzkow0.cjs`),x=require(`./edit-option-CAqIUpWx.cjs`),S=require(`./item-data-drop-panel-Bt8rKT6s.cjs`),C=require(`./slot-menu-DyC8HQ5E.cjs`),w=require(`./grid-BNbbl-9p.cjs`),T=require(`./slot-menu-list-Dmb6s6UK.cjs`),E=require(`./droppable-slot-C8rhDVI-.cjs`);require(`./slot-labels.config-BdrqhsYJ.cjs`);const D=require(`./themes-BZL9NfRc.cjs`),O=require(`./edit-item-C89gy9JF.cjs`),ee=require(`./edit-filters-pq1q7Eff.cjs`),k=require(`./filter-expression-picker-Jcv2KTB6.cjs`),A=require(`./data-fields-select-DOFNOn2D.cjs`),j=require(`./filter-value-picker-49_ZrLE2.cjs`),M=require(`./filter-value-picker-datetime-f3T5FuxN.cjs`),N=require(`./utils-Dzbml7oI.cjs`),P=require(`./filter-value-picker-hierarchy-D6FbH0gw.cjs`),F=require(`./filter-value-picker-numeric-BCfpod5c.cjs`),I=require(`./filter-item-Bqhpikdf.cjs`);require(`./edit-option-base-DBfRz1gO.cjs`);const L=require(`./edit-option-action-button-group-DlJwTW3A.cjs`),R=require(`./edit-option-color-palette-picker-CGj9Vnfe.cjs`),z=require(`./edit-option-color-picker-CCnSHbzk.cjs`),B=require(`./edit-option-color-range-DhBp5wlk.cjs`),V=require(`./edit-option-multi-language-field-47AjaXIw.cjs`),H=require(`./edit-option-number-field-BMXponHb.cjs`),U=require(`./edit-option-picker-CpCILJtP.cjs`),W=require(`./edit-option-position-picker-utD_OSQy.cjs`),G=require(`./edit-option-positions-number-field-DhnxicFl.cjs`),K=require(`./edit-option-radio-button-group-BCVOZOhT.cjs`),q=require(`./edit-option-slider-B7ArGXrY.cjs`),J=require(`./edit-option-switch-ByyZ8LFD.cjs`),Y=require(`./edit-option-text-field-LTOr4mYL.cjs`),X=require(`./slot-contents-picker-BO5lSTDz.cjs`),Z=require(`./item-data-picker-panel-DZOIUxuS.cjs`),Q=require(`./viz-item-menu-D18d77aP.cjs`);require(`./types.cjs`);const $=[{key:`general`,label:`General`},{key:`filters`,label:`Filters`},{key:`bar-column`,label:`Bar & Column Charts`},{key:`line`,label:`Line Charts`},{key:`scatter-bubble`,label:`Scatter & Bubble Plots`},{key:`area`,label:`Area Charts`},{key:`pie-donut`,label:`Pie & Donut`},{key:`gauges`,label:`Gauges`},{key:`map`,label:`Map Charts`},{key:`hierarchical`,label:`Hierarchical Charts`},{key:`special`,label:`Special Charts`},{key:`financial`,label:`Financial Charts`}],te=[{type:`area-chart`,label:`Area Chart`},{type:`bar-chart`,label:`Bar Chart`},{type:`box-plot`,label:`Box Plot`},{type:`bubble-chart`,label:`Bubble Chart`},{type:`bullet-chart`,label:`Bullet Chart`},{type:`choropleth-map`,label:`Choropleth Map`},{type:`circle-pack-chart`,label:`Circle Pack Chart`},{type:`circular-gauge`,label:`Circular Gauge`},{type:`column-chart`,label:`Column Chart`},{type:`combination-chart`,label:`Combination Chart`},{type:`conditional-number`,label:`Conditional Number`},{type:`date-comparison-filter`,label:`Date Comparison Filter`},{type:`date-filter`,label:`Date Filter`},{type:`donut-chart`,label:`Donut Chart`},{type:`dropdown-filter`,label:`Dropdown Filter`},{type:`evolution-number`,label:`Evolution Number`},{type:`funnel-chart`,label:`Funnel Chart`},{type:`heat-map`,label:`Heat Map`},{type:`heat-table`,label:`Heat Table`},{type:`hexbin-map`,label:`Hexbin Map`},{type:`image`,label:`Image`},{type:`line-chart`,label:`Line Chart`},{type:`marker-map`,label:`Marker Map`},{type:`ohlc-chart`,label:`OHLC Chart`},{type:`parallel-coordinates-plot`,label:`Parallel Coordinates Plot`},{type:`pivot-table`,label:`Pivot Table`},{type:`pyramid-chart`,label:`Pyramid Chart`},{type:`radar-chart`,label:`Radar Chart`},{type:`regular-table`,label:`Regular Table`},{type:`route-map`,label:`Route Map`},{type:`sankey-diagram`,label:`Sankey Diagram`},{type:`scatter-plot`,label:`Scatter Plot`},{type:`search-filter`,label:`Search Filter`},{type:`slicer-filter`,label:`Slicer Filter`},{type:`slider-filter`,label:`Slider Filter`},{type:`speedometer-chart`,label:`Speedometer Chart`},{type:`spike-map`,label:`Spike Map`},{type:`strip-plot`,label:`Strip Plot`},{type:`sunburst-chart`,label:`Sunburst Chart`},{type:`symbol-map`,label:`Symbol Map`},{type:`text`,label:`Text`},{type:`treemap-chart`,label:`Treemap Chart`},{type:`video`,label:`Video`},{type:`wordcloud-chart`,label:`Wordcloud Chart`}],ne=[{item:`text`,type:`text`,label:`Text`,group:`general`},{item:`image`,type:`image`,label:`Image`,group:`general`},{item:`evolution-number`,type:`evolution-number`,label:`Number with evolution`,group:`general`},{item:`video`,type:`video`,label:`Video`,group:`general`},{item:`regular-table`,type:`regular-table`,label:`Regular Table`,group:`general`},{item:`pivot-table`,type:`pivot-table`,label:`Pivot Table`,group:`general`},{item:`spacer`,type:`spacer`,label:`Spacer`,group:`general`},{item:`date-comparison-filter`,type:`date-comparison-filter`,label:`Date Comparison Filter`,group:`filters`},{item:`date-filter`,type:`date-filter`,label:`Date Filter`,group:`filters`},{item:`slider-filter`,type:`slider-filter`,label:`Slider Filter`,group:`filters`},{item:`search-filter`,type:`search-filter`,label:`Search Filter`,group:`filters`},{item:`dropdown-filter`,type:`dropdown-filter`,label:`Dropdown Filter`,group:`filters`},{item:`slicer-filter-vertical`,type:`slicer`,label:`Slicer Filter`,group:`filters`,options:{layout:{alignment:`vertical`}}},{item:`slicer-filter-horizontal`,type:`slicer`,label:`Slicer Filter Horizontal`,group:`filters`,options:{layout:{alignment:`horizontal`}}},{item:`slicer-filter-table`,type:`slicer`,label:`Slicer Filter Table`,group:`filters`,options:{layout:{alignment:`table`}}},{item:`rank-slicer-filter`,type:`slicer`,label:`Rank Slicer Filter`,group:`filters`,options:{layout:{alignment:`rank-vertical`}}},{item:`bar-chart`,type:`bar-chart`,label:`Bar Chart`,group:`bar-column`},{item:`grouped-bar-chart`,type:`bar-chart`,label:`Grouped Bar Chart`,group:`bar-column`,options:{mode:`grouped`}},{item:`stacked-bar-chart`,type:`bar-chart`,label:`Stacked Bar Chart`,group:`bar-column`,options:{mode:`stacked`}},{item:`column-chart`,type:`column-chart`,label:`Column Chart`,group:`bar-column`},{item:`grouped-column-chart`,type:`column-chart`,label:`Grouped Column Chart`,group:`bar-column`,options:{mode:`grouped`}},{item:`stacked-column-chart`,type:`column-chart`,label:`Stacked Column Chart`,group:`bar-column`,options:{mode:`stacked`}},{item:`line-chart`,type:`line-chart`,label:`Line Chart`,group:`line`},{item:`grouped-line-chart`,type:`line-chart`,label:`Grouped Line Chart`,group:`line`,options:{mode:`grouped`}},{item:`scatter-plot`,type:`scatter-plot`,label:`Scatter Plot`,group:`scatter-bubble`},{item:`scatter-group`,type:`scatter-plot`,label:`Scatter Group`,group:`scatter-bubble`},{item:`bubble-plot`,type:`scatter-plot`,label:`Bubble Plot`,group:`scatter-bubble`},{item:`colored-bubble-plot`,type:`scatter-plot`,label:`Colored Bubble Plot`,group:`scatter-bubble`},{item:`area-chart`,type:`area-chart`,label:`Area Chart`,group:`area`},{item:`stacked-area-chart`,type:`area-chart`,label:`Stacked Area Chart`,group:`area`,options:{mode:`stacked`}},{item:`100-area-chart`,type:`area-chart`,label:`100% Stacked Area Chart`,group:`area`,options:{mode:`100%`}},{item:`streamgraph`,type:`area-chart`,label:`Streamgraph`,group:`area`},{item:`pie-chart`,type:`donut-chart`,label:`Pie Chart`,group:`pie-donut`},{item:`donut-chart`,type:`donut-chart`,label:`Donut Chart`,group:`pie-donut`},{item:`semi-pie-chart`,type:`donut-chart`,label:`Semi Pie Chart`,group:`pie-donut`},{item:`semi-donut-chart`,type:`donut-chart`,label:`Semi Donut Chart`,group:`pie-donut`},{item:`bullet-chart`,type:`bullet-chart`,label:`Bullet Chart`,group:`gauges`},{item:`circular-gauge`,type:`circular-gauge`,label:`Circular Gauge`,group:`gauges`},{item:`conditional-number`,type:`conditional-number`,label:`Conditional Number`,group:`gauges`},{item:`speedometer-chart`,type:`speedometer-chart`,label:`Speedometer`,group:`gauges`},{item:`choropleth-map`,type:`choropleth-map`,label:`Choropleth Map`,group:`map`},{item:`symbol-map`,type:`symbol-map`,label:`Symbol Map`,group:`map`},{item:`marker-map`,type:`marker-map`,label:`Marker Map`,group:`map`},{item:`hexbin-map`,type:`hexbin-map`,label:`Hexbin Map`,group:`map`},{item:`heat-map`,type:`heat-map`,label:`Heat Map`,group:`map`},{item:`route-map`,type:`route-map`,label:`Route Map`,group:`map`},{item:`spike-map`,type:`spike-map`,label:`Spike Map`,group:`map`},{item:`treemap-chart`,type:`treemap-chart`,label:`Treemap Chart`,group:`hierarchical`},{item:`sunburst-chart`,type:`sunburst-chart`,label:`Sunburst Chart`,group:`hierarchical`},{item:`circle-pack-chart`,type:`circle-pack-chart`,label:`Circle Pack Chart`,group:`hierarchical`},{item:`combination-chart`,type:`combination-chart`,label:`Combination Chart`,group:`special`},{item:`parallel-coordinates-plot`,type:`parallel-coordinates-plot`,label:`Parallel Coordinates Plot`,group:`special`},{item:`bubble-chart`,type:`bubble-chart`,label:`Bubble Chart`,group:`special`},{item:`strip-plot`,type:`strip-plot`,label:`Strip Plot`,group:`special`},{item:`radar-chart`,type:`radar-chart`,label:`Radar Chart`,group:`special`},{item:`pyramid-chart`,type:`pyramid-chart`,label:`Pyramid Chart`,group:`special`},{item:`funnel-chart`,type:`funnel-chart`,label:`Funnel Chart`,group:`special`},{item:`alluvial-diagram`,type:`alluvial-diagram`,label:`Alluvial Diagram`,group:`special`},{item:`sankey-diagram`,type:`sankey-diagram`,label:`Sankey Diagram`,group:`special`},{item:`venn-diagram`,type:`venn-diagram`,label:`Venn Diagram`,group:`special`},{item:`box-plot`,type:`box-plot`,label:`Box Plot`,group:`special`},{item:`heat-table`,type:`heat-table`,label:`Heat Table`,group:`special`},{item:`wordcloud-chart`,type:`wordcloud-chart`,label:`Wordcloud Chart`,group:`special`},{item:`ohlc-chart`,type:`ohlc-chart`,label:`OHLC Chart`,group:`financial`},{item:`candlestick-chart`,type:`ohlc-chart`,label:`Candlestick Chart`,group:`financial`}];exports.LuzmoAiChat=t.t,Object.defineProperty(exports,`LuzmoAiInteractionTextarea`,{enumerable:!0,get:function(){return o.t}}),Object.defineProperty(exports,`LuzmoDataFieldsSelect`,{enumerable:!0,get:function(){return A.t}}),exports.LuzmoDatasetIcon=r.t,exports.LuzmoDatasetSelectorList=i.t,exports.LuzmoDatasetSelectorRow=a.t,exports.LuzmoDisplaySettings=l.t,Object.defineProperty(exports,`LuzmoDisplaySettingsBinning`,{enumerable:!0,get:function(){return u.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsDatetime`,{enumerable:!0,get:function(){return d.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsGrandTotals`,{enumerable:!0,get:function(){return f.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsNumeric`,{enumerable:!0,get:function(){return p.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsPeriodOverPeriod`,{enumerable:!0,get:function(){return h.t}}),Object.defineProperty(exports,`LuzmoDraggableDataField`,{enumerable:!0,get:function(){return _.t}}),exports.LuzmoDraggableDataFieldLevel=g.t,Object.defineProperty(exports,`LuzmoDraggableDataFieldsPanel`,{enumerable:!0,get:function(){return b.t}}),Object.defineProperty(exports,`LuzmoDroppableSlot`,{enumerable:!0,get:function(){return E.t}}),Object.defineProperty(exports,`LuzmoEditFilters`,{enumerable:!0,get:function(){return ee.t}}),exports.LuzmoEditItem=O.t,exports.LuzmoEditOption=x.t,exports.LuzmoEditOptionActionButtonGroup=L.t,exports.LuzmoEditOptionColorPalettePicker=R.t,exports.LuzmoEditOptionColorPicker=z.t,exports.LuzmoEditOptionColorRange=B.t,exports.LuzmoEditOptionMultiLangField=V.t,exports.LuzmoEditOptionNumberField=H.t,exports.LuzmoEditOptionPicker=U.t,exports.LuzmoEditOptionPositionPicker=W.t,exports.LuzmoEditOptionPositionsNumberField=G.t,exports.LuzmoEditOptionRadioButtonGroup=K.t,exports.LuzmoEditOptionSlider=q.t,exports.LuzmoEditOptionSwitch=J.t,exports.LuzmoEditOptionTextField=Y.t,Object.defineProperty(exports,`LuzmoFilterExpressionPicker`,{enumerable:!0,get:function(){return k.t}}),Object.defineProperty(exports,`LuzmoFilterItem`,{enumerable:!0,get:function(){return I.t}}),exports.LuzmoFilterValuePicker=j.t,Object.defineProperty(exports,`LuzmoFilterValuePickerDatetime`,{enumerable:!0,get:function(){return M.t}}),Object.defineProperty(exports,`LuzmoFilterValuePickerHierarchy`,{enumerable:!0,get:function(){return P.t}}),Object.defineProperty(exports,`LuzmoFilterValuePickerNumeric`,{enumerable:!0,get:function(){return F.t}}),exports.LuzmoGrid=w.t,Object.defineProperty(exports,`LuzmoGridItemActionsMenu`,{enumerable:!0,get:function(){return w.n}}),Object.defineProperty(exports,`LuzmoItemDataDropPanel`,{enumerable:!0,get:function(){return S.t}}),Object.defineProperty(exports,`LuzmoItemDataPickerPanel`,{enumerable:!0,get:function(){return Z.t}}),Object.defineProperty(exports,`LuzmoSlotContentsPicker`,{enumerable:!0,get:function(){return X.t}}),exports.LuzmoSlotMenu=C.t,exports.LuzmoSlotMenuList=T.t,Object.defineProperty(exports,`LuzmoVizItemMenu`,{enumerable:!0,get:function(){return Q.t}}),exports.PeriodOverPeriodCondition=m.t,exports.buildAiMessageRequest=t.n,exports.convertDatasetsToDataFields=v.t,exports.decomposeNumericFormat=c.t,exports.formatter=s.t,exports.getLocale=e.t,exports.getTheme=D.t,exports.itemGroups=$,exports.itemList=ne,exports.itemTypes=te,exports.loadDataFieldsForDatasets=y.t,exports.localize=n.t,exports.setLocale=e.n,exports.switchItem=N.t,exports.systemThemeIds=D.n,exports.targetLocales=e.r;
|
package/components/index.js
CHANGED
|
@@ -28,13 +28,13 @@ import "./base-rg2x95aL.js";
|
|
|
28
28
|
import "./focus-visible-D1pJhWEh.js";
|
|
29
29
|
import { n as setLocale, r as targetLocales, t as getLocale } from "./set-locale-Uv6F4uSq.js";
|
|
30
30
|
import "./localized-mixin-cLT0UbaF.js";
|
|
31
|
-
import { t as LuzmoAiChat } from "./ai-chat-
|
|
31
|
+
import { n as buildAiMessageRequest, t as LuzmoAiChat } from "./ai-chat-D6fPnWEi.js";
|
|
32
32
|
import { t as localize } from "./localize-Dlt3EN5i.js";
|
|
33
33
|
import { t as LuzmoDatasetIcon } from "./dataset-icon-x6Q8nhYc.js";
|
|
34
34
|
import "./data-broker-cLR-t5LM.js";
|
|
35
35
|
import { t as LuzmoDatasetSelectorList } from "./dataset-selector-list-DO_ExOrO.js";
|
|
36
36
|
import { t as LuzmoDatasetSelectorRow } from "./dataset-selector-row-VsvdrVDf.js";
|
|
37
|
-
import { t as LuzmoAiInteractionTextarea } from "./ai-interaction-textarea-
|
|
37
|
+
import { t as LuzmoAiInteractionTextarea } from "./ai-interaction-textarea-EdWcPK0w.js";
|
|
38
38
|
import { t as formatter } from "./formatter-B21Tb3sf.js";
|
|
39
39
|
import { t as decomposeNumericFormat } from "./decompose-numeric-format-zrP4WxE7.js";
|
|
40
40
|
import { t as LuzmoDisplaySettings } from "./display-settings-BwRkE6i-.js";
|
|
@@ -54,7 +54,7 @@ import { t as LuzmoDraggableDataFieldsPanel } from "./draggable-data-fields-pane
|
|
|
54
54
|
import { t as LuzmoEditOption } from "./edit-option-BhYZQEpl.js";
|
|
55
55
|
import { t as LuzmoItemDataDropPanel } from "./item-data-drop-panel-BMubV7pj.js";
|
|
56
56
|
import { t as LuzmoSlotMenu } from "./slot-menu-DxYruISb.js";
|
|
57
|
-
import { n as LuzmoGridItemActionsMenu, t as LuzmoGrid } from "./grid-
|
|
57
|
+
import { n as LuzmoGridItemActionsMenu, t as LuzmoGrid } from "./grid-Ca-fxUK1.js";
|
|
58
58
|
import { t as LuzmoSlotMenuList } from "./slot-menu-list-DbZnXcMZ.js";
|
|
59
59
|
import { t as LuzmoDroppableSlot } from "./droppable-slot-DEpOqyps.js";
|
|
60
60
|
import "./slot-labels.config-BNi-I1ba.js";
|
|
@@ -83,7 +83,7 @@ import { t as LuzmoEditOptionRadioButtonGroup } from "./edit-option-radio-button
|
|
|
83
83
|
import { t as LuzmoEditOptionSlider } from "./edit-option-slider-Ozb3RBHW.js";
|
|
84
84
|
import { t as LuzmoEditOptionSwitch } from "./edit-option-switch-BUjPU49i.js";
|
|
85
85
|
import { t as LuzmoEditOptionTextField } from "./edit-option-text-field-CjdGtevT.js";
|
|
86
|
-
import { t as LuzmoSlotContentsPicker } from "./slot-contents-picker-
|
|
86
|
+
import { t as LuzmoSlotContentsPicker } from "./slot-contents-picker-Bw_G1BwZ.js";
|
|
87
87
|
import { t as LuzmoItemDataPickerPanel } from "./item-data-picker-panel-DBK2fVsG.js";
|
|
88
88
|
import { t as LuzmoVizItemMenu } from "./viz-item-menu-CjA1X_Vg.js";
|
|
89
89
|
import "./types.js";
|
|
@@ -716,4 +716,4 @@ const itemGroups = [
|
|
|
716
716
|
group: "financial"
|
|
717
717
|
}
|
|
718
718
|
];
|
|
719
|
-
export { LuzmoAiChat, LuzmoAiInteractionTextarea, LuzmoDataFieldsSelect, LuzmoDatasetIcon, LuzmoDatasetSelectorList, LuzmoDatasetSelectorRow, LuzmoDisplaySettings, LuzmoDisplaySettingsBinning, LuzmoDisplaySettingsDatetime, LuzmoDisplaySettingsGrandTotals, LuzmoDisplaySettingsNumeric, LuzmoDisplaySettingsPeriodOverPeriod, LuzmoDraggableDataField, LuzmoDraggableDataFieldLevel, LuzmoDraggableDataFieldsPanel, LuzmoDroppableSlot, LuzmoEditFilters, LuzmoEditItem, LuzmoEditOption, LuzmoEditOptionActionButtonGroup, LuzmoEditOptionColorPalettePicker, LuzmoEditOptionColorPicker, LuzmoEditOptionColorRange, LuzmoEditOptionMultiLangField, LuzmoEditOptionNumberField, LuzmoEditOptionPicker, LuzmoEditOptionPositionPicker, LuzmoEditOptionPositionsNumberField, LuzmoEditOptionRadioButtonGroup, LuzmoEditOptionSlider, LuzmoEditOptionSwitch, LuzmoEditOptionTextField, LuzmoFilterExpressionPicker, LuzmoFilterItem, LuzmoFilterValuePicker, LuzmoFilterValuePickerDatetime, LuzmoFilterValuePickerHierarchy, LuzmoFilterValuePickerNumeric, LuzmoGrid, LuzmoGridItemActionsMenu, LuzmoItemDataDropPanel, LuzmoItemDataPickerPanel, LuzmoSlotContentsPicker, LuzmoSlotMenu, LuzmoSlotMenuList, LuzmoVizItemMenu, PeriodOverPeriodCondition, convertDatasetsToDataFields, decomposeNumericFormat, formatter, getLocale, getTheme, itemGroups, itemList, itemTypes, loadDataFieldsForDatasets, localize, setLocale, switchItem, systemThemeIds, targetLocales };
|
|
719
|
+
export { LuzmoAiChat, LuzmoAiInteractionTextarea, LuzmoDataFieldsSelect, LuzmoDatasetIcon, LuzmoDatasetSelectorList, LuzmoDatasetSelectorRow, LuzmoDisplaySettings, LuzmoDisplaySettingsBinning, LuzmoDisplaySettingsDatetime, LuzmoDisplaySettingsGrandTotals, LuzmoDisplaySettingsNumeric, LuzmoDisplaySettingsPeriodOverPeriod, LuzmoDraggableDataField, LuzmoDraggableDataFieldLevel, LuzmoDraggableDataFieldsPanel, LuzmoDroppableSlot, LuzmoEditFilters, LuzmoEditItem, LuzmoEditOption, LuzmoEditOptionActionButtonGroup, LuzmoEditOptionColorPalettePicker, LuzmoEditOptionColorPicker, LuzmoEditOptionColorRange, LuzmoEditOptionMultiLangField, LuzmoEditOptionNumberField, LuzmoEditOptionPicker, LuzmoEditOptionPositionPicker, LuzmoEditOptionPositionsNumberField, LuzmoEditOptionRadioButtonGroup, LuzmoEditOptionSlider, LuzmoEditOptionSwitch, LuzmoEditOptionTextField, LuzmoFilterExpressionPicker, LuzmoFilterItem, LuzmoFilterValuePicker, LuzmoFilterValuePickerDatetime, LuzmoFilterValuePickerHierarchy, LuzmoFilterValuePickerNumeric, LuzmoGrid, LuzmoGridItemActionsMenu, LuzmoItemDataDropPanel, LuzmoItemDataPickerPanel, LuzmoSlotContentsPicker, LuzmoSlotMenu, LuzmoSlotMenuList, LuzmoVizItemMenu, PeriodOverPeriodCondition, buildAiMessageRequest, convertDatasetsToDataFields, decomposeNumericFormat, formatter, getLocale, getTheme, itemGroups, itemList, itemTypes, loadDataFieldsForDatasets, localize, setLocale, switchItem, systemThemeIds, targetLocales };
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../formatter-CWhf4xbq.cjs`),require(`../display-settings-rCBWD_I_.cjs`),require(`../periods.const-CX2ZWWrf.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`),require(`../get-css-variable-D9AU2CIU.cjs`),require(`../slot-menu-DyC8HQ5E.cjs`),require(`../slot-menu-list-Dmb6s6UK.cjs`),require(`../slot-labels.config-BdrqhsYJ.cjs`),require(`../data-fields-select-DOFNOn2D.cjs`),require(`../slot-contents-picker-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../formatter-CWhf4xbq.cjs`),require(`../display-settings-rCBWD_I_.cjs`),require(`../periods.const-CX2ZWWrf.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`),require(`../get-css-variable-D9AU2CIU.cjs`),require(`../slot-menu-DyC8HQ5E.cjs`),require(`../slot-menu-list-Dmb6s6UK.cjs`),require(`../slot-labels.config-BdrqhsYJ.cjs`),require(`../data-fields-select-DOFNOn2D.cjs`),require(`../slot-contents-picker-BO5lSTDz.cjs`);const e=require(`../item-data-picker-panel-DZOIUxuS.cjs`);Object.defineProperty(exports,`LuzmoItemDataPickerPanel`,{enumerable:!0,get:function(){return e.t}});
|
|
@@ -37,6 +37,6 @@ import "../slot-menu-DxYruISb.js";
|
|
|
37
37
|
import "../slot-menu-list-DbZnXcMZ.js";
|
|
38
38
|
import "../slot-labels.config-BNi-I1ba.js";
|
|
39
39
|
import "../data-fields-select-0-QPdj3X.js";
|
|
40
|
-
import "../slot-contents-picker-
|
|
40
|
+
import "../slot-contents-picker-Bw_G1BwZ.js";
|
|
41
41
|
import { t as LuzmoItemDataPickerPanel } from "../item-data-picker-panel-DBK2fVsG.js";
|
|
42
42
|
export { LuzmoItemDataPickerPanel };
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../formatter-CWhf4xbq.cjs`),require(`../display-settings-rCBWD_I_.cjs`),require(`../periods.const-CX2ZWWrf.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`),require(`../get-css-variable-D9AU2CIU.cjs`),require(`../slot-menu-DyC8HQ5E.cjs`),require(`../slot-menu-list-Dmb6s6UK.cjs`),require(`../data-fields-select-DOFNOn2D.cjs`);const e=require(`../slot-contents-picker-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../formatter-CWhf4xbq.cjs`),require(`../display-settings-rCBWD_I_.cjs`),require(`../periods.const-CX2ZWWrf.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`),require(`../get-css-variable-D9AU2CIU.cjs`),require(`../slot-menu-DyC8HQ5E.cjs`),require(`../slot-menu-list-Dmb6s6UK.cjs`),require(`../data-fields-select-DOFNOn2D.cjs`);const e=require(`../slot-contents-picker-BO5lSTDz.cjs`);Object.defineProperty(exports,`LuzmoSlotContentsPicker`,{enumerable:!0,get:function(){return e.t}});
|
|
@@ -36,5 +36,5 @@ import "../calculate-data-field-icon-CY7Y6fn1.js";
|
|
|
36
36
|
import "../slot-menu-DxYruISb.js";
|
|
37
37
|
import "../slot-menu-list-DbZnXcMZ.js";
|
|
38
38
|
import "../data-fields-select-0-QPdj3X.js";
|
|
39
|
-
import { t as LuzmoSlotContentsPicker } from "../slot-contents-picker-
|
|
39
|
+
import { t as LuzmoSlotContentsPicker } from "../slot-contents-picker-Bw_G1BwZ.js";
|
|
40
40
|
export { LuzmoSlotContentsPicker };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { DatasetsDataFields } from '../../types/dataset.types';
|
|
2
|
-
import type { SlotContent } from '../../types/slot.types';
|
|
3
1
|
import { Placement } from '@floating-ui/dom';
|
|
4
2
|
import { SlotConfig, SlotName, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
5
3
|
import '@luzmo/lucero/action-button';
|
|
@@ -7,6 +5,8 @@ import '@luzmo/lucero/field-label';
|
|
|
7
5
|
import '@luzmo/lucero/overlay';
|
|
8
6
|
import '@luzmo/lucero/tooltip';
|
|
9
7
|
import { PropertyValues } from 'lit';
|
|
8
|
+
import type { DatasetsDataFields } from '../../types/dataset.types';
|
|
9
|
+
import type { SlotContent } from '../../types/slot.types';
|
|
10
10
|
import { LuzmoElement } from '../../utils/base';
|
|
11
11
|
import '../data-fields-select';
|
|
12
12
|
import './../display-settings';
|
|
@@ -127,6 +127,8 @@ export declare class LuzmoSlotContentsPicker extends LuzmoSlotContentsPicker_bas
|
|
|
127
127
|
private _renderExtraDataFieldButton;
|
|
128
128
|
private _renderSingleSelect;
|
|
129
129
|
private _renderMultipleSelect;
|
|
130
|
+
private _getSelectValueForSlotContent;
|
|
131
|
+
private _getFilteredDatasetsDataFields;
|
|
130
132
|
private _renderSelectMenu;
|
|
131
133
|
private _handleSelectChange;
|
|
132
134
|
private _slotContentsPickerMarkup;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-DTvVLuXW.cjs`),i=require(`./display-settings-rCBWD_I_.cjs`),a=require(`./slots-config-mOBA4FHK.cjs`),o=require(`./default-acceptable-data-field-types-DY4JJ1aG.cjs`),s=require(`./slot-menu-DyC8HQ5E.cjs`);let c=require(`lit`),l=require(`lit/decorators.js`),u=require(`@lit/localize`),d=require(`@luzmo/icons`),f=require(`@luzmo/lucero/overlay`);require(`@luzmo/lucero/tooltip`);let p=require(`@lit/context`),m=require(`@lit/task`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/action-button`);let h=require(`lit/directives/if-defined.js`);var g=`:host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-slot-contents-picker-font-family,var(--luzmo-font-family))}.container{gap:var(--luzmo-slot-contents-picker-gap,var(--slot-contents-picker-gap,var(--luzmo-spacing-5)));flex-direction:column;width:fit-content;display:flex}.select-container{flex:auto;align-items:center;display:flex}luzmo-data-fields-select{flex-grow:var(--luzmo-slot-contents-picker-data-fields-select-flex-grow,var(--slot-contents-picker-data-fields-select-flex-grow))}:host([grows]){--slot-contents-picker-data-fields-select-flex-grow:1}:host([grows]) .container{width:100%}:host([grows]) .select-container{flex:auto}.extra-data-field-button-container{justify-content:center;align-items:center;display:flex}.slot-contents-picker-label{font-size:var(--luzmo-slot-contents-picker-label-font-size,var(--slot-contents-picker-label-font-size));margin-right:var(--luzmo-slot-contents-picker-text-to-controls,var(--slot-contents-picker-text-to-controls));text-overflow:ellipsis;white-space:nowrap;flex-grow:1;overflow:hidden}.controls{align-items:center;gap:var(--luzmo-slot-contents-picker-controls-gap,var(--slot-contents-picker-controls-gap));background-color:var(--luzmo-slot-contents-picker-controls-background-color,var(--slot-contents-picker-controls-background-color));height:100%;color:var(--luzmo-slot-contents-picker-controls-color,var(--slot-contents-picker-controls-color));margin-right:var(--luzmo-slot-contents-picker-controls-to-edge,var(--slot-contents-picker-controls-to-edge));padding:0 var(--luzmo-slot-contents-picker-controls-horizontal-padding,var(--slot-contents-picker-controls-horizontal-padding));display:flex}.controls div{cursor:pointer;height:100%;padding:0 var(--luzmo-slot-contents-picker-controls-control-horizontal-padding,var(--slot-contents-picker-controls-control-horizontal-padding));align-items:center;display:flex}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-slot-contents-picker-overlay-vertical-gap,var(--slot-contents-picker-overlay-vertical-gap))0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-slot-contents-picker-overlay-horizontal-gap,var(--slot-contents-picker-overlay-horizontal-gap))}:host{--slot-contents-picker-border-width:var(--luzmo-border-width);--slot-contents-picker-border-style:dashed;--slot-contents-picker-border-color:var(--luzmo-border-color);--slot-contents-picker-accept-drag-controls-background-color:transparent;--slot-contents-picker-font-color:var(--luzmo-font-color);--slot-contents-picker-controls-background-color:transparent;--slot-contents-picker-text-to-controls:var(--luzmo-spacing-3);--slot-contents-picker-controls-to-edge:0;--slot-contents-picker-controls-gap:var(--luzmo-spacing-2);--slot-contents-picker-controls-horizontal-padding:var(--luzmo-spacing-2);--slot-contents-picker-controls-control-horizontal-padding:var(--luzmo-spacing-3);--slot-contents-picker-label-font-size:var(--luzmo-font-size);--slot-contents-picker-horizontal-padding:var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap:var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap:var(--luzmo-spacing-4)}:host([size=s]){--slot-contents-picker-horizontal-padding:var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap:var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap:var(--luzmo-spacing-4)}:host([size=l]),:host([size=xl]){--slot-contents-picker-horizontal-padding:var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap:var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap:var(--luzmo-spacing-5)}:host{box-sizing:border-box}`,_=e=>{if(`columnId`in e&&e.columnId)return e.columnId;if(`formulaId`in e&&e.formulaId)return e.formulaId;if(`formula`in e&&e.formula)return e.formula},v=e=>{if(e)return e.columnId??e.formulaId??e.column??e.formula},y=class extends r.t(t.n(t.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0})){static{this.styles=(0,c.unsafeCSS)(g)}_isAdHocFormula(e){return`formula`in e&&typeof e.formula==`string`}constructor(){super(),this._loadSlotsConfig=new m.Task(this,{task:async([e])=>e?e===this._itemTypeLoaded?this._slotsConfig:(this._itemTypeLoaded=e,this._slotsConfig=await a.t(e)??[],this._slotsConfig):this._slotsConfig,args:()=>[this.itemType,this.language]}),this._slotsConfig=[],this.slotConfiguration={},this.slotContents=[],this.contentLanguage=`en`,this.disabled=!1,this.grows=!1,this.menu=`default`,this.hasLabel=!1,this.selects=`multiple`,this.search=`auto`,this.icons=`menu-only`,this.datasetsDataFields=[],this.placement=`bottom-start`,this.slotMenuPlacement=`bottom-end`,this.hideClear=!1,this._hasExtraEmptySelects=!1,this._currentSlotContents=[],this._store=new s.n,this._changedSlotContents=(e,t=[])=>{let n=new CustomEvent(`luzmo-slot-contents-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:e,linkedDatasetsIds:t}});return this.dispatchEvent(n),n},new p.ContextProvider(this,{context:i.n,initialValue:this._store})}willUpdate(e){super.willUpdate(e),e.has(`slotContents`)&&(this._currentSlotContents=structuredClone(this.slotContents??[]),this._store?.setContents(this._currentSlotContents??[],this.slotName))}_onSlotMenuChanges(e){e.preventDefault(),e.stopPropagation(),(this.slotContents?.length??0)===(e.detail.slotContents?.length??0)?(this._currentSlotContents=structuredClone(e.detail.slotContents??[]),this.slotContents=structuredClone(e.detail.slotContents??[]),this._store?.setContents(this._currentSlotContents??[],this.slotName),this._changedSlotContents(this._currentSlotContents,e.detail.linkedDatasetsIds??[])):(this.slotContents=e.detail.slotContents??[],this._store?.setContents(this.slotContents??[],this.slotName),this._changedSlotContents(this.slotContents,e.detail.linkedDatasetsIds??[]))}_setSlotContentAtIndex(e,t){let n=e.detail?.dataFields??[],r=n.length===0;t>=this._currentSlotContents.length&&this._removeEmptySelect();for(let e=this._currentSlotContents.length;e<=t;e++)this._currentSlotContents[e]||this._currentSlotContents.push({});if(n.length>0){let e=n[0],r=_(e),i=
|
|
20
|
+
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-DTvVLuXW.cjs`),i=require(`./display-settings-rCBWD_I_.cjs`),a=require(`./slots-config-mOBA4FHK.cjs`),o=require(`./default-acceptable-data-field-types-DY4JJ1aG.cjs`),s=require(`./slot-menu-DyC8HQ5E.cjs`);let c=require(`lit`),l=require(`lit/decorators.js`),u=require(`@lit/localize`),d=require(`@luzmo/icons`),f=require(`@luzmo/lucero/overlay`);require(`@luzmo/lucero/tooltip`);let p=require(`@lit/context`),m=require(`@lit/task`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/action-button`);let h=require(`lit/directives/if-defined.js`);var g=`:host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-slot-contents-picker-font-family,var(--luzmo-font-family))}.container{gap:var(--luzmo-slot-contents-picker-gap,var(--slot-contents-picker-gap,var(--luzmo-spacing-5)));flex-direction:column;width:fit-content;display:flex}.select-container{flex:auto;align-items:center;display:flex}luzmo-data-fields-select{flex-grow:var(--luzmo-slot-contents-picker-data-fields-select-flex-grow,var(--slot-contents-picker-data-fields-select-flex-grow))}:host([grows]){--slot-contents-picker-data-fields-select-flex-grow:1}:host([grows]) .container{width:100%}:host([grows]) .select-container{flex:auto}.extra-data-field-button-container{justify-content:center;align-items:center;display:flex}.slot-contents-picker-label{font-size:var(--luzmo-slot-contents-picker-label-font-size,var(--slot-contents-picker-label-font-size));margin-right:var(--luzmo-slot-contents-picker-text-to-controls,var(--slot-contents-picker-text-to-controls));text-overflow:ellipsis;white-space:nowrap;flex-grow:1;overflow:hidden}.controls{align-items:center;gap:var(--luzmo-slot-contents-picker-controls-gap,var(--slot-contents-picker-controls-gap));background-color:var(--luzmo-slot-contents-picker-controls-background-color,var(--slot-contents-picker-controls-background-color));height:100%;color:var(--luzmo-slot-contents-picker-controls-color,var(--slot-contents-picker-controls-color));margin-right:var(--luzmo-slot-contents-picker-controls-to-edge,var(--slot-contents-picker-controls-to-edge));padding:0 var(--luzmo-slot-contents-picker-controls-horizontal-padding,var(--slot-contents-picker-controls-horizontal-padding));display:flex}.controls div{cursor:pointer;height:100%;padding:0 var(--luzmo-slot-contents-picker-controls-control-horizontal-padding,var(--slot-contents-picker-controls-control-horizontal-padding));align-items:center;display:flex}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-slot-contents-picker-overlay-vertical-gap,var(--slot-contents-picker-overlay-vertical-gap))0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-slot-contents-picker-overlay-horizontal-gap,var(--slot-contents-picker-overlay-horizontal-gap))}:host{--slot-contents-picker-border-width:var(--luzmo-border-width);--slot-contents-picker-border-style:dashed;--slot-contents-picker-border-color:var(--luzmo-border-color);--slot-contents-picker-accept-drag-controls-background-color:transparent;--slot-contents-picker-font-color:var(--luzmo-font-color);--slot-contents-picker-controls-background-color:transparent;--slot-contents-picker-text-to-controls:var(--luzmo-spacing-3);--slot-contents-picker-controls-to-edge:0;--slot-contents-picker-controls-gap:var(--luzmo-spacing-2);--slot-contents-picker-controls-horizontal-padding:var(--luzmo-spacing-2);--slot-contents-picker-controls-control-horizontal-padding:var(--luzmo-spacing-3);--slot-contents-picker-label-font-size:var(--luzmo-font-size);--slot-contents-picker-horizontal-padding:var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap:var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap:var(--luzmo-spacing-4)}:host([size=s]){--slot-contents-picker-horizontal-padding:var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap:var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap:var(--luzmo-spacing-4)}:host([size=l]),:host([size=xl]){--slot-contents-picker-horizontal-padding:var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap:var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap:var(--luzmo-spacing-5)}:host{box-sizing:border-box}`,_=e=>{if(`columnId`in e&&e.columnId)return e.columnId;if(`formulaId`in e&&e.formulaId)return e.formulaId;if(`formula`in e&&e.formula)return e.formula},v=e=>{if(e)return e.columnId??e.formulaId??e.column??e.formula},y=`::level::`,b=(e,t)=>`${e}${y}${t}`,x=class extends r.t(t.n(t.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0})){static{this.styles=(0,c.unsafeCSS)(g)}_isAdHocFormula(e){return`formula`in e&&typeof e.formula==`string`}constructor(){super(),this._loadSlotsConfig=new m.Task(this,{task:async([e])=>e?e===this._itemTypeLoaded?this._slotsConfig:(this._itemTypeLoaded=e,this._slotsConfig=await a.t(e)??[],this._slotsConfig):this._slotsConfig,args:()=>[this.itemType,this.language]}),this._slotsConfig=[],this.slotConfiguration={},this.slotContents=[],this.contentLanguage=`en`,this.disabled=!1,this.grows=!1,this.menu=`default`,this.hasLabel=!1,this.selects=`multiple`,this.search=`auto`,this.icons=`menu-only`,this.datasetsDataFields=[],this.placement=`bottom-start`,this.slotMenuPlacement=`bottom-end`,this.hideClear=!1,this._hasExtraEmptySelects=!1,this._currentSlotContents=[],this._store=new s.n,this._changedSlotContents=(e,t=[])=>{let n=new CustomEvent(`luzmo-slot-contents-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:e,linkedDatasetsIds:t}});return this.dispatchEvent(n),n},new p.ContextProvider(this,{context:i.n,initialValue:this._store})}willUpdate(e){super.willUpdate(e),e.has(`slotContents`)&&(this._currentSlotContents=structuredClone(this.slotContents??[]),this._store?.setContents(this._currentSlotContents??[],this.slotName))}_onSlotMenuChanges(e){e.preventDefault(),e.stopPropagation(),(this.slotContents?.length??0)===(e.detail.slotContents?.length??0)?(this._currentSlotContents=structuredClone(e.detail.slotContents??[]),this.slotContents=structuredClone(e.detail.slotContents??[]),this._store?.setContents(this._currentSlotContents??[],this.slotName),this._changedSlotContents(this._currentSlotContents,e.detail.linkedDatasetsIds??[])):(this.slotContents=e.detail.slotContents??[],this._store?.setContents(this.slotContents??[],this.slotName),this._changedSlotContents(this.slotContents,e.detail.linkedDatasetsIds??[]))}_setSlotContentAtIndex(e,t){let n=e.detail?.dataFields??[],r=n.length===0;t>=this._currentSlotContents.length&&this._removeEmptySelect();for(let e=this._currentSlotContents.length;e<=t;e++)this._currentSlotContents[e]||this._currentSlotContents.push({});if(n.length>0){let e=n[0],r=_(e),i=this._currentSlotContents[t],a=v(i),s=i?.level,c=e.level;if(r&&(r!==a||s!==c)){let n=typeof e.level==`number`;this._currentSlotContents[t]=o.n(e,n)}}else r&&this._currentSlotContents.splice(t,1);this.slotContents=structuredClone(this._currentSlotContents.filter(e=>!!v(e))),this._changedSlotContents(this.slotContents)}_setSlotContents(e){let t=e.detail.dataFields??[];this.slotConfiguration?.canAcceptMultipleDataFields&&t.length>1||(t=t.slice(0,1));let n=this._getFilteredDatasetsDataFields(),r=t.map(e=>{let t=o.n(e,typeof e.level==`number`),r=this._getSelectValueForSlotContent(t,n);if(r)return{selectionValue:r,slotContent:t}}).filter(e=>!!e),i=new Set(r.map(e=>e.selectionValue));this._currentSlotContents=this._currentSlotContents?.filter(e=>{let t=this._getSelectValueForSlotContent(e,n);return t?i.has(t):!1})??[],r.forEach(({selectionValue:e,slotContent:t})=>{let r=this._currentSlotContents.findIndex(t=>this._getSelectValueForSlotContent(t,n)===e);if(r!==-1){this._currentSlotContents[r]=t;return}this._currentSlotContents.push(t)}),this.slotContents=structuredClone(this._currentSlotContents),this._changedSlotContents(this._currentSlotContents)}_renderFieldLabel(){return c.html`<luzmo-field-label for="data-field" size=${this.size}
|
|
21
21
|
>${this.label??(0,u.msg)(`Select...`)}
|
|
22
22
|
</luzmo-field-label>`}_removeEmptySelect(){this._hasExtraEmptySelects=!1}_getAcceptableDataFields(){let e=[],t=this.slotConfiguration?.acceptableDataFieldTypes?.length?this.slotConfiguration.acceptableDataFieldTypes:o.t;return this.datasetsDataFields.forEach(n=>{(n.columns?.filter(e=>t.includes(e.type??``))??[]).forEach(t=>{e.push({datasetId:n.id,type:t.type,name:t.name,columnId:t.id,description:t.description,subtype:t.subtype,format:t.format,lowestLevel:t.lowestLevel,duration_levels:t.duration_levels,duration_format:t.duration_format,expression:t.expression,hierarchyLevels:t.hierarchyLevels,currency:t.currency})}),this.slotConfiguration?.canAcceptFormula&&(n.formulas??[]).forEach(t=>{t.type&&(this._isAdHocFormula(t)?e.push({datasetId:n.id,type:t.type,name:t.label??{en:`Ad-hoc formula`},formula:t.formula,subtype:t.subtype??void 0,format:t.format}):e.push({datasetId:n.id,type:t.type,name:t.name,formulaId:t.id,description:t.description,subtype:t.subtype,format:t.format,lowestLevel:t.lowestLevel,duration_levels:t.duration_levels,duration_format:t.duration_format,expression:t.expression,currency:t.currency}))})}),e}_getFirstAvailableDataField(){let e=this._getAcceptableDataFields(),t=new Set(this._currentSlotContents.map(e=>e.columnId??e.formulaId??e.column??e.formula));return e.find(e=>{let n=_(e);return n?!t.has(n):!1})}_hasAvailableDataFields(){return!!this._getFirstAvailableDataField()}_addDataField(){let e=this._getFirstAvailableDataField();if(e){let t=o.n(e,!1);this._currentSlotContents.push(t),this.slotContents=structuredClone(this._currentSlotContents),this._changedSlotContents(this.slotContents)}else this._hasExtraEmptySelects=!0}_renderExtraDataFieldButton(){return this._hasAvailableDataFields()?c.html`<div class="extra-data-field-button-container">
|
|
23
23
|
<luzmo-action-button
|
|
@@ -98,7 +98,7 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
98
98
|
@luzmo-slot-contents-changed=${this._onSlotMenuChanges}
|
|
99
99
|
></luzmo-slot-menu>
|
|
100
100
|
</luzmo-overlay>`:``}
|
|
101
|
-
</div>`}
|
|
101
|
+
</div>`}_getSelectValueForSlotContent(e,t){let n=v(e);if(!n)return;let r=e.columnId,i=e.level;if(!r||typeof i!=`number`||Number.isNaN(i))return n;let a;for(let e of t)if(a=e.columns?.find(e=>e.id===r),a)break;return a&&(Array.isArray(a.hierarchyLevels)&&a.hierarchyLevels.length>2&&a.hierarchy_enabled===!0&&i>=1||(a.type===`datetime`||a.type===`array[datetime]`)&&typeof a.lowestLevel==`number`&&i!==a.lowestLevel)?b(r,i):n}_getFilteredDatasetsDataFields(){let e=this.slotConfiguration?.acceptableDataFieldTypes?.length?this.slotConfiguration.acceptableDataFieldTypes:o.t;return this.datasetsDataFields.map(t=>({...t,columns:t.columns?.filter(t=>e.includes(t.type??``))??[],formulas:this.slotConfiguration?.canAcceptFormula?t.formulas??[]:[]}))}_renderSelectMenu(e){let t=[],n=this._getFilteredDatasetsDataFields();if(e!==void 0&&e>=this._currentSlotContents.length)t=[];else if(t=this._currentSlotContents.map(e=>this._getSelectValueForSlotContent(e,n)).filter(e=>typeof e==`string`&&e.length>0),this.selects===`single`&&t?.length>0){let n=t[e??0];t=n?[n]:[]}return c.html`<luzmo-data-fields-select
|
|
102
102
|
.language=${this.language}
|
|
103
103
|
.contentLanguage=${this.contentLanguage}
|
|
104
104
|
.size=${this.size}
|
|
@@ -108,7 +108,7 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
108
108
|
.search=${this.search}
|
|
109
109
|
?disabled=${this.disabled}
|
|
110
110
|
allow-empty
|
|
111
|
-
.datasetsDataFields=${
|
|
111
|
+
.datasetsDataFields=${n}
|
|
112
112
|
.value=${t}
|
|
113
113
|
?clearable=${!this.hideClear}
|
|
114
114
|
.selects=${this.selects===`multiple`&&this.slotConfiguration?.canAcceptMultipleDataFields?`multiple`:`single`}
|
|
@@ -126,4 +126,4 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
126
126
|
Could not load slot-contents-picker: '${this.slotName}' of chart
|
|
127
127
|
'${this.itemType}': ${e}.
|
|
128
128
|
</div>
|
|
129
|
-
`})}};n.t([(0,l.property)({type:String,reflect:!0,attribute:`item-type`})],
|
|
129
|
+
`})}};n.t([(0,l.property)({type:String,reflect:!0,attribute:`item-type`})],x.prototype,`itemType`,void 0),n.t([(0,l.property)({type:String,reflect:!0,attribute:`slot-name`})],x.prototype,`slotName`,void 0),n.t([(0,l.property)({type:Object})],x.prototype,`slotConfiguration`,void 0),n.t([(0,l.property)({type:Array})],x.prototype,`slotContents`,void 0),n.t([(0,l.property)({type:String,attribute:`content-language`,reflect:!0})],x.prototype,`contentLanguage`,void 0),n.t([(0,l.property)({type:Boolean,attribute:`disabled`,reflect:!0})],x.prototype,`disabled`,void 0),n.t([(0,l.property)({type:Boolean,attribute:`grows`,reflect:!0})],x.prototype,`grows`,void 0),n.t([(0,l.property)({type:String,reflect:!0})],x.prototype,`menu`,void 0),n.t([(0,l.property)({type:Boolean,attribute:`has-label`,reflect:!0})],x.prototype,`hasLabel`,void 0),n.t([(0,l.property)({type:String,reflect:!0})],x.prototype,`label`,void 0),n.t([(0,l.property)({type:String,reflect:!0})],x.prototype,`selects`,void 0),n.t([(0,l.property)({type:String,reflect:!0})],x.prototype,`search`,void 0),n.t([(0,l.property)({type:String,reflect:!0})],x.prototype,`icons`,void 0),n.t([(0,l.property)({type:String,attribute:`placeholder`,reflect:!0})],x.prototype,`placeholder`,void 0),n.t([(0,l.property)({type:Array,reflect:!1})],x.prototype,`datasetsDataFields`,void 0),n.t([(0,l.property)({type:String,reflect:!0})],x.prototype,`placement`,void 0),n.t([(0,l.property)({type:String,reflect:!0,attribute:`slot-menu-placement`})],x.prototype,`slotMenuPlacement`,void 0),n.t([(0,l.property)({type:Boolean,reflect:!0,attribute:`hide-configuration`})],x.prototype,`hideConfiguration`,void 0),n.t([(0,l.property)({type:Boolean,reflect:!0,attribute:`hide-clear`})],x.prototype,`hideClear`,void 0),n.t([(0,l.state)()],x.prototype,`_hasExtraEmptySelects`,void 0),x=n.t([(0,u.localized)()],x),customElements.get(`luzmo-slot-contents-picker`)||customElements.define(`luzmo-slot-contents-picker`,x),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return x}});
|
|
@@ -41,7 +41,7 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
41
41
|
if ("formula" in e && e.formula) return e.formula;
|
|
42
42
|
}, getSlotContentKey = (e) => {
|
|
43
43
|
if (e) return e.columnId ?? e.formulaId ?? e.column ?? e.formula;
|
|
44
|
-
}, LuzmoSlotContentsPicker = class extends LocalizedMixin(SizedMixin(LuzmoElement, {
|
|
44
|
+
}, LEVEL_SEPARATOR = "::level::", encodeSublevelValue = (e, x) => `${e}${LEVEL_SEPARATOR}${x}`, LuzmoSlotContentsPicker = class extends LocalizedMixin(SizedMixin(LuzmoElement, {
|
|
45
45
|
validSizes: [
|
|
46
46
|
"s",
|
|
47
47
|
"m",
|
|
@@ -60,17 +60,17 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
60
60
|
super(), this._loadSlotsConfig = new Task(this, {
|
|
61
61
|
task: async ([e]) => e ? e === this._itemTypeLoaded ? this._slotsConfig : (this._itemTypeLoaded = e, this._slotsConfig = await t(e) ?? [], this._slotsConfig) : this._slotsConfig,
|
|
62
62
|
args: () => [this.itemType, this.language]
|
|
63
|
-
}), this._slotsConfig = [], this.slotConfiguration = {}, this.slotContents = [], this.contentLanguage = "en", this.disabled = !1, this.grows = !1, this.menu = "default", this.hasLabel = !1, this.selects = "multiple", this.search = "auto", this.icons = "menu-only", this.datasetsDataFields = [], this.placement = "bottom-start", this.slotMenuPlacement = "bottom-end", this.hideClear = !1, this._hasExtraEmptySelects = !1, this._currentSlotContents = [], this._store = new SlotStore(), this._changedSlotContents = (e,
|
|
64
|
-
let
|
|
63
|
+
}), this._slotsConfig = [], this.slotConfiguration = {}, this.slotContents = [], this.contentLanguage = "en", this.disabled = !1, this.grows = !1, this.menu = "default", this.hasLabel = !1, this.selects = "multiple", this.search = "auto", this.icons = "menu-only", this.datasetsDataFields = [], this.placement = "bottom-start", this.slotMenuPlacement = "bottom-end", this.hideClear = !1, this._hasExtraEmptySelects = !1, this._currentSlotContents = [], this._store = new SlotStore(), this._changedSlotContents = (e, x = []) => {
|
|
64
|
+
let S = new CustomEvent("luzmo-slot-contents-changed", {
|
|
65
65
|
bubbles: !0,
|
|
66
66
|
composed: !0,
|
|
67
67
|
cancelable: !0,
|
|
68
68
|
detail: {
|
|
69
69
|
slotContents: e,
|
|
70
|
-
linkedDatasetsIds:
|
|
70
|
+
linkedDatasetsIds: x
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
return this.dispatchEvent(
|
|
73
|
+
return this.dispatchEvent(S), S;
|
|
74
74
|
}, new ContextProvider(this, {
|
|
75
75
|
context: slotContext,
|
|
76
76
|
initialValue: this._store
|
|
@@ -82,31 +82,39 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
82
82
|
_onSlotMenuChanges(e) {
|
|
83
83
|
e.preventDefault(), e.stopPropagation(), (this.slotContents?.length ?? 0) === (e.detail.slotContents?.length ?? 0) ? (this._currentSlotContents = structuredClone(e.detail.slotContents ?? []), this.slotContents = structuredClone(e.detail.slotContents ?? []), this._store?.setContents(this._currentSlotContents ?? [], this.slotName), this._changedSlotContents(this._currentSlotContents, e.detail.linkedDatasetsIds ?? [])) : (this.slotContents = e.detail.slotContents ?? [], this._store?.setContents(this.slotContents ?? [], this.slotName), this._changedSlotContents(this.slotContents, e.detail.linkedDatasetsIds ?? []));
|
|
84
84
|
}
|
|
85
|
-
_setSlotContentAtIndex(e,
|
|
86
|
-
let
|
|
87
|
-
|
|
88
|
-
for (let e = this._currentSlotContents.length; e <=
|
|
89
|
-
if (
|
|
90
|
-
let e =
|
|
91
|
-
if (
|
|
92
|
-
let
|
|
93
|
-
this._currentSlotContents[
|
|
85
|
+
_setSlotContentAtIndex(e, x) {
|
|
86
|
+
let S = e.detail?.dataFields ?? [], C = S.length === 0;
|
|
87
|
+
x >= this._currentSlotContents.length && this._removeEmptySelect();
|
|
88
|
+
for (let e = this._currentSlotContents.length; e <= x; e++) this._currentSlotContents[e] || this._currentSlotContents.push({});
|
|
89
|
+
if (S.length > 0) {
|
|
90
|
+
let e = S[0], C = getDataFieldKey(e), w = this._currentSlotContents[x], T = getSlotContentKey(w), E = w?.level, D = e.level;
|
|
91
|
+
if (C && (C !== T || E !== D)) {
|
|
92
|
+
let S = typeof e.level == "number";
|
|
93
|
+
this._currentSlotContents[x] = convertDataFieldToSlotContent(e, S);
|
|
94
94
|
}
|
|
95
|
-
} else
|
|
95
|
+
} else C && this._currentSlotContents.splice(x, 1);
|
|
96
96
|
this.slotContents = structuredClone(this._currentSlotContents.filter((e) => !!getSlotContentKey(e))), this._changedSlotContents(this.slotContents);
|
|
97
97
|
}
|
|
98
98
|
_setSlotContents(e) {
|
|
99
|
-
let
|
|
100
|
-
this.slotConfiguration?.canAcceptMultipleDataFields &&
|
|
101
|
-
let
|
|
99
|
+
let x = e.detail.dataFields ?? [];
|
|
100
|
+
this.slotConfiguration?.canAcceptMultipleDataFields && x.length > 1 || (x = x.slice(0, 1));
|
|
101
|
+
let S = this._getFilteredDatasetsDataFields(), C = x.map((e) => {
|
|
102
|
+
let x = convertDataFieldToSlotContent(e, typeof e.level == "number"), C = this._getSelectValueForSlotContent(x, S);
|
|
103
|
+
if (C) return {
|
|
104
|
+
selectionValue: C,
|
|
105
|
+
slotContent: x
|
|
106
|
+
};
|
|
107
|
+
}).filter((e) => !!e), w = new Set(C.map((e) => e.selectionValue));
|
|
102
108
|
this._currentSlotContents = this._currentSlotContents?.filter((e) => {
|
|
103
|
-
let
|
|
104
|
-
return
|
|
105
|
-
}) ?? [],
|
|
106
|
-
let
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
let x = this._getSelectValueForSlotContent(e, S);
|
|
110
|
+
return x ? w.has(x) : !1;
|
|
111
|
+
}) ?? [], C.forEach(({ selectionValue: e, slotContent: x }) => {
|
|
112
|
+
let C = this._currentSlotContents.findIndex((x) => this._getSelectValueForSlotContent(x, S) === e);
|
|
113
|
+
if (C !== -1) {
|
|
114
|
+
this._currentSlotContents[C] = x;
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
this._currentSlotContents.push(x);
|
|
110
118
|
}), this.slotContents = structuredClone(this._currentSlotContents), this._changedSlotContents(this._currentSlotContents);
|
|
111
119
|
}
|
|
112
120
|
_renderFieldLabel() {
|
|
@@ -118,54 +126,54 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
118
126
|
this._hasExtraEmptySelects = !1;
|
|
119
127
|
}
|
|
120
128
|
_getAcceptableDataFields() {
|
|
121
|
-
let e = [],
|
|
122
|
-
return this.datasetsDataFields.forEach((
|
|
123
|
-
(
|
|
129
|
+
let e = [], x = this.slotConfiguration?.acceptableDataFieldTypes?.length ? this.slotConfiguration.acceptableDataFieldTypes : DEFAULT_ACCEPTABLE_DATA_FIELD_TYPES;
|
|
130
|
+
return this.datasetsDataFields.forEach((S) => {
|
|
131
|
+
(S.columns?.filter((e) => x.includes(e.type ?? "")) ?? []).forEach((x) => {
|
|
124
132
|
e.push({
|
|
125
|
-
datasetId:
|
|
126
|
-
type:
|
|
127
|
-
name:
|
|
128
|
-
columnId:
|
|
129
|
-
description:
|
|
130
|
-
subtype:
|
|
131
|
-
format:
|
|
132
|
-
lowestLevel:
|
|
133
|
-
duration_levels:
|
|
134
|
-
duration_format:
|
|
135
|
-
expression:
|
|
136
|
-
hierarchyLevels:
|
|
137
|
-
currency:
|
|
133
|
+
datasetId: S.id,
|
|
134
|
+
type: x.type,
|
|
135
|
+
name: x.name,
|
|
136
|
+
columnId: x.id,
|
|
137
|
+
description: x.description,
|
|
138
|
+
subtype: x.subtype,
|
|
139
|
+
format: x.format,
|
|
140
|
+
lowestLevel: x.lowestLevel,
|
|
141
|
+
duration_levels: x.duration_levels,
|
|
142
|
+
duration_format: x.duration_format,
|
|
143
|
+
expression: x.expression,
|
|
144
|
+
hierarchyLevels: x.hierarchyLevels,
|
|
145
|
+
currency: x.currency
|
|
138
146
|
});
|
|
139
|
-
}), this.slotConfiguration?.canAcceptFormula && (
|
|
140
|
-
|
|
141
|
-
datasetId:
|
|
142
|
-
type:
|
|
143
|
-
name:
|
|
144
|
-
formula:
|
|
145
|
-
subtype:
|
|
146
|
-
format:
|
|
147
|
+
}), this.slotConfiguration?.canAcceptFormula && (S.formulas ?? []).forEach((x) => {
|
|
148
|
+
x.type && (this._isAdHocFormula(x) ? e.push({
|
|
149
|
+
datasetId: S.id,
|
|
150
|
+
type: x.type,
|
|
151
|
+
name: x.label ?? { en: "Ad-hoc formula" },
|
|
152
|
+
formula: x.formula,
|
|
153
|
+
subtype: x.subtype ?? void 0,
|
|
154
|
+
format: x.format
|
|
147
155
|
}) : e.push({
|
|
148
|
-
datasetId:
|
|
149
|
-
type:
|
|
150
|
-
name:
|
|
151
|
-
formulaId:
|
|
152
|
-
description:
|
|
153
|
-
subtype:
|
|
154
|
-
format:
|
|
155
|
-
lowestLevel:
|
|
156
|
-
duration_levels:
|
|
157
|
-
duration_format:
|
|
158
|
-
expression:
|
|
159
|
-
currency:
|
|
156
|
+
datasetId: S.id,
|
|
157
|
+
type: x.type,
|
|
158
|
+
name: x.name,
|
|
159
|
+
formulaId: x.id,
|
|
160
|
+
description: x.description,
|
|
161
|
+
subtype: x.subtype,
|
|
162
|
+
format: x.format,
|
|
163
|
+
lowestLevel: x.lowestLevel,
|
|
164
|
+
duration_levels: x.duration_levels,
|
|
165
|
+
duration_format: x.duration_format,
|
|
166
|
+
expression: x.expression,
|
|
167
|
+
currency: x.currency
|
|
160
168
|
}));
|
|
161
169
|
});
|
|
162
170
|
}), e;
|
|
163
171
|
}
|
|
164
172
|
_getFirstAvailableDataField() {
|
|
165
|
-
let e = this._getAcceptableDataFields(),
|
|
173
|
+
let e = this._getAcceptableDataFields(), x = new Set(this._currentSlotContents.map((e) => e.columnId ?? e.formulaId ?? e.column ?? e.formula));
|
|
166
174
|
return e.find((e) => {
|
|
167
|
-
let
|
|
168
|
-
return
|
|
175
|
+
let S = getDataFieldKey(e);
|
|
176
|
+
return S ? !x.has(S) : !1;
|
|
169
177
|
});
|
|
170
178
|
}
|
|
171
179
|
_hasAvailableDataFields() {
|
|
@@ -174,8 +182,8 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
174
182
|
_addDataField() {
|
|
175
183
|
let e = this._getFirstAvailableDataField();
|
|
176
184
|
if (e) {
|
|
177
|
-
let
|
|
178
|
-
this._currentSlotContents.push(
|
|
185
|
+
let x = convertDataFieldToSlotContent(e, !1);
|
|
186
|
+
this._currentSlotContents.push(x), this.slotContents = structuredClone(this._currentSlotContents), this._changedSlotContents(this.slotContents);
|
|
179
187
|
} else this._hasExtraEmptySelects = !0;
|
|
180
188
|
}
|
|
181
189
|
_renderExtraDataFieldButton() {
|
|
@@ -195,19 +203,19 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
195
203
|
`;
|
|
196
204
|
}
|
|
197
205
|
_renderSingleSelect() {
|
|
198
|
-
let e = this._renderFieldLabel(),
|
|
199
|
-
if (!
|
|
206
|
+
let e = this._renderFieldLabel(), x = this._currentSlotContents.length > 0;
|
|
207
|
+
if (!x && !this._hasExtraEmptySelects) return html`<div class="select-container">
|
|
200
208
|
${this.hasLabel ? e : ""}
|
|
201
209
|
${this._renderSelectMenu(0)}
|
|
202
210
|
</div>`;
|
|
203
|
-
let
|
|
204
|
-
${this.hasLabel &&
|
|
205
|
-
${this._renderSelectMenu(
|
|
211
|
+
let S = this._currentSlotContents.map((x, S) => html` <div class="select-container">
|
|
212
|
+
${this.hasLabel && S === 0 ? e : ""}
|
|
213
|
+
${this._renderSelectMenu(S)}
|
|
206
214
|
${this.slotContents?.length > 0 && !this.hideConfiguration ? html`<div class="controls">
|
|
207
215
|
<luzmo-action-button
|
|
208
216
|
.size=${this.size}
|
|
209
217
|
quiet
|
|
210
|
-
id=${`trigger-${
|
|
218
|
+
id=${`trigger-${S}`}
|
|
211
219
|
?disabled=${this.disabled}
|
|
212
220
|
>
|
|
213
221
|
${luzmoIcon(luzmoCog)}
|
|
@@ -221,7 +229,7 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
221
229
|
</luzmo-action-button>
|
|
222
230
|
</div>` : ""}
|
|
223
231
|
${this.slotContents?.length > 0 ? html`<luzmo-overlay
|
|
224
|
-
trigger=${`trigger-${
|
|
232
|
+
trigger=${`trigger-${S}@click`}
|
|
225
233
|
.placement=${this.slotMenuPlacement}
|
|
226
234
|
>
|
|
227
235
|
<luzmo-slot-menu
|
|
@@ -230,16 +238,16 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
230
238
|
slot-type=${this.slotConfiguration?.type}
|
|
231
239
|
slot-name=${ifDefined(this.slotName)}
|
|
232
240
|
item-type=${ifDefined(this.itemType)}
|
|
233
|
-
.slotIndex=${
|
|
241
|
+
.slotIndex=${S}
|
|
234
242
|
variant="popup"
|
|
235
243
|
.size=${this.size}
|
|
236
244
|
@luzmo-slot-contents-changed=${this._onSlotMenuChanges}
|
|
237
245
|
></luzmo-slot-menu>
|
|
238
246
|
</luzmo-overlay>` : ""}
|
|
239
247
|
</div>`);
|
|
240
|
-
return this._hasExtraEmptySelects &&
|
|
248
|
+
return this._hasExtraEmptySelects && S.push(html`<div class="select-container">
|
|
241
249
|
${this._renderSelectMenu(this._currentSlotContents.length)}
|
|
242
|
-
</div>`),
|
|
250
|
+
</div>`), x && this.slotConfiguration?.canAcceptMultipleDataFields && S.push(this._renderExtraDataFieldButton()), S;
|
|
243
251
|
}
|
|
244
252
|
_renderMultipleSelect() {
|
|
245
253
|
let e = this._renderFieldLabel();
|
|
@@ -270,18 +278,30 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
270
278
|
</luzmo-overlay>` : ""}
|
|
271
279
|
</div>`;
|
|
272
280
|
}
|
|
281
|
+
_getSelectValueForSlotContent(e, x) {
|
|
282
|
+
let S = getSlotContentKey(e);
|
|
283
|
+
if (!S) return;
|
|
284
|
+
let C = e.columnId, w = e.level;
|
|
285
|
+
if (!C || typeof w != "number" || Number.isNaN(w)) return S;
|
|
286
|
+
let T;
|
|
287
|
+
for (let e of x) if (T = e.columns?.find((e) => e.id === C), T) break;
|
|
288
|
+
return T && (Array.isArray(T.hierarchyLevels) && T.hierarchyLevels.length > 2 && T.hierarchy_enabled === !0 && w >= 1 || (T.type === "datetime" || T.type === "array[datetime]") && typeof T.lowestLevel == "number" && w !== T.lowestLevel) ? encodeSublevelValue(C, w) : S;
|
|
289
|
+
}
|
|
290
|
+
_getFilteredDatasetsDataFields() {
|
|
291
|
+
let e = this.slotConfiguration?.acceptableDataFieldTypes?.length ? this.slotConfiguration.acceptableDataFieldTypes : DEFAULT_ACCEPTABLE_DATA_FIELD_TYPES;
|
|
292
|
+
return this.datasetsDataFields.map((x) => ({
|
|
293
|
+
...x,
|
|
294
|
+
columns: x.columns?.filter((x) => e.includes(x.type ?? "")) ?? [],
|
|
295
|
+
formulas: this.slotConfiguration?.canAcceptFormula ? x.formulas ?? [] : []
|
|
296
|
+
}));
|
|
297
|
+
}
|
|
273
298
|
_renderSelectMenu(e) {
|
|
274
|
-
let
|
|
275
|
-
if (e !== void 0 && e >= this._currentSlotContents.length)
|
|
276
|
-
else if (
|
|
277
|
-
let
|
|
278
|
-
|
|
299
|
+
let x = [], S = this._getFilteredDatasetsDataFields();
|
|
300
|
+
if (e !== void 0 && e >= this._currentSlotContents.length) x = [];
|
|
301
|
+
else if (x = this._currentSlotContents.map((e) => this._getSelectValueForSlotContent(e, S)).filter((e) => typeof e == "string" && e.length > 0), this.selects === "single" && x?.length > 0) {
|
|
302
|
+
let S = x[e ?? 0];
|
|
303
|
+
x = S ? [S] : [];
|
|
279
304
|
}
|
|
280
|
-
let C = this.slotConfiguration?.acceptableDataFieldTypes?.length ? this.slotConfiguration.acceptableDataFieldTypes : DEFAULT_ACCEPTABLE_DATA_FIELD_TYPES, w = this.datasetsDataFields.map((e) => ({
|
|
281
|
-
...e,
|
|
282
|
-
columns: e.columns?.filter((e) => C.includes(e.type ?? "")) ?? [],
|
|
283
|
-
formulas: this.slotConfiguration?.canAcceptFormula ? e.formulas ?? [] : []
|
|
284
|
-
}));
|
|
285
305
|
return html`<luzmo-data-fields-select
|
|
286
306
|
.language=${this.language}
|
|
287
307
|
.contentLanguage=${this.contentLanguage}
|
|
@@ -292,8 +312,8 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
292
312
|
.search=${this.search}
|
|
293
313
|
?disabled=${this.disabled}
|
|
294
314
|
allow-empty
|
|
295
|
-
.datasetsDataFields=${
|
|
296
|
-
.value=${
|
|
315
|
+
.datasetsDataFields=${S}
|
|
316
|
+
.value=${x}
|
|
297
317
|
?clearable=${!this.hideClear}
|
|
298
318
|
.selects=${this.selects === "multiple" && this.slotConfiguration?.canAcceptMultipleDataFields ? "multiple" : "single"}
|
|
299
319
|
data-index=${e ?? 0}
|
|
@@ -303,8 +323,8 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
303
323
|
}
|
|
304
324
|
_handleSelectChange(e) {
|
|
305
325
|
if (this.selects === "single") {
|
|
306
|
-
let
|
|
307
|
-
this._setSlotContentAtIndex(e, Number.isNaN(
|
|
326
|
+
let x = e.currentTarget?.dataset?.index, S = x ? Number.parseInt(x, 10) : 0;
|
|
327
|
+
this._setSlotContentAtIndex(e, Number.isNaN(S) ? 0 : S);
|
|
308
328
|
} else this._setSlotContents(e);
|
|
309
329
|
}
|
|
310
330
|
_slotContentsPickerMarkup() {
|
|
@@ -321,8 +341,8 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
321
341
|
`,
|
|
322
342
|
complete: (e) => {
|
|
323
343
|
if (this.slotName && this.itemType && e) {
|
|
324
|
-
let
|
|
325
|
-
|
|
344
|
+
let x = e.find((e) => e.name === this.slotName);
|
|
345
|
+
x && (this.slotConfiguration = x);
|
|
326
346
|
}
|
|
327
347
|
return this._slotContentsPickerMarkup();
|
|
328
348
|
},
|