@luzmo/analytics-components-kit 1.0.1-alpha.3 → 1.0.1-alpha.5
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/LICENSE +18 -0
- package/components/area-chart-slots.config-BLxiYX05.cjs +20 -0
- package/components/area-chart-slots.config-C0c2ZzBh.js +52 -0
- package/components/async-directive-FGzMycjH-Bgeca09f.js +152 -0
- package/components/async-directive-FGzMycjH-CeG35vZ3.cjs +56 -0
- package/components/bar-chart-slots.config-GSSL7XVA.js +47 -0
- package/components/bar-chart-slots.config-Jx1PveTM.cjs +20 -0
- package/components/bar-chart.config-B57geUzJ.cjs +20 -0
- package/components/bar-chart.config-CQ6HAvs2.js +153 -0
- package/components/bar-chart.en-BqYbiHO3.cjs +20 -0
- package/components/bar-chart.en-FwT00qdU.js +69 -0
- package/components/bar-chart.fr-DGx9smEh.cjs +20 -0
- package/components/bar-chart.fr-DbxKiM0j.js +44 -0
- package/components/bar-chart.nl-BYzVExsz.cjs +20 -0
- package/components/bar-chart.nl-ahX1ARpH.js +44 -0
- package/components/base-BjTwmyRF.cjs +24 -0
- package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
- package/components/base-D76d76ww-gf0ESLsU.js +45 -0
- package/components/base-D76d76ww.js +28 -0
- package/components/button-base-CDLQV7Vk-BXgdcJZo.cjs +43 -0
- package/components/button-base-CDLQV7Vk-C_3zTrbV.js +161 -0
- package/components/checkbox-mixin-DXUIwtea-DNISZS47.cjs +45 -0
- package/components/checkbox-mixin-DXUIwtea-wiCZr_KI.js +88 -0
- package/components/column-chart.config-B57geUzJ.cjs +20 -0
- package/components/column-chart.config-C9hP0kX7.js +153 -0
- package/components/cs-DVZ0Tapy.js +89 -0
- package/components/cs-I9E81keK.cjs +20 -0
- package/components/da-DHy05oSR.js +97 -0
- package/components/da-QkdvupDg.cjs +20 -0
- package/components/de-Dn5mUzha.cjs +20 -0
- package/components/de-iM39JlAt.js +109 -0
- package/components/decompose-numeric-format-B3rVVHpO.cjs +20 -0
- package/components/decompose-numeric-format-BuZcjH2k.js +39 -0
- package/components/directive-helpers-BLDZnGQv-DYFfxaqA.cjs +80 -0
- package/components/directive-helpers-BLDZnGQv-oKMCBvb2.js +115 -0
- package/components/display-settings/display-settings.d.ts +70 -0
- package/components/display-settings/index.cjs +105 -0
- package/components/display-settings/index.d.ts +7 -0
- package/components/display-settings/index.js +238 -0
- package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
- package/components/display-settings-binning/index.cjs +51 -0
- package/components/display-settings-binning/index.d.ts +7 -0
- package/components/display-settings-binning/index.js +137 -0
- package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
- package/components/display-settings-datetime/index.cjs +20 -0
- package/components/display-settings-datetime/index.d.ts +7 -0
- package/components/display-settings-datetime/index.js +30 -0
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
- package/components/display-settings-grand-totals/index.cjs +41 -0
- package/components/display-settings-grand-totals/index.d.ts +7 -0
- package/components/display-settings-grand-totals/index.js +115 -0
- package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
- package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
- package/components/display-settings-numeric/index.cjs +146 -0
- package/components/display-settings-numeric/index.d.ts +7 -0
- package/components/display-settings-numeric/index.js +452 -0
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
- package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
- package/components/display-settings-period-over-period/index.cjs +103 -0
- package/components/display-settings-period-over-period/index.d.ts +7 -0
- package/components/display-settings-period-over-period/index.js +308 -0
- package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
- package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
- package/components/donut-chart-slots.config-BEwhfq27.js +39 -0
- package/components/donut-chart-slots.config-DIp-24lO.cjs +20 -0
- package/components/donut-chart.config-3DhKiSSM.js +177 -0
- package/components/donut-chart.config-DLWJUlHx.cjs +20 -0
- package/components/donut-chart.en-Blb9oSdU.cjs +20 -0
- package/components/donut-chart.en-CzjT4-XN.js +85 -0
- package/components/donut-chart.fr-BeTVa2wh.cjs +20 -0
- package/components/donut-chart.fr-DftPrKbG.js +39 -0
- package/components/donut-chart.nl-D9YGbOce.cjs +20 -0
- package/components/donut-chart.nl-NMatXfhK.js +39 -0
- package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
- package/components/draggable-data-item/index.cjs +55 -0
- package/components/draggable-data-item/index.d.ts +7 -0
- package/components/draggable-data-item/index.js +140 -0
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
- package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
- package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
- package/components/draggable-data-item-level/index.cjs +36 -0
- package/components/draggable-data-item-level/index.d.ts +7 -0
- package/components/draggable-data-item-level/index.js +293 -0
- package/components/droppable-slot/droppable-slot.d.ts +49 -0
- package/components/droppable-slot/index.cjs +69 -0
- package/components/droppable-slot/index.d.ts +7 -0
- package/components/droppable-slot/index.js +255 -0
- package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
- package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
- package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
- package/components/edit-item/edit-item.d.ts +50 -0
- package/components/edit-item/index.cjs +85 -0
- package/components/edit-item/index.d.ts +7 -0
- package/components/edit-item/index.js +333 -0
- package/components/edit-option/edit-option.d.ts +22 -0
- package/components/edit-option/helpers/control-markup.d.ts +14 -0
- package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
- package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
- package/components/edit-option/helpers/generate-callback.d.ts +1 -0
- package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
- package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
- package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
- package/components/edit-option/index.cjs +176 -0
- package/components/edit-option/index.d.ts +7 -0
- package/components/edit-option/index.js +507 -0
- package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
- package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
- package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
- package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
- package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
- package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
- package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
- package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
- package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
- package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
- package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
- package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
- package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
- package/components/edit-option-action-button-group/index.cjs +44 -0
- package/components/edit-option-action-button-group/index.d.ts +7 -0
- package/components/edit-option-action-button-group/index.js +144 -0
- package/components/edit-option-base/edit-option-base.d.ts +22 -0
- package/components/edit-option-base-DnrerC_T.cjs +53 -0
- package/components/edit-option-base-oIvlolV9.js +120 -0
- package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
- package/components/edit-option-color-picker/index.cjs +472 -0
- package/components/edit-option-color-picker/index.d.ts +7 -0
- package/components/edit-option-color-picker/index.js +2553 -0
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
- package/components/edit-option-multi-language-field/index.cjs +31 -0
- package/components/edit-option-multi-language-field/index.d.ts +7 -0
- package/components/edit-option-multi-language-field/index.js +102 -0
- package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
- package/components/edit-option-number-field/index.cjs +32 -0
- package/components/edit-option-number-field/index.d.ts +7 -0
- package/components/edit-option-number-field/index.js +115 -0
- package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
- package/components/edit-option-picker/index.cjs +35 -0
- package/components/edit-option-picker/index.d.ts +7 -0
- package/components/edit-option-picker/index.js +106 -0
- package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
- package/components/edit-option-positions-number-field/index.cjs +42 -0
- package/components/edit-option-positions-number-field/index.d.ts +7 -0
- package/components/edit-option-positions-number-field/index.js +170 -0
- package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
- package/components/edit-option-radio-button-group/index.cjs +36 -0
- package/components/edit-option-radio-button-group/index.d.ts +7 -0
- package/components/edit-option-radio-button-group/index.js +113 -0
- package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
- package/components/edit-option-slider/index.cjs +48 -0
- package/components/edit-option-slider/index.d.ts +7 -0
- package/components/edit-option-slider/index.js +1253 -0
- package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
- package/components/edit-option-switch/index.cjs +50 -0
- package/components/edit-option-switch/index.d.ts +7 -0
- package/components/edit-option-switch/index.js +171 -0
- package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
- package/components/edit-option-text-field/index.cjs +31 -0
- package/components/edit-option-text-field/index.d.ts +7 -0
- package/components/edit-option-text-field/index.js +100 -0
- package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
- package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
- package/components/en-BsAhbMzm.js +1979 -0
- package/components/en-CdROUdjt.cjs +202 -0
- package/components/en-GB-g8rSQSba.cjs +20 -0
- package/components/en-GB-qub-Kemt.js +28 -0
- package/components/es-CwyPlN5d.cjs +20 -0
- package/components/es-KhTq4jX8.js +305 -0
- package/components/fi-Dh_ebgpe.js +97 -0
- package/components/fi-rijeZE5V.cjs +20 -0
- package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
- package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
- package/components/fr-BcgE-6S_.cjs +20 -0
- package/components/fr-CU727YF1.js +305 -0
- package/components/get-css-variable-Bhbr-Kr1.js +1413 -0
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/he-Au3xg6lR.js +89 -0
- package/components/he-O6Ih8Bqh.cjs +20 -0
- package/components/hu-BnZ8y3xQ.cjs +20 -0
- package/components/hu-DNJ-P_MW.js +97 -0
- package/components/if-defined-CYpcjGCb-Bzbg7zmM.cjs +60 -0
- package/components/if-defined-CYpcjGCb-tXzyj9Dq.js +95 -0
- package/components/if-defined-Ch2dtEOS.js +29 -0
- package/components/if-defined-DMSuo5Qx.cjs +24 -0
- package/components/imageobject.config-B7ld9bj3.cjs +20 -0
- package/components/imageobject.config-DZLp9Elq.js +127 -0
- package/components/index-3ewegRbb.cjs +67 -0
- package/components/index-B0cBkCaq.cjs +39 -0
- package/components/index-B2N_PZf3.js +164 -0
- package/components/index-B2z7i1-X.js +77 -0
- package/components/index-B5VaT0lQ.js +145 -0
- package/components/index-BC-nmKjU.js +104 -0
- package/components/index-BD3VxQBH.js +44 -0
- package/components/index-BGaxFTL4.js +299 -0
- package/components/index-BRk42NQn.js +3171 -0
- package/components/index-Bjs6Yqet.cjs +185 -0
- package/components/index-Bofs4Q2E.cjs +36 -0
- package/components/index-BqTdFs1o.js +77 -0
- package/components/index-C2qG2Sm8-BQUlk-w0.js +935 -0
- package/components/index-C2qG2Sm8-CbVWlbag.cjs +95 -0
- package/components/index-CTPox3yS.cjs +54 -0
- package/components/index-C_3Ak4MQ.cjs +59 -0
- package/components/index-CayjvyyX.cjs +95 -0
- package/components/index-CkDDDzuJ.js +744 -0
- package/components/index-Cp-lHUlX.js +137 -0
- package/components/index-CtHO6VyI.cjs +42 -0
- package/components/index-D4x-O9Uc.cjs +192 -0
- package/components/index-D9vzXhtJ.cjs +95 -0
- package/components/index-DQiQXn8N.cjs +36 -0
- package/components/index-DVaeDCbe.js +48 -0
- package/components/index-DskAouD-.js +317 -0
- package/components/index-DszPbTTD.js +810 -0
- package/components/index-EQldC-LR.js +175 -0
- package/components/index-ON4x-yZ7.cjs +36 -0
- package/components/index-gfU9TGd5.cjs +57 -0
- package/components/index-liTHhAef.cjs +36 -0
- package/components/index.cjs +20 -0
- package/components/index.js +74 -0
- package/components/it-Bh5U73z6.js +305 -0
- package/components/it-PshtLMkq.cjs +20 -0
- package/components/ja-CCcHUL61.js +89 -0
- package/components/ja-KIS2HdaG.cjs +20 -0
- package/components/ko--l4qmjLV.cjs +20 -0
- package/components/ko-DhapsZMM.js +89 -0
- package/components/language-resolution-8yZa5r_P-CTSmbE1U.js +161 -0
- package/components/language-resolution-8yZa5r_P-DQ3rZzW5.cjs +52 -0
- package/components/line-chart.config-BZcvfO2c.cjs +20 -0
- package/components/line-chart.config-CIVN6uLI.js +115 -0
- package/components/localize-B6AsX_Zv.js +52 -0
- package/components/localize-DbobqcKs.cjs +20 -0
- package/components/luzmo-icons-BrtBl3E5.cjs +31 -0
- package/components/luzmo-icons-CZEpXpvy.js +613 -0
- package/components/mk-B9HPSuKa.js +97 -0
- package/components/mk-DZlj-edb.cjs +20 -0
- package/components/nl-BKlDqOXb.cjs +20 -0
- package/components/nl-BwSt5Bf4.js +109 -0
- package/components/no-D-DofYnx.js +109 -0
- package/components/no-D_SzxhTu.cjs +20 -0
- package/components/observe-slot-text-BG0H7bQK-C0wmc4DO.js +221 -0
- package/components/observe-slot-text-BG0H7bQK-CrkAqUMj.cjs +86 -0
- package/components/pl-D_L_0Boq.js +97 -0
- package/components/pl-PIK23rK_.cjs +20 -0
- package/components/popover-bg0EQQ8p-D4-hrhIx.js +86 -0
- package/components/popover-bg0EQQ8p-Dha09dhV.cjs +48 -0
- package/components/property-CD3dwBJC.js +1447 -0
- package/components/property-Su1Q6aME.cjs +124 -0
- package/components/pt-B0BBS5VB.js +89 -0
- package/components/pt-Dqlu4MS5.cjs +20 -0
- package/components/query-D5qWDopr.cjs +24 -0
- package/components/query-Ddbd72Um.js +39 -0
- package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
- package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
- package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
- package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
- package/components/ru-Vo-m3O_2.js +108 -0
- package/components/ru-zyNDTB04.cjs +20 -0
- package/components/sized-mixin-PyCYpyQq-B40Ek2UB.js +82 -0
- package/components/sized-mixin-PyCYpyQq-sKzDjc75.cjs +36 -0
- package/components/slot-menu/index.cjs +55 -0
- package/components/slot-menu/index.d.ts +7 -0
- package/components/slot-menu/index.js +188 -0
- package/components/slot-menu/slot-menu.d.ts +66 -0
- package/components/slot-menu-list/index.cjs +39 -0
- package/components/slot-menu-list/index.d.ts +7 -0
- package/components/slot-menu-list/index.js +351 -0
- package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
- package/components/state-B1a8XIDm.js +31 -0
- package/components/state-ByiKNRhp.cjs +24 -0
- package/components/sv-1DPTltNQ.cjs +20 -0
- package/components/sv-CiozMaev.js +89 -0
- package/components/task-BPD0PyaQ.js +120 -0
- package/components/task-HFsHfTra.cjs +24 -0
- package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +131 -0
- package/components/text-field-7ITo3Lac-DqVO04kR.js +412 -0
- package/components/textobject.config-C8opcGG4.js +52 -0
- package/components/textobject.config-DbAajFz8.cjs +20 -0
- package/components/tr-BkmWvOG2.cjs +20 -0
- package/components/tr-D_D4i5iv.js +109 -0
- package/components/utils.cjs +20 -0
- package/components/utils.js +20 -0
- package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
- package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
- package/components/zh-CN-DTZ4OmdP.cjs +20 -0
- package/components/zh-CN-wsl7eFSd.js +89 -0
- package/components/zh-TW-DTZ4OmdP.cjs +20 -0
- package/components/zh-TW-wsl7eFSd.js +89 -0
- package/custom-elements.json +4228 -0
- package/index.d.ts +23 -0
- package/package.json +133 -14
- package/utils/formatter/calculate-duration.d.ts +2 -0
- package/utils/formatter/decompose-numeric-format.d.ts +11 -0
- package/utils/formatter/default-local-formats.d.ts +20 -0
- package/utils/formatter/formats/cs.d.ts +20 -0
- package/utils/formatter/formats/da.d.ts +20 -0
- package/utils/formatter/formats/de.d.ts +21 -0
- package/utils/formatter/formats/en-GB.d.ts +21 -0
- package/utils/formatter/formats/en-US.d.ts +1 -0
- package/utils/formatter/formats/en.d.ts +1 -0
- package/utils/formatter/formats/es.d.ts +54 -0
- package/utils/formatter/formats/fi.d.ts +20 -0
- package/utils/formatter/formats/fr.d.ts +54 -0
- package/utils/formatter/formats/he.d.ts +20 -0
- package/utils/formatter/formats/hu.d.ts +20 -0
- package/utils/formatter/formats/it.d.ts +54 -0
- package/utils/formatter/formats/ja.d.ts +20 -0
- package/utils/formatter/formats/ko.d.ts +20 -0
- package/utils/formatter/formats/mk.d.ts +20 -0
- package/utils/formatter/formats/nl.d.ts +21 -0
- package/utils/formatter/formats/no.d.ts +21 -0
- package/utils/formatter/formats/pl.d.ts +20 -0
- package/utils/formatter/formats/pt.d.ts +20 -0
- package/utils/formatter/formats/ru.d.ts +20 -0
- package/utils/formatter/formats/sv.d.ts +20 -0
- package/utils/formatter/formats/tr.d.ts +21 -0
- package/utils/formatter/formats/zh-CN.d.ts +20 -0
- package/utils/formatter/formats/zh-TW.d.ts +20 -0
- package/utils/formatter/formatter.d.ts +9 -0
- package/utils/formatter/localize.d.ts +3 -0
- package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
- package/utils/get-css-variable.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/time/formats.const.d.ts +8 -0
- package/utils/time/periods.const.d.ts +29 -0
- package/utils/types/column.types.d.ts +56 -0
- package/utils/types/type-check.d.ts +7 -0
- package/lib/37.js +0 -1
- package/lib/729.js +0 -1
- package/lib/common-31743c5a.js +0 -13
- package/lib/common-b02547a0.js +0 -1
- package/lib/common-b49d9a9d.js +0 -1
- package/lib/common-b5232813.js +0 -56
- package/lib/common-cefd4f4c.js +0 -1
- package/lib/common-d6cb565f.js +0 -1
- package/lib/common-fd868059.js +0 -1
- package/lib/common-fedaf338.js +0 -32
- package/lib/edit-option-picker/index.js +0 -314
- package/lib/edit-option-slider/index.js +0 -102
- package/lib/edit-option-toggle/index.js +0 -114
- package/lib/index.js +0 -346
- package/lib/vendors-93cc3efa.js +0 -1
- package/lib/vendors-bb3d84b5.js +0 -1
@@ -0,0 +1,69 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2024 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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../get-css-variable-DLiZYZEi.cjs"),y=require("../task-HFsHfTra.cjs"),m=require("../luzmo-icons-BrtBl3E5.cjs");require("../index-CayjvyyX.cjs");const r=require("../property-Su1Q6aME.cjs"),C=require("../sized-mixin-PyCYpyQq-sKzDjc75.cjs"),S=require("../localize-DbobqcKs.cjs"),k=require("../query-D5qWDopr.cjs");require("../slot-menu/index.cjs");const _=":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family))}.droppable-slot[filled]{cursor:pointer;border:var(--luzmo-droppable-slot-filled-border-width, var(--droppable-slot-filled-border-width)) var(--luzmo-droppable-slot-filled-border-style, var(--droppable-slot-filled-border-style)) var(--luzmo-droppable-slot-filled-border-color, var(--droppable-slot-filled-border-color));background-color:var(--luzmo-droppable-slot-filled-background-color, var(--droppable-slot-filled-background-color));color:var(--luzmo-droppable-slot-filled-color, var(--droppable-slot-filled-color))}.droppable-slot{color:var(--luzmo-droppable-slot-font-color, var(--droppable-slot-font-color));border:var(--luzmo-droppable-slot-border-width, var(--droppable-slot-border-width)) var(--luzmo-droppable-slot-border-style, var(--droppable-slot-border-style)) var(--luzmo-droppable-slot-border-color, var(--droppable-slot-border-color));background-color:var(--luzmo-droppable-slot-background-color, var(--droppable-slot-background-color));display:flex;justify-content:space-between;align-items:center;padding-left:var(--luzmo-droppable-slot-edge-to-label, var(--droppable-slot-edge-to-label));gap:var(--luzmo-spacing-5);border-radius:var(--luzmo-border-radius);height:var(--luzmo-droppable-slot-height, var(--droppable-slot-height));cursor:move}:host([disabled]) .droppable-slot{background-color:var(--luzmo-droppable-slot-background-color-disabled, var(--droppable-slot-background-color-disabled));color:var(--luzmo-droppable-slot-color-disabled, var(--droppable-slot-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25;font-size:12px}.drag-handle-icon{opacity:.5;font-size:12px}.droppable-slot-label{font-size:var(--luzmo-droppable-slot-label-font-size, var(--droppable-slot-label-font-size));flex-grow:1;margin-right:var(--luzmo-droppable-slot-text-to-controls, var(--droppable-slot-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-droppable-slot-controls-gap, var(--droppable-slot-controls-gap));background-color:var(--luzmo-droppable-slot-controls-background-color, var(--droppable-slot-controls-background-color));color:var(--luzmo-droppable-slot-controls-color, var(--droppable-slot-controls-color));margin-right:var(--luzmo-droppable-slot-controls-to-edge, var(--droppable-slot-controls-to-edge));padding:0 var(--luzmo-droppable-slot-controls-horizontal-padding, var(--droppable-slot-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-droppable-slot-controls-control-horizontal-padding, var(--droppable-slot-controls-control-horizontal-padding))}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-droppable-slot-overlay-vertical-gap, var(--droppable-slot-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-droppable-slot-overlay-horizontal-gap, var(--droppable-slot-overlay-horizontal-gap))}:host{--droppable-slot-border-width: var(--luzmo-border-width);--droppable-slot-border-style: dashed;--droppable-slot-border-color: var(--luzmo-border-color);--droppable-slot-background-color: transparent;--droppable-slot-font-color: var(--luzmo-font-color);--droppable-slot-controls-background-color: var(--luzmo-primary-down);--droppable-slot-controls-color: var(--luzmo-primary-inverse-color);--droppable-slot-text-to-controls: var(--luzmo-spacing-3);--droppable-slot-controls-to-edge: 0;--droppable-slot-controls-gap: var(--luzmo-spacing-2);--droppable-slot-controls-horizontal-padding: var(--luzmo-spacing-2);--droppable-slot-controls-control-horizontal-padding: var(--luzmo-spacing-3);--droppable-slot-filled-background-color: var(--luzmo-primary);--droppable-slot-filled-color: var(--luzmo-primary-inverse-color);--droppable-slot-filled-border-width: var(--luzmo-border-width);--droppable-slot-filled-border-style: solid;--droppable-slot-filled-border-color: var(--luzmo-primary-down);--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-edge-to-label: var(--luzmo-spacing-5);--droppable-slot-color-disabled: var(--luzmo-color-disabled);--droppable-slot-background-color-disabled: var( --luzmo-background-color-disabled )}:host([accept-drag]){--droppable-slot-filled-background-color: var(--luzmo-color-positive);--droppable-slot-filled-color: white;--droppable-slot-filled-border-color: var(--luzmo-color-positive-down);--droppable-slot-controls-background-color: var(--luzmo-color-positive-down);--droppable-slot-controls-color: white;--droppable-slot-background-color: var(--luzmo-color-positive);--droppable-slot-font-color: white}:host{--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--droppable-slot-height: var(--luzmo-component-height-s);--droppable-slot-label-font-size: var(--luzmo-font-size-s);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-s);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--droppable-slot-height: var(--luzmo-component-height-l);--droppable-slot-label-font-size: var(--luzmo-font-size-l);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-l);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--droppable-slot-height: var(--luzmo-component-height-xl);--droppable-slot-label-font-size: var(--luzmo-font-size-xl);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-xl);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}";var w=Object.defineProperty,i=(v,t,o,l)=>{for(var e=void 0,s=v.length-1,n;s>=0;s--)(n=v[s])&&(e=n(t,o,e)||e);return e&&w(t,o,e),e};const h=class h extends C.m(r.I,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this._loadSlotsConfig=new y.h(this,{task:async([t])=>{if(t&&t!==this._itemTypeLoaded){const o=Object.assign({"./item-slots-configs/area-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../area-chart-slots.config-BLxiYX05.cjs")),"./item-slots-configs/bar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bar-chart-slots.config-Jx1PveTM.cjs")),"./item-slots-configs/donut-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../donut-chart-slots.config-DIp-24lO.cjs"))});if(o[`./item-slots-configs/${t}-slots.config.ts`]){const l=await o[`./item-slots-configs/${t}-slots.config.ts`]();this._slotsConfig=(l==null?void 0:l.default)??{}}return this._slotsConfig}},args:()=>[this.itemType,this.language]}),this.slotConfiguration={},this.slotContents=[],this.language="en",this.menu="default",this.placement="bottom-end",this.changedSlotContents=t=>{this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:t}}))},this._currentSlotContents=[]}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDroppable()}emptySlotContents(t){t.preventDefault(),t.stopPropagation(),this.slotContents=[],this.changedSlotContents([])}willUpdate(t){t.has("slotContents")&&(this._currentSlotContents=structuredClone(this.slotContents))}firstUpdated(t){this._cleanupDroppable||(this._cleanupDroppable=f.dropTargetForElements({element:this,onDrop:o=>{var n,p,d,c;const l={...(n=o.source)==null?void 0:n.data},e={...(l==null?void 0:l.label)??{en:"Untitled"}},s=l==null?void 0:l.type;if(s==="datetime"&&!l.level&&(l.level=l.lowestLevel??(l.subtype==="date"?5:9)),s==="datetime"&&((d=(p=o==null?void 0:o.source)==null?void 0:p.element)!=null&&d.hasAttribute("sublevel"))){const u=["(Yr)","(Qtr)","(Mth)","(Wk)","(Date)","(Hr)","(Min)","(Sec)","(Msec)"],b=(l==null?void 0:l.level)??1,g=Object.keys(e);for(const z of g)e[z]=`${e[z]} ${u[b-1]}`;l.label=e}this.slotContents=(c=this.slotConfiguration)!=null&&c.canAcceptMultipleColumns?[...this.slotContents??[],l]:[l],this.removeAttribute("accept-drag"),this.changedSlotContents(this.slotContents)},canDrop:({source:o})=>{var e,s,n,p,d,c,u,b,g;if(!["LUZMO-DRAGGABLE-DATA-ITEM-LEVEL","LUZMO-DRAGGABLE-DATA-ITEM"].includes((e=o.element)==null?void 0:e.tagName))return!1;const l=((n=(s=this.slotConfiguration)==null?void 0:s.acceptableColumnTypes)==null?void 0:n.length)>0?this.slotConfiguration.acceptableColumnTypes:["numeric","hierarchy","datetime"];return(p=o==null?void 0:o.data)!=null&&p.type&&!l.includes((d=o==null?void 0:o.data)==null?void 0:d.type)?!1:!((c=o==null?void 0:o.data)!=null&&c.subtype&&((b=(u=this.slotConfiguration)==null?void 0:u.acceptableColumnSubtypes)==null?void 0:b.length)>0&&!this.slotConfiguration.acceptableColumnSubtypes.includes((g=o==null?void 0:o.data)==null?void 0:g.subtype))},getDropEffect:()=>"link",onDragEnter:()=>{this.setAttribute("accept-drag","")},onDragLeave:()=>{this.removeAttribute("accept-drag")}}))}updated(){this.createFullLabel()}_onSlotMenuChanges(t){var o;t.preventDefault(),t.stopPropagation(),this.slotContents.length===((o=t.detail.slotContents)==null?void 0:o.length)?(this._currentSlotContents=t.detail.slotContents,this.createFullLabel(),this.changedSlotContents(this._currentSlotContents)):(this.slotContents=t.detail.slotContents,this.changedSlotContents(this.slotContents))}createFullLabel(){var l,e,s,n,p,d,c;let t="";((l=this._currentSlotContents)==null?void 0:l.length)===1?t=S.localize((s=(e=this._currentSlotContents)==null?void 0:e[0])==null?void 0:s.label,this.language)??"Untitled":((n=this._currentSlotContents)==null?void 0:n.length)>1&&(t=`${this._currentSlotContents.length} items`);let o="";this.label?o=this.label:(p=this.slotConfiguration)!=null&&p.label&&(o=this.slotConfiguration.label),o=o||"Untitled",((d=this._currentSlotContents)==null?void 0:d.length)>0&&(o+=((c=this._currentSlotContents)==null?void 0:c.length)>1?`: ${this._currentSlotContents.length} items`:`: ${t}`),this._droppableSlotLabelElement&&(this._droppableSlotLabelElement.textContent=o)}droppableSlotMarkup(){var t,o,l,e;return r.x`
|
21
|
+
<div
|
22
|
+
class="droppable-slot"
|
23
|
+
?filled=${((t=this.slotContents)==null?void 0:t.length)>0}
|
24
|
+
id="trigger"
|
25
|
+
>
|
26
|
+
<div class="droppable-slot-label"></div>
|
27
|
+
${((o=this.slotContents)==null?void 0:o.length)>0&&!(this.hideConfiguration&&this.hideDelete)?r.x`<div class="controls">
|
28
|
+
${this.hideConfiguration?"":r.x`<div>
|
29
|
+
${m.O2(m.M1)}
|
30
|
+
<luzmo-tooltip
|
31
|
+
self-managed
|
32
|
+
placement="top"
|
33
|
+
size=${this.size}
|
34
|
+
>
|
35
|
+
edit
|
36
|
+
</luzmo-tooltip>
|
37
|
+
</div> `}
|
38
|
+
${this.hideDelete?"":r.x`<div @click=${this.emptySlotContents}>
|
39
|
+
${m.O2(m.v1)}
|
40
|
+
<luzmo-tooltip
|
41
|
+
self-managed
|
42
|
+
placement="top"
|
43
|
+
size=${this.size}
|
44
|
+
>
|
45
|
+
Delete
|
46
|
+
</luzmo-tooltip>
|
47
|
+
</div>`}
|
48
|
+
</div>`:""}
|
49
|
+
${((l=this.slotContents)==null?void 0:l.length)>0?r.x`<luzmo-overlay
|
50
|
+
trigger="trigger@click"
|
51
|
+
.placement=${this.placement}
|
52
|
+
>
|
53
|
+
<luzmo-slot-menu
|
54
|
+
language=${this.language}
|
55
|
+
content-language=${this.language}
|
56
|
+
slot-type=${(e=this.slotConfiguration)==null?void 0:e.type}
|
57
|
+
.slotContents=${this._currentSlotContents}
|
58
|
+
variant="popup"
|
59
|
+
.size=${this.size}
|
60
|
+
@slot-contents-changed=${this._onSlotMenuChanges}
|
61
|
+
></luzmo-slot-menu>
|
62
|
+
</luzmo-overlay>`:""}
|
63
|
+
</div>
|
64
|
+
`}render(){return this._loadSlotsConfig.render({pending:()=>r.x`<p>Loading...</p>`,complete:t=>{if(this.slotName&&this.itemType&&t){const o=t.find(l=>l.name===this.slotName);o&&(this.slotConfiguration=o)}return this.droppableSlotMarkup()},error:t=>r.x`
|
65
|
+
<div>
|
66
|
+
Could not load droppable slot: '${this.slotName}' of chart
|
67
|
+
'${this.itemType}': ${t}.
|
68
|
+
</div>
|
69
|
+
`})}};h.styles=r.r(_);let a=h;i([r.n({type:String,reflect:!0,attribute:"item-type"})],a.prototype,"itemType");i([r.n({type:String,reflect:!0,attribute:"slot-name"})],a.prototype,"slotName");i([r.n({type:Object})],a.prototype,"slotConfiguration");i([r.n({type:Object})],a.prototype,"slotContents");i([r.n({type:String,reflect:!0})],a.prototype,"label");i([r.n({type:String,reflect:!0})],a.prototype,"language");i([r.n({type:String,reflect:!0})],a.prototype,"menu");i([r.n({type:String,reflect:!0})],a.prototype,"placement");i([r.n({type:Boolean,reflect:!0,attribute:"hide-delete"})],a.prototype,"hideDelete");i([r.n({type:Boolean,reflect:!0,attribute:"hide-configuration"})],a.prototype,"hideConfiguration");i([k.e(".droppable-slot-label")],a.prototype,"_droppableSlotLabelElement");customElements.get("luzmo-droppable-slot")||customElements.define("luzmo-droppable-slot",a);exports.LuzmoDroppableSlot=a;
|
@@ -0,0 +1,255 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2024 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
import { d as C } from "../get-css-variable-Bhbr-Kr1.js";
|
21
|
+
import { h as x } from "../task-BPD0PyaQ.js";
|
22
|
+
import { O as v, M as S, v as w } from "../luzmo-icons-CZEpXpvy.js";
|
23
|
+
import "../index-DskAouD-.js";
|
24
|
+
import { I as k, r as _, x as u, n as i } from "../property-CD3dwBJC.js";
|
25
|
+
import { m as $ } from "../sized-mixin-PyCYpyQq-B40Ek2UB.js";
|
26
|
+
import { l as D } from "../localize-B6AsX_Zv.js";
|
27
|
+
import { e as E } from "../query-Ddbd72Um.js";
|
28
|
+
import "../slot-menu/index.js";
|
29
|
+
const y = () => {
|
30
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
31
|
+
const m = document.createElement("style");
|
32
|
+
m.setAttribute("data-luzmo-vars", ""), m.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(m);
|
33
|
+
}
|
34
|
+
};
|
35
|
+
y();
|
36
|
+
const L = ":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family))}.droppable-slot[filled]{cursor:pointer;border:var(--luzmo-droppable-slot-filled-border-width, var(--droppable-slot-filled-border-width)) var(--luzmo-droppable-slot-filled-border-style, var(--droppable-slot-filled-border-style)) var(--luzmo-droppable-slot-filled-border-color, var(--droppable-slot-filled-border-color));background-color:var(--luzmo-droppable-slot-filled-background-color, var(--droppable-slot-filled-background-color));color:var(--luzmo-droppable-slot-filled-color, var(--droppable-slot-filled-color))}.droppable-slot{color:var(--luzmo-droppable-slot-font-color, var(--droppable-slot-font-color));border:var(--luzmo-droppable-slot-border-width, var(--droppable-slot-border-width)) var(--luzmo-droppable-slot-border-style, var(--droppable-slot-border-style)) var(--luzmo-droppable-slot-border-color, var(--droppable-slot-border-color));background-color:var(--luzmo-droppable-slot-background-color, var(--droppable-slot-background-color));display:flex;justify-content:space-between;align-items:center;padding-left:var(--luzmo-droppable-slot-edge-to-label, var(--droppable-slot-edge-to-label));gap:var(--luzmo-spacing-5);border-radius:var(--luzmo-border-radius);height:var(--luzmo-droppable-slot-height, var(--droppable-slot-height));cursor:move}:host([disabled]) .droppable-slot{background-color:var(--luzmo-droppable-slot-background-color-disabled, var(--droppable-slot-background-color-disabled));color:var(--luzmo-droppable-slot-color-disabled, var(--droppable-slot-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25;font-size:12px}.drag-handle-icon{opacity:.5;font-size:12px}.droppable-slot-label{font-size:var(--luzmo-droppable-slot-label-font-size, var(--droppable-slot-label-font-size));flex-grow:1;margin-right:var(--luzmo-droppable-slot-text-to-controls, var(--droppable-slot-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-droppable-slot-controls-gap, var(--droppable-slot-controls-gap));background-color:var(--luzmo-droppable-slot-controls-background-color, var(--droppable-slot-controls-background-color));color:var(--luzmo-droppable-slot-controls-color, var(--droppable-slot-controls-color));margin-right:var(--luzmo-droppable-slot-controls-to-edge, var(--droppable-slot-controls-to-edge));padding:0 var(--luzmo-droppable-slot-controls-horizontal-padding, var(--droppable-slot-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-droppable-slot-controls-control-horizontal-padding, var(--droppable-slot-controls-control-horizontal-padding))}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-droppable-slot-overlay-vertical-gap, var(--droppable-slot-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-droppable-slot-overlay-horizontal-gap, var(--droppable-slot-overlay-horizontal-gap))}:host{--droppable-slot-border-width: var(--luzmo-border-width);--droppable-slot-border-style: dashed;--droppable-slot-border-color: var(--luzmo-border-color);--droppable-slot-background-color: transparent;--droppable-slot-font-color: var(--luzmo-font-color);--droppable-slot-controls-background-color: var(--luzmo-primary-down);--droppable-slot-controls-color: var(--luzmo-primary-inverse-color);--droppable-slot-text-to-controls: var(--luzmo-spacing-3);--droppable-slot-controls-to-edge: 0;--droppable-slot-controls-gap: var(--luzmo-spacing-2);--droppable-slot-controls-horizontal-padding: var(--luzmo-spacing-2);--droppable-slot-controls-control-horizontal-padding: var(--luzmo-spacing-3);--droppable-slot-filled-background-color: var(--luzmo-primary);--droppable-slot-filled-color: var(--luzmo-primary-inverse-color);--droppable-slot-filled-border-width: var(--luzmo-border-width);--droppable-slot-filled-border-style: solid;--droppable-slot-filled-border-color: var(--luzmo-primary-down);--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-edge-to-label: var(--luzmo-spacing-5);--droppable-slot-color-disabled: var(--luzmo-color-disabled);--droppable-slot-background-color-disabled: var( --luzmo-background-color-disabled )}:host([accept-drag]){--droppable-slot-filled-background-color: var(--luzmo-color-positive);--droppable-slot-filled-color: white;--droppable-slot-filled-border-color: var(--luzmo-color-positive-down);--droppable-slot-controls-background-color: var(--luzmo-color-positive-down);--droppable-slot-controls-color: white;--droppable-slot-background-color: var(--luzmo-color-positive);--droppable-slot-font-color: white}:host{--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--droppable-slot-height: var(--luzmo-component-height-s);--droppable-slot-label-font-size: var(--luzmo-font-size-s);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-s);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--droppable-slot-height: var(--luzmo-component-height-l);--droppable-slot-label-font-size: var(--luzmo-font-size-l);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-l);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--droppable-slot-height: var(--luzmo-component-height-xl);--droppable-slot-label-font-size: var(--luzmo-font-size-xl);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-xl);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}";
|
37
|
+
var A = Object.defineProperty, n = (m, l, o, t) => {
|
38
|
+
for (var e = void 0, a = m.length - 1, s; a >= 0; a--)
|
39
|
+
(s = m[a]) && (e = s(l, o, e) || e);
|
40
|
+
return e && A(l, o, e), e;
|
41
|
+
};
|
42
|
+
const h = class h extends $(k, {
|
43
|
+
validSizes: ["s", "m", "l", "xl"],
|
44
|
+
noDefaultSize: !0
|
45
|
+
}) {
|
46
|
+
constructor() {
|
47
|
+
super(...arguments), this._loadSlotsConfig = new x(this, {
|
48
|
+
task: async ([l]) => {
|
49
|
+
if (l && l !== this._itemTypeLoaded) {
|
50
|
+
const o = /* @__PURE__ */ Object.assign({
|
51
|
+
"./item-slots-configs/area-chart-slots.config.ts": () => import("../area-chart-slots.config-C0c2ZzBh.js"),
|
52
|
+
"./item-slots-configs/bar-chart-slots.config.ts": () => import("../bar-chart-slots.config-GSSL7XVA.js"),
|
53
|
+
"./item-slots-configs/donut-chart-slots.config.ts": () => import("../donut-chart-slots.config-BEwhfq27.js")
|
54
|
+
});
|
55
|
+
if (o[`./item-slots-configs/${l}-slots.config.ts`]) {
|
56
|
+
const t = await o[`./item-slots-configs/${l}-slots.config.ts`]();
|
57
|
+
this._slotsConfig = (t == null ? void 0 : t.default) ?? {};
|
58
|
+
}
|
59
|
+
return this._slotsConfig;
|
60
|
+
}
|
61
|
+
},
|
62
|
+
args: () => [this.itemType, this.language]
|
63
|
+
}), this.slotConfiguration = {}, this.slotContents = [], this.language = "en", this.menu = "default", this.placement = "bottom-end", this.changedSlotContents = (l) => {
|
64
|
+
this.dispatchEvent(
|
65
|
+
new CustomEvent("slot-contents-changed", {
|
66
|
+
bubbles: !0,
|
67
|
+
composed: !0,
|
68
|
+
cancelable: !0,
|
69
|
+
detail: {
|
70
|
+
slotContents: l
|
71
|
+
}
|
72
|
+
})
|
73
|
+
);
|
74
|
+
}, this._currentSlotContents = [];
|
75
|
+
}
|
76
|
+
disconnectedCallback() {
|
77
|
+
super.disconnectedCallback(), this._cleanupDroppable();
|
78
|
+
}
|
79
|
+
emptySlotContents(l) {
|
80
|
+
l.preventDefault(), l.stopPropagation(), this.slotContents = [], this.changedSlotContents([]);
|
81
|
+
}
|
82
|
+
willUpdate(l) {
|
83
|
+
l.has("slotContents") && (this._currentSlotContents = structuredClone(this.slotContents));
|
84
|
+
}
|
85
|
+
firstUpdated(l) {
|
86
|
+
this._cleanupDroppable || (this._cleanupDroppable = C({
|
87
|
+
element: this,
|
88
|
+
onDrop: (o) => {
|
89
|
+
var s, p, d, c;
|
90
|
+
const t = { ...(s = o.source) == null ? void 0 : s.data }, e = {
|
91
|
+
...(t == null ? void 0 : t.label) ?? { en: "Untitled" }
|
92
|
+
}, a = t == null ? void 0 : t.type;
|
93
|
+
if (a === "datetime" && !t.level && (t.level = t.lowestLevel ?? (t.subtype === "date" ? 5 : 9)), a === "datetime" && ((d = (p = o == null ? void 0 : o.source) == null ? void 0 : p.element) != null && d.hasAttribute("sublevel"))) {
|
94
|
+
const b = [
|
95
|
+
"(Yr)",
|
96
|
+
"(Qtr)",
|
97
|
+
"(Mth)",
|
98
|
+
"(Wk)",
|
99
|
+
"(Date)",
|
100
|
+
"(Hr)",
|
101
|
+
"(Min)",
|
102
|
+
"(Sec)",
|
103
|
+
"(Msec)"
|
104
|
+
], g = (t == null ? void 0 : t.level) ?? 1, z = Object.keys(e);
|
105
|
+
for (const f of z)
|
106
|
+
e[f] = `${e[f]} ${b[g - 1]}`;
|
107
|
+
t.label = e;
|
108
|
+
}
|
109
|
+
this.slotContents = (c = this.slotConfiguration) != null && c.canAcceptMultipleColumns ? [...this.slotContents ?? [], t] : [t], this.removeAttribute("accept-drag"), this.changedSlotContents(this.slotContents);
|
110
|
+
},
|
111
|
+
canDrop: ({ source: o }) => {
|
112
|
+
var e, a, s, p, d, c, b, g, z;
|
113
|
+
if (![
|
114
|
+
"LUZMO-DRAGGABLE-DATA-ITEM-LEVEL",
|
115
|
+
"LUZMO-DRAGGABLE-DATA-ITEM"
|
116
|
+
].includes((e = o.element) == null ? void 0 : e.tagName))
|
117
|
+
return !1;
|
118
|
+
const t = ((s = (a = this.slotConfiguration) == null ? void 0 : a.acceptableColumnTypes) == null ? void 0 : s.length) > 0 ? this.slotConfiguration.acceptableColumnTypes : ["numeric", "hierarchy", "datetime"];
|
119
|
+
return (p = o == null ? void 0 : o.data) != null && p.type && !t.includes((d = o == null ? void 0 : o.data) == null ? void 0 : d.type) ? !1 : !((c = o == null ? void 0 : o.data) != null && c.subtype && ((g = (b = this.slotConfiguration) == null ? void 0 : b.acceptableColumnSubtypes) == null ? void 0 : g.length) > 0 && !this.slotConfiguration.acceptableColumnSubtypes.includes(
|
120
|
+
(z = o == null ? void 0 : o.data) == null ? void 0 : z.subtype
|
121
|
+
));
|
122
|
+
},
|
123
|
+
getDropEffect: () => "link",
|
124
|
+
onDragEnter: () => {
|
125
|
+
this.setAttribute("accept-drag", "");
|
126
|
+
},
|
127
|
+
onDragLeave: () => {
|
128
|
+
this.removeAttribute("accept-drag");
|
129
|
+
}
|
130
|
+
}));
|
131
|
+
}
|
132
|
+
updated() {
|
133
|
+
this.createFullLabel();
|
134
|
+
}
|
135
|
+
_onSlotMenuChanges(l) {
|
136
|
+
var o;
|
137
|
+
l.preventDefault(), l.stopPropagation(), this.slotContents.length === ((o = l.detail.slotContents) == null ? void 0 : o.length) ? (this._currentSlotContents = l.detail.slotContents, this.createFullLabel(), this.changedSlotContents(this._currentSlotContents)) : (this.slotContents = l.detail.slotContents, this.changedSlotContents(this.slotContents));
|
138
|
+
}
|
139
|
+
// we update the label outside the lit render method to not lose focus when typing in the display settings bc of rerender
|
140
|
+
// we use a copy of slotContents '_currentSlotContents' to not trigger a rerender when the slotContents change from the slot-menu
|
141
|
+
createFullLabel() {
|
142
|
+
var t, e, a, s, p, d, c;
|
143
|
+
let l = "";
|
144
|
+
((t = this._currentSlotContents) == null ? void 0 : t.length) === 1 ? l = D((a = (e = this._currentSlotContents) == null ? void 0 : e[0]) == null ? void 0 : a.label, this.language) ?? "Untitled" : ((s = this._currentSlotContents) == null ? void 0 : s.length) > 1 && (l = `${this._currentSlotContents.length} items`);
|
145
|
+
let o = "";
|
146
|
+
this.label ? o = this.label : (p = this.slotConfiguration) != null && p.label && (o = this.slotConfiguration.label), o = o || "Untitled", ((d = this._currentSlotContents) == null ? void 0 : d.length) > 0 && (o += ((c = this._currentSlotContents) == null ? void 0 : c.length) > 1 ? `: ${this._currentSlotContents.length} items` : `: ${l}`), this._droppableSlotLabelElement && (this._droppableSlotLabelElement.textContent = o);
|
147
|
+
}
|
148
|
+
droppableSlotMarkup() {
|
149
|
+
var l, o, t, e;
|
150
|
+
return u`
|
151
|
+
<div
|
152
|
+
class="droppable-slot"
|
153
|
+
?filled=${((l = this.slotContents) == null ? void 0 : l.length) > 0}
|
154
|
+
id="trigger"
|
155
|
+
>
|
156
|
+
<div class="droppable-slot-label"></div>
|
157
|
+
${((o = this.slotContents) == null ? void 0 : o.length) > 0 && !(this.hideConfiguration && this.hideDelete) ? u`<div class="controls">
|
158
|
+
${this.hideConfiguration ? "" : u`<div>
|
159
|
+
${v(S)}
|
160
|
+
<luzmo-tooltip
|
161
|
+
self-managed
|
162
|
+
placement="top"
|
163
|
+
size=${this.size}
|
164
|
+
>
|
165
|
+
edit
|
166
|
+
</luzmo-tooltip>
|
167
|
+
</div> `}
|
168
|
+
${this.hideDelete ? "" : u`<div @click=${this.emptySlotContents}>
|
169
|
+
${v(w)}
|
170
|
+
<luzmo-tooltip
|
171
|
+
self-managed
|
172
|
+
placement="top"
|
173
|
+
size=${this.size}
|
174
|
+
>
|
175
|
+
Delete
|
176
|
+
</luzmo-tooltip>
|
177
|
+
</div>`}
|
178
|
+
</div>` : ""}
|
179
|
+
${((t = this.slotContents) == null ? void 0 : t.length) > 0 ? u`<luzmo-overlay
|
180
|
+
trigger="trigger@click"
|
181
|
+
.placement=${this.placement}
|
182
|
+
>
|
183
|
+
<luzmo-slot-menu
|
184
|
+
language=${this.language}
|
185
|
+
content-language=${this.language}
|
186
|
+
slot-type=${(e = this.slotConfiguration) == null ? void 0 : e.type}
|
187
|
+
.slotContents=${this._currentSlotContents}
|
188
|
+
variant="popup"
|
189
|
+
.size=${this.size}
|
190
|
+
@slot-contents-changed=${this._onSlotMenuChanges}
|
191
|
+
></luzmo-slot-menu>
|
192
|
+
</luzmo-overlay>` : ""}
|
193
|
+
</div>
|
194
|
+
`;
|
195
|
+
}
|
196
|
+
render() {
|
197
|
+
return this._loadSlotsConfig.render({
|
198
|
+
pending: () => u`<p>Loading...</p>`,
|
199
|
+
complete: (l) => {
|
200
|
+
if (this.slotName && this.itemType && l) {
|
201
|
+
const o = l.find(
|
202
|
+
(t) => t.name === this.slotName
|
203
|
+
);
|
204
|
+
o && (this.slotConfiguration = o);
|
205
|
+
}
|
206
|
+
return this.droppableSlotMarkup();
|
207
|
+
},
|
208
|
+
error: (l) => u`
|
209
|
+
<div>
|
210
|
+
Could not load droppable slot: '${this.slotName}' of chart
|
211
|
+
'${this.itemType}': ${l}.
|
212
|
+
</div>
|
213
|
+
`
|
214
|
+
});
|
215
|
+
}
|
216
|
+
};
|
217
|
+
h.styles = _(L);
|
218
|
+
let r = h;
|
219
|
+
n([
|
220
|
+
i({ type: String, reflect: !0, attribute: "item-type" })
|
221
|
+
], r.prototype, "itemType");
|
222
|
+
n([
|
223
|
+
i({ type: String, reflect: !0, attribute: "slot-name" })
|
224
|
+
], r.prototype, "slotName");
|
225
|
+
n([
|
226
|
+
i({ type: Object })
|
227
|
+
], r.prototype, "slotConfiguration");
|
228
|
+
n([
|
229
|
+
i({ type: Object })
|
230
|
+
], r.prototype, "slotContents");
|
231
|
+
n([
|
232
|
+
i({ type: String, reflect: !0 })
|
233
|
+
], r.prototype, "label");
|
234
|
+
n([
|
235
|
+
i({ type: String, reflect: !0 })
|
236
|
+
], r.prototype, "language");
|
237
|
+
n([
|
238
|
+
i({ type: String, reflect: !0 })
|
239
|
+
], r.prototype, "menu");
|
240
|
+
n([
|
241
|
+
i({ type: String, reflect: !0 })
|
242
|
+
], r.prototype, "placement");
|
243
|
+
n([
|
244
|
+
i({ type: Boolean, reflect: !0, attribute: "hide-delete" })
|
245
|
+
], r.prototype, "hideDelete");
|
246
|
+
n([
|
247
|
+
i({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
|
248
|
+
], r.prototype, "hideConfiguration");
|
249
|
+
n([
|
250
|
+
E(".droppable-slot-label")
|
251
|
+
], r.prototype, "_droppableSlotLabelElement");
|
252
|
+
customElements.get("luzmo-droppable-slot") || customElements.define("luzmo-droppable-slot", r);
|
253
|
+
export {
|
254
|
+
r as LuzmoDroppableSlot
|
255
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
declare const _default: ({
|
2
|
+
name: string;
|
3
|
+
rotate: boolean;
|
4
|
+
label: string;
|
5
|
+
type: string;
|
6
|
+
options: {
|
7
|
+
isAggregationDisabled: boolean;
|
8
|
+
isBinningDisabled: boolean;
|
9
|
+
areDatetimeOptionsEnabled: boolean;
|
10
|
+
isCumulativeSumEnabled?: undefined;
|
11
|
+
};
|
12
|
+
isRequired: boolean;
|
13
|
+
canAcceptMultipleColumns?: undefined;
|
14
|
+
canAcceptFormula?: undefined;
|
15
|
+
} | {
|
16
|
+
name: string;
|
17
|
+
rotate: boolean;
|
18
|
+
label: string;
|
19
|
+
type: string;
|
20
|
+
options: {
|
21
|
+
isCumulativeSumEnabled: boolean;
|
22
|
+
isAggregationDisabled?: undefined;
|
23
|
+
isBinningDisabled?: undefined;
|
24
|
+
areDatetimeOptionsEnabled?: undefined;
|
25
|
+
};
|
26
|
+
canAcceptMultipleColumns: boolean;
|
27
|
+
canAcceptFormula: boolean;
|
28
|
+
isRequired?: undefined;
|
29
|
+
} | {
|
30
|
+
name: string;
|
31
|
+
rotate: boolean;
|
32
|
+
label: string;
|
33
|
+
options: {
|
34
|
+
areDatetimeOptionsEnabled: boolean;
|
35
|
+
isAggregationDisabled?: undefined;
|
36
|
+
isBinningDisabled?: undefined;
|
37
|
+
isCumulativeSumEnabled?: undefined;
|
38
|
+
};
|
39
|
+
type: string;
|
40
|
+
isRequired?: undefined;
|
41
|
+
canAcceptMultipleColumns?: undefined;
|
42
|
+
canAcceptFormula?: undefined;
|
43
|
+
})[];
|
44
|
+
export default _default;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
declare const _default: ({
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
type: string;
|
5
|
+
rotate: boolean;
|
6
|
+
options: {
|
7
|
+
areDatetimeOptionsEnabled: boolean;
|
8
|
+
isCumulativeSumEnabled?: undefined;
|
9
|
+
};
|
10
|
+
canAcceptMultipleColumns?: undefined;
|
11
|
+
canAcceptFormula?: undefined;
|
12
|
+
} | {
|
13
|
+
name: string;
|
14
|
+
label: string;
|
15
|
+
type: string;
|
16
|
+
rotate: boolean;
|
17
|
+
options: {
|
18
|
+
isCumulativeSumEnabled: boolean;
|
19
|
+
areDatetimeOptionsEnabled?: undefined;
|
20
|
+
};
|
21
|
+
canAcceptMultipleColumns: boolean;
|
22
|
+
canAcceptFormula: boolean;
|
23
|
+
})[];
|
24
|
+
export default _default;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
declare const _default: ({
|
2
|
+
name: string;
|
3
|
+
rotate: boolean;
|
4
|
+
label: string;
|
5
|
+
type: string;
|
6
|
+
canAcceptMultipleColumns: boolean;
|
7
|
+
canAcceptFormula: boolean;
|
8
|
+
options?: undefined;
|
9
|
+
} | {
|
10
|
+
name: string;
|
11
|
+
rotate: boolean;
|
12
|
+
label: string;
|
13
|
+
type: string;
|
14
|
+
options: {
|
15
|
+
areDatetimeOptionsEnabled: boolean;
|
16
|
+
};
|
17
|
+
canAcceptMultipleColumns?: undefined;
|
18
|
+
canAcceptFormula?: undefined;
|
19
|
+
})[];
|
20
|
+
export default _default;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import '@luzmo/lucero/accordion';
|
2
|
+
import '@luzmo/lucero/divider';
|
3
|
+
import { ElementSize, LuzmoElement } from '@luzmo/lucero/utils';
|
4
|
+
import './../edit-option';
|
5
|
+
/**
|
6
|
+
* @element luzmo-edit-item
|
7
|
+
*/
|
8
|
+
export declare class LuzmoEditItem extends LuzmoElement {
|
9
|
+
static styles: import("lit").CSSResult;
|
10
|
+
private _loadItemConfig;
|
11
|
+
/**
|
12
|
+
* The language in which to display the option configuration controls.
|
13
|
+
*/
|
14
|
+
language: string;
|
15
|
+
/**
|
16
|
+
* The item type to load the configuration for. Leave empty if using a custom options configuration.
|
17
|
+
*/
|
18
|
+
itemType: string;
|
19
|
+
/**
|
20
|
+
* The options of the item.
|
21
|
+
*/
|
22
|
+
options?: any;
|
23
|
+
/**
|
24
|
+
* The slots of the item.
|
25
|
+
*/
|
26
|
+
slots?: any;
|
27
|
+
/**
|
28
|
+
* The theme of the item.
|
29
|
+
*/
|
30
|
+
theme?: any;
|
31
|
+
/**
|
32
|
+
* The size of the edit item component.
|
33
|
+
*/
|
34
|
+
size: ElementSize;
|
35
|
+
/**
|
36
|
+
* The configuration of the options. Fill in manually if you want to use a custom configuration. Leave empty if using a default configuration and use 'item-type'.
|
37
|
+
*/
|
38
|
+
optionsConfiguration: any;
|
39
|
+
/**
|
40
|
+
* The translations of the item options configuration.
|
41
|
+
*/
|
42
|
+
translations: any;
|
43
|
+
private _itemTypeLoaded;
|
44
|
+
private _languageLoaded;
|
45
|
+
private renderAllGroups;
|
46
|
+
private renderGroup;
|
47
|
+
private renderOptionControl;
|
48
|
+
private renderDivider;
|
49
|
+
render(): import("lit-html").TemplateResult<1> | undefined;
|
50
|
+
}
|