@luzmo/analytics-components-kit 1.1.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/angular/components/interactive-viz-item.ts +41 -4
- package/angular/components/item-option-color-picker.ts +30 -3
- package/angular/components/item-option-color-range.ts +30 -3
- package/angular/components/item-option-guidelines.ts +31 -4
- package/angular/components/item-option-panel.ts +41 -4
- package/angular/components/item-option-slider.ts +41 -4
- package/angular/components/item-option.ts +41 -4
- package/angular/esm/components/interactive-viz-item.d.ts +14 -5
- package/angular/esm/components/interactive-viz-item.js +30 -4
- package/angular/esm/components/item-option-color-picker.d.ts +11 -4
- package/angular/esm/components/item-option-color-picker.js +23 -3
- package/angular/esm/components/item-option-color-range.d.ts +11 -4
- package/angular/esm/components/item-option-color-range.js +23 -3
- package/angular/esm/components/item-option-guidelines.d.ts +11 -4
- package/angular/esm/components/item-option-guidelines.js +24 -4
- package/angular/esm/components/item-option-panel.d.ts +13 -4
- package/angular/esm/components/item-option-panel.js +30 -4
- package/angular/esm/components/item-option-slider.d.ts +13 -4
- package/angular/esm/components/item-option-slider.js +30 -4
- package/angular/esm/components/item-option.d.ts +13 -4
- package/angular/esm/components/item-option.js +30 -4
- package/angular/package.json +2 -2
- package/angular/utils/option-interaction/index.d.ts +2 -0
- package/angular/utils/option-interaction/is-same-option-value.d.ts +10 -0
- package/angular/utils/option-interaction/option-interaction-controller.d.ts +54 -0
- package/angular/utils/option-interaction/tests/option-interaction-controller.test.d.ts +1 -0
- package/angular/utils/store/base-store.d.ts +9 -0
- package/angular/utils/store/tests/store-base-history.test.d.ts +1 -0
- package/components/add-to-dashboard/index.cjs +1 -1
- package/components/add-to-dashboard/index.js +1 -1
- package/components/{add-to-dashboard-NwsCPIlg.cjs → add-to-dashboard-CzIuDtAq.cjs} +1 -1
- package/components/{add-to-dashboard-NcVHlqrc.js → add-to-dashboard-DGC0_hRB.js} +1 -1
- package/components/{base-store-SgJsjLap.cjs → base-store-D3whjduR.cjs} +1 -1
- package/components/{base-store-g0dt7ru7.js → base-store-DQYj8A1W.js} +3 -0
- package/components/{chart-helpers-Dng_LGfq.js → chart-helpers-Cbl3sRra.js} +3 -2
- package/components/chart-helpers-fMnqHRzC.cjs +20 -0
- package/components/{choropleth-map-options.config-D9-u-NwX.js → choropleth-map-options.config-Blu0Z2tR.js} +1 -1
- package/components/{choropleth-map-options.config-CXDGMiSJ.cjs → choropleth-map-options.config-DwFJ00CS.cjs} +1 -1
- package/components/{color-range-utils-CUCTsRXM.js → color-range-utils-CgwRGUkg.js} +18 -18
- package/components/{color-range-utils-BCFQAeY1.cjs → color-range-utils-D8uygiMe.cjs} +1 -1
- package/components/{heat-map-options.config-ChZeslEy.js → heat-map-options.config-BQkhkLPb.js} +16 -16
- package/components/{heat-map-options.config-DiNa8NnG.cjs → heat-map-options.config-DjQkB039.cjs} +1 -1
- package/components/{heat-table-options.config-BPCszrFn.js → heat-table-options.config-CMWWTeyo.js} +1 -1
- package/components/{heat-table-options.config-BvE6coaV.cjs → heat-table-options.config-D21xtaIk.cjs} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +9 -9
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.d.ts +2 -1
- package/components/interactive-viz-item/index.js +2 -2
- package/components/interactive-viz-item/interactive-viz-item.d.ts +34 -2
- package/components/interactive-viz-item/types.d.ts +17 -0
- package/components/{interactive-viz-item-CofUkpP6.js → interactive-viz-item-BKLOmawA.js} +166 -100
- package/components/interactive-viz-item-ojdH1uk0.cjs +268 -0
- package/components/is-same-option-value-B2oyvEqT.js +42 -0
- package/components/is-same-option-value-Cf6BQcs7.cjs +20 -0
- package/components/item-option/helpers/control-markup.d.ts +7 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.d.ts +1 -1
- package/components/item-option/index.js +1 -1
- package/components/item-option/item-option.d.ts +23 -2
- package/components/item-option/types.d.ts +19 -0
- package/components/{item-option-Cgx3c08E.js → item-option-DKLRnicU.js} +182 -136
- package/components/item-option-DpLdospV.cjs +285 -0
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.d.ts +1 -1
- package/components/item-option-color-picker/index.js +1 -1
- package/components/item-option-color-picker/item-option-color-picker.d.ts +17 -1
- package/components/item-option-color-picker-CNW7GsCO.cjs +37 -0
- package/components/item-option-color-picker-DDvsY7hV.js +129 -0
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.d.ts +1 -1
- package/components/item-option-color-range/index.js +1 -1
- package/components/item-option-color-range/item-option-color-range.d.ts +20 -1
- package/components/item-option-color-range-BqSbuSZh.cjs +101 -0
- package/components/item-option-color-range-FQduqtz3.js +265 -0
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.d.ts +1 -1
- package/components/item-option-guidelines/index.js +1 -1
- package/components/item-option-guidelines/item-option-guidelines.d.ts +16 -1
- package/components/{item-option-guidelines-DNJevmVD.js → item-option-guidelines-k5DwMONo.js} +132 -104
- package/components/item-option-guidelines-z9BsGR-l.cjs +138 -0
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.d.ts +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/item-option-panel/item-option-panel.d.ts +12 -1
- package/components/{item-option-panel-DHdnisRb.js → item-option-panel-BLXWIbjX.js} +18 -6
- package/components/{item-option-panel-Dl3aYBNe.cjs → item-option-panel-CU51qvgV.cjs} +6 -4
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.d.ts +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/item-option-slider/item-option-slider.d.ts +15 -2
- package/components/item-option-slider-BKtJfL3D.js +119 -0
- package/components/item-option-slider-Kz2eFBql.cjs +36 -0
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +5 -5
- package/components/option-interaction-controller-B8S1N_Oo.js +90 -0
- package/components/option-interaction-controller-D0U-CTpZ.cjs +20 -0
- package/components/{route-map-options.config-DdCaVtIF.cjs → route-map-options.config-DER6ENky.cjs} +1 -1
- package/components/{route-map-options.config-B7vT6KG_.js → route-map-options.config-DTcS47fW.js} +1 -1
- package/components/{spike-map-options.config-DkmRZ1JZ.js → spike-map-options.config-CPYfKWoF.js} +1 -1
- package/components/{spike-map-options.config-B3hDh2qU.cjs → spike-map-options.config-DeF1Whq5.cjs} +1 -1
- package/components/utils/store.cjs +1 -1
- package/components/utils/store.js +1 -1
- package/custom-elements.json +418 -104
- package/package.json +2 -2
- package/react/components/interactive-viz-item.component.ts +11 -2
- package/react/components/item-option-color-picker.component.ts +9 -3
- package/react/components/item-option-color-range.component.ts +9 -3
- package/react/components/item-option-guidelines.component.ts +9 -3
- package/react/components/item-option-panel.component.ts +12 -3
- package/react/components/item-option-slider.component.ts +12 -3
- package/react/components/item-option.component.ts +12 -3
- package/react/esm/components/interactive-viz-item.component.d.ts +8 -2
- package/react/esm/components/interactive-viz-item.component.js +7 -1
- package/react/esm/components/item-option-color-picker.component.d.ts +6 -2
- package/react/esm/components/item-option-color-picker.component.js +6 -2
- package/react/esm/components/item-option-color-range.component.d.ts +6 -2
- package/react/esm/components/item-option-color-range.component.js +6 -2
- package/react/esm/components/item-option-guidelines.component.d.ts +6 -2
- package/react/esm/components/item-option-guidelines.component.js +6 -2
- package/react/esm/components/item-option-panel.component.d.ts +8 -2
- package/react/esm/components/item-option-panel.component.js +8 -2
- package/react/esm/components/item-option-slider.component.d.ts +8 -2
- package/react/esm/components/item-option-slider.component.js +8 -2
- package/react/esm/components/item-option.component.d.ts +8 -2
- package/react/esm/components/item-option.component.js +8 -2
- package/react/luzmo-stub.d.ts +7 -0
- package/react/package.json +2 -2
- package/standalone/add-to-dashboard.js +40 -40
- package/standalone/chunks/{chart-helpers-DsIGsaDc.js → chart-helpers-CR-EUEPf.js} +2 -2
- package/standalone/chunks/{choropleth-map-options.config-Cs4Kvr9h.js → choropleth-map-options.config-CDMjKnJD.js} +1 -1
- package/standalone/chunks/{color-range-utils-CKDpd3gZ.js → color-range-utils-BVyHBRiq.js} +1 -1
- package/standalone/chunks/de-BkB0q1Eg.js +2 -0
- package/standalone/chunks/display-settings-binning-BeLLxd3i.js +38 -0
- package/standalone/chunks/display-settings-datetime-BkeiKIVV.js +199 -0
- package/standalone/chunks/display-settings-grand-totals-BuhpQKJ6.js +26 -0
- package/standalone/chunks/display-settings-numeric-m30IYI7I.js +172 -0
- package/standalone/chunks/display-settings-period-over-period-CqDlOSRn.js +209 -0
- package/standalone/chunks/embed-Bv1ps-EM.js +260 -0
- package/standalone/chunks/en-63f7j4v7.js +2 -0
- package/standalone/chunks/en-GB-QAmXQf8W.js +2 -0
- package/standalone/chunks/en-US-63f7j4v7.js +2 -0
- package/standalone/chunks/es-Bo0jStZn.js +2 -0
- package/standalone/chunks/{filters-DKgJcQGP.js → filters-CxgBXUF1.js} +61 -61
- package/standalone/chunks/{formula-codemirror-BbyvNEVD.js → formula-codemirror-Cq94j3-f.js} +17 -17
- package/standalone/chunks/fr-Co_qVhhV.js +2 -0
- package/standalone/chunks/{heat-map-options.config-DF5kjOOe.js → heat-map-options.config-DDQMD38W.js} +1 -1
- package/standalone/chunks/{heat-table-options.config-DaePzfHG.js → heat-table-options.config-B4K0Ygug.js} +1 -1
- package/standalone/chunks/is-same-option-value-7kXNF4st.js +2 -0
- package/standalone/chunks/item-option-action-button-group-BoyqF9vt.js +35 -0
- package/standalone/chunks/item-option-base-CBcDT8MX.js +38 -0
- package/standalone/chunks/item-option-color-palette-picker-C9PGAv4V.js +22 -0
- package/standalone/chunks/item-option-color-picker-D4fVJlqF.js +19 -0
- package/standalone/chunks/item-option-color-range-BlAdTguE.js +83 -0
- package/standalone/chunks/item-option-guidelines-DMsYsHDu.js +120 -0
- package/standalone/chunks/{item-option-multi-language-field-DPPpN2qg.js → item-option-multi-language-field-NUbm1drg.js} +1 -1
- package/standalone/chunks/{item-option-number-field-CkqJjInE.js → item-option-number-field-DRp7kbHL.js} +1 -1
- package/standalone/chunks/item-option-panel-cXrRclzM.js +316 -0
- package/standalone/chunks/{item-option-picker-BnwQPT9A.js → item-option-picker-Ba09L4Cs.js} +1 -1
- package/standalone/chunks/item-option-position-picker-GEGTnhjw.js +14 -0
- package/standalone/chunks/item-option-positions-number-field-n44s1k5v.js +31 -0
- package/standalone/chunks/{item-option-radio-button-group-BkymJq3E.js → item-option-radio-button-group-3s_b1NvR.js} +1 -1
- package/standalone/chunks/item-option-slider-DtY65Gxk.js +18 -0
- package/standalone/chunks/item-option-switch-4sJaI0mx.js +12 -0
- package/standalone/chunks/{item-option-text-field-D7bkuhsv.js → item-option-text-field-Bt6Lj6kh.js} +1 -1
- package/standalone/chunks/{item-slot-picker-panel-D4BMxGs9.js → item-slot-picker-panel-BOSVFBIy.js} +43 -43
- package/standalone/chunks/load-data-fields-for-datasets-CDlut-6S.js +25 -0
- package/standalone/chunks/localized-decorator-DosMCCQo.js +2 -0
- package/standalone/chunks/{version-BW4Ixl63.js → localized-mixin-BWJj88bd.js} +1 -1
- package/standalone/chunks/nl-CQz2jrVx.js +2 -0
- package/standalone/chunks/option-interaction-controller-BuwRr21c.js +2 -0
- package/standalone/chunks/{route-map-options.config-D7FfzIiU.js → route-map-options.config-CGBkHnhM.js} +1 -1
- package/standalone/chunks/{spike-map-options.config-CZiFzDm9.js → spike-map-options.config-CSenlJ_F.js} +1 -1
- package/standalone/interactive-viz-item.js +62 -55
- package/standalone/item-grid.js +10 -10
- package/standalone/manifest.json +44 -43
- package/utils/option-interaction/index.d.ts +2 -0
- package/utils/option-interaction/is-same-option-value.d.ts +10 -0
- package/utils/option-interaction/option-interaction-controller.d.ts +54 -0
- package/utils/option-interaction/tests/option-interaction-controller.test.d.ts +1 -0
- package/utils/store/base-store.d.ts +9 -0
- package/utils/store/tests/store-base-history.test.d.ts +1 -0
- package/components/chart-helpers-ufZ6VbXs.cjs +0 -20
- package/components/interactive-viz-item-D537mo3l.cjs +0 -261
- package/components/item-option-CqGDFdPj.cjs +0 -269
- package/components/item-option-color-picker-BpPoOO2b.cjs +0 -34
- package/components/item-option-color-picker-cojuCvu5.js +0 -84
- package/components/item-option-color-range-CMBEx1fi.cjs +0 -98
- package/components/item-option-color-range-Dt7Bv06p.js +0 -217
- package/components/item-option-guidelines-Beh0DlG0.cjs +0 -135
- package/components/item-option-slider-Bo5vs6nr.js +0 -89
- package/components/item-option-slider-CyWKWr5D.cjs +0 -33
- package/standalone/chunks/color-7IgCGZKz.js +0 -2
- package/standalone/chunks/de-mdZT2W1G.js +0 -2
- package/standalone/chunks/display-settings-binning-Byffw2Kl.js +0 -38
- package/standalone/chunks/display-settings-datetime-CD52d6Sv.js +0 -199
- package/standalone/chunks/display-settings-grand-totals-Cky99LX9.js +0 -26
- package/standalone/chunks/display-settings-numeric-C9ea7Tgc.js +0 -172
- package/standalone/chunks/display-settings-period-over-period-BLSGumkD.js +0 -209
- package/standalone/chunks/embed-BfHBKhIe.js +0 -231
- package/standalone/chunks/en-CSboh17P.js +0 -2
- package/standalone/chunks/en-GB-HoXKQBOY.js +0 -2
- package/standalone/chunks/en-US-CSboh17P.js +0 -2
- package/standalone/chunks/es-Di5D8JFd.js +0 -2
- package/standalone/chunks/fr-DZku7iB9.js +0 -2
- package/standalone/chunks/item-option-action-button-group-BEAwPHVw.js +0 -35
- package/standalone/chunks/item-option-base-CRUxNhJQ.js +0 -38
- package/standalone/chunks/item-option-color-palette-picker-CBz61iZb.js +0 -22
- package/standalone/chunks/item-option-color-picker-Cr7ujQNO.js +0 -16
- package/standalone/chunks/item-option-color-range-CyJd1LZ_.js +0 -80
- package/standalone/chunks/item-option-guidelines-6NjpzS6b.js +0 -117
- package/standalone/chunks/item-option-panel-VxvWU56c.js +0 -298
- package/standalone/chunks/item-option-position-picker-Bkc4JvJX.js +0 -14
- package/standalone/chunks/item-option-positions-number-field-Dr_315TE.js +0 -31
- package/standalone/chunks/item-option-slider-l9wt7_0c.js +0 -15
- package/standalone/chunks/item-option-switch-DeihDHhM.js +0 -12
- package/standalone/chunks/load-data-fields-for-datasets-ClctSj6y.js +0 -25
- package/standalone/chunks/localized-decorator-DJVBmJVH.js +0 -2
- package/standalone/chunks/nl-CViTevL3.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/analytics-components-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cumulio-internal/analytics-components-kit.git"
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
"@lit/context": "^1.1.5",
|
|
347
347
|
"@lit/localize": "^0.12.2",
|
|
348
348
|
"@lit/task": "^1.0.1",
|
|
349
|
-
"@luzmo/embed": "^7.5.0",
|
|
349
|
+
"@luzmo/embed": "^7.5.0 || ^8.0.0",
|
|
350
350
|
"@luzmo/icons": "^1.0.1-alpha.49",
|
|
351
351
|
"@luzmo/lucero": "^2.6.1",
|
|
352
352
|
"colorjs.io": "^0.5.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent, EventName, ReactWebComponent } from '@lit/react';
|
|
3
|
-
import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
3
|
+
import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, InteractiveVizItemInteractionEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
4
4
|
|
|
5
5
|
const LuzmoInteractiveVizItemComponent = createComponent({
|
|
6
6
|
tagName: 'luzmo-interactive-viz-item',
|
|
@@ -9,6 +9,9 @@ const LuzmoInteractiveVizItemComponent = createComponent({
|
|
|
9
9
|
events: {
|
|
10
10
|
onLuzmoChartOptionsChanged: 'luzmo-chart-options-changed' as EventName<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>,
|
|
11
11
|
onLuzmoChartChanged: 'luzmo-chart-changed' as EventName<CustomEvent<InteractiveVizItemChartChangedEventDetail>>,
|
|
12
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start' as EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>,
|
|
13
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end' as EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>,
|
|
14
|
+
onLuzmoOptionInteractionCancel: 'luzmo-option-interaction-cancel' as EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>,
|
|
12
15
|
onLuzmoFeedbackChanged: 'luzmo-feedback-changed' as EventName<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>,
|
|
13
16
|
onLuzmoChartAdded: 'luzmo-chart-added' as EventName<CustomEvent<AddToDashboardChartAddedEventDetail>>,
|
|
14
17
|
onLuzmoChartAddFailed: 'luzmo-chart-add-failed' as EventName<CustomEvent<AddToDashboardChartAddFailedEventDetail>>
|
|
@@ -19,7 +22,10 @@ const LuzmoInteractiveVizItemComponent = createComponent({
|
|
|
19
22
|
* React wrapper for <luzmo-interactive-viz-item>
|
|
20
23
|
*
|
|
21
24
|
* @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set.
|
|
22
|
-
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set.
|
|
25
|
+
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. With `live-interactions`, option updates inside a gesture carry `interaction`.
|
|
26
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: an option drag or held key in the config panel first changed its value, right before that `luzmo-chart-changed`; `detail.optionKey` names the option and `detail.chart` is the chart it started on.
|
|
27
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last `luzmo-chart-changed`. `detail.changed` is false when the value is back at its start; `detail.chart` is still the chart it started on.
|
|
28
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the gesture was cancelled and the control reverted to its start value.
|
|
23
29
|
* @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes.
|
|
24
30
|
* @event onLuzmoChartAdded - Fired by the inner `luzmo-add-to-dashboard` after the chart was saved.
|
|
25
31
|
* @event onLuzmoChartAddFailed - Fired by the inner `luzmo-add-to-dashboard` when saving failed.
|
|
@@ -29,6 +35,9 @@ export const LuzmoInteractiveVizItem = LuzmoInteractiveVizItemComponent as React
|
|
|
29
35
|
{
|
|
30
36
|
onLuzmoChartOptionsChanged: EventName<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
|
|
31
37
|
onLuzmoChartChanged: EventName<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
|
|
38
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
39
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
40
|
+
onLuzmoOptionInteractionCancel: EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
32
41
|
onLuzmoFeedbackChanged: EventName<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
|
|
33
42
|
onLuzmoChartAdded: EventName<CustomEvent<AddToDashboardChartAddedEventDetail>>;
|
|
34
43
|
onLuzmoChartAddFailed: EventName<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
|
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent, EventName, ReactWebComponent } from '@lit/react';
|
|
3
|
-
import { LuzmoItemOptionColorPicker as LuzmoItemOptionColorPickerClass, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-picker';
|
|
3
|
+
import { LuzmoItemOptionColorPicker as LuzmoItemOptionColorPickerClass, ItemOptionChangedEventDetail, ItemOptionInteractionEventDetail } from '@luzmo/analytics-components-kit/item-option-color-picker';
|
|
4
4
|
|
|
5
5
|
const LuzmoItemOptionColorPickerComponent = createComponent({
|
|
6
6
|
tagName: 'luzmo-item-option-color-picker',
|
|
7
7
|
elementClass: LuzmoItemOptionColorPickerClass,
|
|
8
8
|
react: React,
|
|
9
9
|
events: {
|
|
10
|
-
onLuzmoOptionChanged: 'luzmo-option-changed' as EventName<CustomEvent<ItemOptionChangedEventDetail
|
|
10
|
+
onLuzmoOptionChanged: 'luzmo-option-changed' as EventName<CustomEvent<ItemOptionChangedEventDetail>>,
|
|
11
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
12
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>
|
|
11
13
|
}
|
|
12
14
|
});
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* React wrapper for <luzmo-item-option-color-picker>
|
|
16
18
|
*
|
|
17
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
19
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted on every color change and carries `interaction` inside a gesture.
|
|
20
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color area, hue or opacity drag or held key first changed the color, right before that value update. A press that never changes the color emits no lifecycle.
|
|
21
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended (including when the popover closes), after its last value update.
|
|
18
22
|
*/
|
|
19
23
|
export const LuzmoItemOptionColorPicker = LuzmoItemOptionColorPickerComponent as ReactWebComponent<
|
|
20
24
|
LuzmoItemOptionColorPickerClass,
|
|
21
25
|
{
|
|
22
26
|
onLuzmoOptionChanged: EventName<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
27
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
28
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
23
29
|
}
|
|
24
30
|
>;
|
|
25
31
|
|
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent, EventName, ReactWebComponent } from '@lit/react';
|
|
3
|
-
import { LuzmoItemOptionColorRange as LuzmoItemOptionColorRangeClass, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-range';
|
|
3
|
+
import { LuzmoItemOptionColorRange as LuzmoItemOptionColorRangeClass, ItemOptionChangedEventDetail, ItemOptionInteractionEventDetail } from '@luzmo/analytics-components-kit/item-option-color-range';
|
|
4
4
|
|
|
5
5
|
const LuzmoItemOptionColorRangeComponent = createComponent({
|
|
6
6
|
tagName: 'luzmo-item-option-color-range',
|
|
7
7
|
elementClass: LuzmoItemOptionColorRangeClass,
|
|
8
8
|
react: React,
|
|
9
9
|
events: {
|
|
10
|
-
onLuzmoOptionChanged: 'luzmo-option-changed' as EventName<CustomEvent<ItemOptionChangedEventDetail
|
|
10
|
+
onLuzmoOptionChanged: 'luzmo-option-changed' as EventName<CustomEvent<ItemOptionChangedEventDetail>>,
|
|
11
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
12
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>
|
|
11
13
|
}
|
|
12
14
|
});
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* React wrapper for <luzmo-item-option-color-range>
|
|
16
18
|
*
|
|
17
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
19
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted immediately and carries `interaction` while a stop's color is dragged.
|
|
20
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color drag or held key on one stop first changed its color, right before that value update. Each stop has its own gestures; one that never changes its color emits no lifecycle.
|
|
21
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: that stop's gesture ended, after its last value update.
|
|
18
22
|
*/
|
|
19
23
|
export const LuzmoItemOptionColorRange = LuzmoItemOptionColorRangeComponent as ReactWebComponent<
|
|
20
24
|
LuzmoItemOptionColorRangeClass,
|
|
21
25
|
{
|
|
22
26
|
onLuzmoOptionChanged: EventName<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
27
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
28
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
23
29
|
}
|
|
24
30
|
>;
|
|
25
31
|
|
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent, EventName, ReactWebComponent } from '@lit/react';
|
|
3
|
-
import { LuzmoItemOptionGuidelines as LuzmoItemOptionGuidelinesClass, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-guidelines';
|
|
3
|
+
import { LuzmoItemOptionGuidelines as LuzmoItemOptionGuidelinesClass, ItemOptionChangedEventDetail, ItemOptionInteractionEventDetail } from '@luzmo/analytics-components-kit/item-option-guidelines';
|
|
4
4
|
|
|
5
5
|
const LuzmoItemOptionGuidelinesComponent = createComponent({
|
|
6
6
|
tagName: 'luzmo-item-option-guidelines',
|
|
7
7
|
elementClass: LuzmoItemOptionGuidelinesClass,
|
|
8
8
|
react: React,
|
|
9
9
|
events: {
|
|
10
|
-
onLuzmoOptionChanged: 'luzmo-option-changed' as EventName<CustomEvent<ItemOptionChangedEventDetail
|
|
10
|
+
onLuzmoOptionChanged: 'luzmo-option-changed' as EventName<CustomEvent<ItemOptionChangedEventDetail>>,
|
|
11
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
12
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>
|
|
11
13
|
}
|
|
12
14
|
});
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* React wrapper for <luzmo-item-option-guidelines>
|
|
16
18
|
*
|
|
17
|
-
* @event onLuzmoOptionChanged - Emitted when the guidelines value changes.
|
|
19
|
+
* @event onLuzmoOptionChanged - Emitted when the guidelines value changes. With `live-interactions`, emitted immediately and carries `interaction` while a line's color is dragged.
|
|
20
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color drag or held key on one line first changed its color, right before that value update. Each line has its own gestures; one that never changes its color emits no lifecycle.
|
|
21
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: that line's gesture ended, after its last value update.
|
|
18
22
|
*/
|
|
19
23
|
export const LuzmoItemOptionGuidelines = LuzmoItemOptionGuidelinesComponent as ReactWebComponent<
|
|
20
24
|
LuzmoItemOptionGuidelinesClass,
|
|
21
25
|
{
|
|
22
26
|
onLuzmoOptionChanged: EventName<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
27
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
28
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
23
29
|
}
|
|
24
30
|
>;
|
|
25
31
|
|
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent, EventName, ReactWebComponent } from '@lit/react';
|
|
3
|
-
import { LuzmoItemOptionPanel as LuzmoItemOptionPanelClass, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-panel';
|
|
3
|
+
import { LuzmoItemOptionPanel as LuzmoItemOptionPanelClass, ItemOptionInteractionEventDetail, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-panel';
|
|
4
4
|
|
|
5
5
|
const LuzmoItemOptionPanelComponent = createComponent({
|
|
6
6
|
tagName: 'luzmo-item-option-panel',
|
|
7
7
|
elementClass: LuzmoItemOptionPanelClass,
|
|
8
8
|
react: React,
|
|
9
9
|
events: {
|
|
10
|
-
onLuzmoOptionsChanged: 'luzmo-options-changed' as EventName<CustomEvent<ItemOptionsChangedEventDetail
|
|
10
|
+
onLuzmoOptionsChanged: 'luzmo-options-changed' as EventName<CustomEvent<ItemOptionsChangedEventDetail>>,
|
|
11
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
12
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
13
|
+
onLuzmoOptionInteractionCancel: 'luzmo-option-interaction-cancel' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>
|
|
11
14
|
}
|
|
12
15
|
});
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
18
|
* React wrapper for <luzmo-item-option-panel>
|
|
16
19
|
*
|
|
17
|
-
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed
|
|
20
|
+
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed. With `live-interactions`, updates inside a gesture carry `interaction`.
|
|
21
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: bubbles from the option whose drag or held key first changed its value, right before that options update; `detail.optionKey` names it.
|
|
22
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: bubbles from the option whose gesture ended, after its last options update.
|
|
23
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: bubbles from the option whose gesture was cancelled and reverted.
|
|
18
24
|
*/
|
|
19
25
|
export const LuzmoItemOptionPanel = LuzmoItemOptionPanelComponent as ReactWebComponent<
|
|
20
26
|
LuzmoItemOptionPanelClass,
|
|
21
27
|
{
|
|
22
28
|
onLuzmoOptionsChanged: EventName<CustomEvent<ItemOptionsChangedEventDetail>>;
|
|
29
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
30
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
31
|
+
onLuzmoOptionInteractionCancel: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
23
32
|
}
|
|
24
33
|
>;
|
|
25
34
|
|
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent, EventName, ReactWebComponent } from '@lit/react';
|
|
3
|
-
import { LuzmoItemOptionSlider as LuzmoItemOptionSliderClass, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-slider';
|
|
3
|
+
import { LuzmoItemOptionSlider as LuzmoItemOptionSliderClass, ItemOptionChangedEventDetail, ItemOptionInteractionEventDetail } from '@luzmo/analytics-components-kit/item-option-slider';
|
|
4
4
|
|
|
5
5
|
const LuzmoItemOptionSliderComponent = createComponent({
|
|
6
6
|
tagName: 'luzmo-item-option-slider',
|
|
7
7
|
elementClass: LuzmoItemOptionSliderClass,
|
|
8
8
|
react: React,
|
|
9
9
|
events: {
|
|
10
|
-
onLuzmoOptionChanged: 'luzmo-option-changed' as EventName<CustomEvent<ItemOptionChangedEventDetail
|
|
10
|
+
onLuzmoOptionChanged: 'luzmo-option-changed' as EventName<CustomEvent<ItemOptionChangedEventDetail>>,
|
|
11
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
12
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
13
|
+
onLuzmoOptionInteractionCancel: 'luzmo-option-interaction-cancel' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>
|
|
11
14
|
}
|
|
12
15
|
});
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
18
|
* React wrapper for <luzmo-item-option-slider>
|
|
16
19
|
*
|
|
17
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
20
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted on every drag or key step and carries `interaction` inside a gesture.
|
|
21
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a drag or held key first changed the value, right before that value update. A press that never changes the value emits no lifecycle.
|
|
22
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last value update. `changed` is false when the value is back at its start.
|
|
23
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the pointer was cancelled and the slider reverted to its start value.
|
|
18
24
|
*/
|
|
19
25
|
export const LuzmoItemOptionSlider = LuzmoItemOptionSliderComponent as ReactWebComponent<
|
|
20
26
|
LuzmoItemOptionSliderClass,
|
|
21
27
|
{
|
|
22
28
|
onLuzmoOptionChanged: EventName<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
29
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
30
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
31
|
+
onLuzmoOptionInteractionCancel: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
23
32
|
}
|
|
24
33
|
>;
|
|
25
34
|
|
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent, EventName, ReactWebComponent } from '@lit/react';
|
|
3
|
-
import { LuzmoItemOption as LuzmoItemOptionClass, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option';
|
|
3
|
+
import { LuzmoItemOption as LuzmoItemOptionClass, ItemOptionInteractionEventDetail, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option';
|
|
4
4
|
|
|
5
5
|
const LuzmoItemOptionComponent = createComponent({
|
|
6
6
|
tagName: 'luzmo-item-option',
|
|
7
7
|
elementClass: LuzmoItemOptionClass,
|
|
8
8
|
react: React,
|
|
9
9
|
events: {
|
|
10
|
-
onLuzmoOptionsChanged: 'luzmo-options-changed' as EventName<CustomEvent<ItemOptionsChangedEventDetail
|
|
10
|
+
onLuzmoOptionsChanged: 'luzmo-options-changed' as EventName<CustomEvent<ItemOptionsChangedEventDetail>>,
|
|
11
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
12
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>,
|
|
13
|
+
onLuzmoOptionInteractionCancel: 'luzmo-option-interaction-cancel' as EventName<CustomEvent<ItemOptionInteractionEventDetail>>
|
|
11
14
|
}
|
|
12
15
|
});
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
18
|
* React wrapper for <luzmo-item-option>
|
|
16
19
|
*
|
|
17
|
-
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed
|
|
20
|
+
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed. With `live-interactions`, updates inside a gesture carry `interaction`.
|
|
21
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a drag or held key first changed the control's value, right before that options update. A press that never changes the value emits no lifecycle. `detail.optionKey` is set.
|
|
22
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last options update. `detail.changed` is false when the value is back at its start.
|
|
23
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the gesture was cancelled and the control reverted to its start value.
|
|
18
24
|
*/
|
|
19
25
|
export const LuzmoItemOption = LuzmoItemOptionComponent as ReactWebComponent<
|
|
20
26
|
LuzmoItemOptionClass,
|
|
21
27
|
{
|
|
22
28
|
onLuzmoOptionsChanged: EventName<CustomEvent<ItemOptionsChangedEventDetail>>;
|
|
29
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
30
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
31
|
+
onLuzmoOptionInteractionCancel: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
23
32
|
}
|
|
24
33
|
>;
|
|
25
34
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
2
|
+
import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, InteractiveVizItemInteractionEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-interactive-viz-item>
|
|
5
5
|
*
|
|
6
6
|
* @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set.
|
|
7
|
-
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set.
|
|
7
|
+
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. With `live-interactions`, option updates inside a gesture carry `interaction`.
|
|
8
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: an option drag or held key in the config panel first changed its value, right before that `luzmo-chart-changed`; `detail.optionKey` names the option and `detail.chart` is the chart it started on.
|
|
9
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last `luzmo-chart-changed`. `detail.changed` is false when the value is back at its start; `detail.chart` is still the chart it started on.
|
|
10
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the gesture was cancelled and the control reverted to its start value.
|
|
8
11
|
* @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes.
|
|
9
12
|
* @event onLuzmoChartAdded - Fired by the inner `luzmo-add-to-dashboard` after the chart was saved.
|
|
10
13
|
* @event onLuzmoChartAddFailed - Fired by the inner `luzmo-add-to-dashboard` when saving failed.
|
|
@@ -12,6 +15,9 @@ import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, AddToDashboard
|
|
|
12
15
|
export declare const LuzmoInteractiveVizItem: ReactWebComponent<LuzmoInteractiveVizItemClass, {
|
|
13
16
|
onLuzmoChartOptionsChanged: EventName<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
|
|
14
17
|
onLuzmoChartChanged: EventName<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
|
|
18
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
19
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
20
|
+
onLuzmoOptionInteractionCancel: EventName<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
15
21
|
onLuzmoFeedbackChanged: EventName<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
|
|
16
22
|
onLuzmoChartAdded: EventName<CustomEvent<AddToDashboardChartAddedEventDetail>>;
|
|
17
23
|
onLuzmoChartAddFailed: EventName<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
|
|
@@ -8,6 +8,9 @@ const LuzmoInteractiveVizItemComponent = createComponent({
|
|
|
8
8
|
events: {
|
|
9
9
|
onLuzmoChartOptionsChanged: 'luzmo-chart-options-changed',
|
|
10
10
|
onLuzmoChartChanged: 'luzmo-chart-changed',
|
|
11
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start',
|
|
12
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end',
|
|
13
|
+
onLuzmoOptionInteractionCancel: 'luzmo-option-interaction-cancel',
|
|
11
14
|
onLuzmoFeedbackChanged: 'luzmo-feedback-changed',
|
|
12
15
|
onLuzmoChartAdded: 'luzmo-chart-added',
|
|
13
16
|
onLuzmoChartAddFailed: 'luzmo-chart-add-failed'
|
|
@@ -17,7 +20,10 @@ const LuzmoInteractiveVizItemComponent = createComponent({
|
|
|
17
20
|
* React wrapper for <luzmo-interactive-viz-item>
|
|
18
21
|
*
|
|
19
22
|
* @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set.
|
|
20
|
-
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set.
|
|
23
|
+
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. With `live-interactions`, option updates inside a gesture carry `interaction`.
|
|
24
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: an option drag or held key in the config panel first changed its value, right before that `luzmo-chart-changed`; `detail.optionKey` names the option and `detail.chart` is the chart it started on.
|
|
25
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last `luzmo-chart-changed`. `detail.changed` is false when the value is back at its start; `detail.chart` is still the chart it started on.
|
|
26
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the gesture was cancelled and the control reverted to its start value.
|
|
21
27
|
* @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes.
|
|
22
28
|
* @event onLuzmoChartAdded - Fired by the inner `luzmo-add-to-dashboard` after the chart was saved.
|
|
23
29
|
* @event onLuzmoChartAddFailed - Fired by the inner `luzmo-add-to-dashboard` when saving failed.
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoItemOptionColorPicker as LuzmoItemOptionColorPickerClass, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-picker';
|
|
2
|
+
import { LuzmoItemOptionColorPicker as LuzmoItemOptionColorPickerClass, ItemOptionChangedEventDetail, ItemOptionInteractionEventDetail } from '@luzmo/analytics-components-kit/item-option-color-picker';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-item-option-color-picker>
|
|
5
5
|
*
|
|
6
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
6
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted on every color change and carries `interaction` inside a gesture.
|
|
7
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color area, hue or opacity drag or held key first changed the color, right before that value update. A press that never changes the color emits no lifecycle.
|
|
8
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended (including when the popover closes), after its last value update.
|
|
7
9
|
*/
|
|
8
10
|
export declare const LuzmoItemOptionColorPicker: ReactWebComponent<LuzmoItemOptionColorPickerClass, {
|
|
9
11
|
onLuzmoOptionChanged: EventName<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
12
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
13
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
10
14
|
}>;
|
|
11
15
|
/** The underlying custom element type for LuzmoItemOptionColorPicker */
|
|
12
16
|
export type LuzmoItemOptionColorPickerElement = LuzmoItemOptionColorPickerClass;
|
|
@@ -6,12 +6,16 @@ const LuzmoItemOptionColorPickerComponent = createComponent({
|
|
|
6
6
|
elementClass: LuzmoItemOptionColorPickerClass,
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
|
-
onLuzmoOptionChanged: 'luzmo-option-changed'
|
|
9
|
+
onLuzmoOptionChanged: 'luzmo-option-changed',
|
|
10
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start',
|
|
11
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end'
|
|
10
12
|
}
|
|
11
13
|
});
|
|
12
14
|
/**
|
|
13
15
|
* React wrapper for <luzmo-item-option-color-picker>
|
|
14
16
|
*
|
|
15
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
17
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted on every color change and carries `interaction` inside a gesture.
|
|
18
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color area, hue or opacity drag or held key first changed the color, right before that value update. A press that never changes the color emits no lifecycle.
|
|
19
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended (including when the popover closes), after its last value update.
|
|
16
20
|
*/
|
|
17
21
|
export const LuzmoItemOptionColorPicker = LuzmoItemOptionColorPickerComponent;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoItemOptionColorRange as LuzmoItemOptionColorRangeClass, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-range';
|
|
2
|
+
import { LuzmoItemOptionColorRange as LuzmoItemOptionColorRangeClass, ItemOptionChangedEventDetail, ItemOptionInteractionEventDetail } from '@luzmo/analytics-components-kit/item-option-color-range';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-item-option-color-range>
|
|
5
5
|
*
|
|
6
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
6
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted immediately and carries `interaction` while a stop's color is dragged.
|
|
7
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color drag or held key on one stop first changed its color, right before that value update. Each stop has its own gestures; one that never changes its color emits no lifecycle.
|
|
8
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: that stop's gesture ended, after its last value update.
|
|
7
9
|
*/
|
|
8
10
|
export declare const LuzmoItemOptionColorRange: ReactWebComponent<LuzmoItemOptionColorRangeClass, {
|
|
9
11
|
onLuzmoOptionChanged: EventName<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
12
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
13
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
10
14
|
}>;
|
|
11
15
|
/** The underlying custom element type for LuzmoItemOptionColorRange */
|
|
12
16
|
export type LuzmoItemOptionColorRangeElement = LuzmoItemOptionColorRangeClass;
|
|
@@ -6,12 +6,16 @@ const LuzmoItemOptionColorRangeComponent = createComponent({
|
|
|
6
6
|
elementClass: LuzmoItemOptionColorRangeClass,
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
|
-
onLuzmoOptionChanged: 'luzmo-option-changed'
|
|
9
|
+
onLuzmoOptionChanged: 'luzmo-option-changed',
|
|
10
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start',
|
|
11
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end'
|
|
10
12
|
}
|
|
11
13
|
});
|
|
12
14
|
/**
|
|
13
15
|
* React wrapper for <luzmo-item-option-color-range>
|
|
14
16
|
*
|
|
15
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
17
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted immediately and carries `interaction` while a stop's color is dragged.
|
|
18
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color drag or held key on one stop first changed its color, right before that value update. Each stop has its own gestures; one that never changes its color emits no lifecycle.
|
|
19
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: that stop's gesture ended, after its last value update.
|
|
16
20
|
*/
|
|
17
21
|
export const LuzmoItemOptionColorRange = LuzmoItemOptionColorRangeComponent;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoItemOptionGuidelines as LuzmoItemOptionGuidelinesClass, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-guidelines';
|
|
2
|
+
import { LuzmoItemOptionGuidelines as LuzmoItemOptionGuidelinesClass, ItemOptionChangedEventDetail, ItemOptionInteractionEventDetail } from '@luzmo/analytics-components-kit/item-option-guidelines';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-item-option-guidelines>
|
|
5
5
|
*
|
|
6
|
-
* @event onLuzmoOptionChanged - Emitted when the guidelines value changes.
|
|
6
|
+
* @event onLuzmoOptionChanged - Emitted when the guidelines value changes. With `live-interactions`, emitted immediately and carries `interaction` while a line's color is dragged.
|
|
7
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color drag or held key on one line first changed its color, right before that value update. Each line has its own gestures; one that never changes its color emits no lifecycle.
|
|
8
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: that line's gesture ended, after its last value update.
|
|
7
9
|
*/
|
|
8
10
|
export declare const LuzmoItemOptionGuidelines: ReactWebComponent<LuzmoItemOptionGuidelinesClass, {
|
|
9
11
|
onLuzmoOptionChanged: EventName<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
12
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
13
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
10
14
|
}>;
|
|
11
15
|
/** The underlying custom element type for LuzmoItemOptionGuidelines */
|
|
12
16
|
export type LuzmoItemOptionGuidelinesElement = LuzmoItemOptionGuidelinesClass;
|
|
@@ -6,12 +6,16 @@ const LuzmoItemOptionGuidelinesComponent = createComponent({
|
|
|
6
6
|
elementClass: LuzmoItemOptionGuidelinesClass,
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
|
-
onLuzmoOptionChanged: 'luzmo-option-changed'
|
|
9
|
+
onLuzmoOptionChanged: 'luzmo-option-changed',
|
|
10
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start',
|
|
11
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end'
|
|
10
12
|
}
|
|
11
13
|
});
|
|
12
14
|
/**
|
|
13
15
|
* React wrapper for <luzmo-item-option-guidelines>
|
|
14
16
|
*
|
|
15
|
-
* @event onLuzmoOptionChanged - Emitted when the guidelines value changes.
|
|
17
|
+
* @event onLuzmoOptionChanged - Emitted when the guidelines value changes. With `live-interactions`, emitted immediately and carries `interaction` while a line's color is dragged.
|
|
18
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a color drag or held key on one line first changed its color, right before that value update. Each line has its own gestures; one that never changes its color emits no lifecycle.
|
|
19
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: that line's gesture ended, after its last value update.
|
|
16
20
|
*/
|
|
17
21
|
export const LuzmoItemOptionGuidelines = LuzmoItemOptionGuidelinesComponent;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoItemOptionPanel as LuzmoItemOptionPanelClass, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-panel';
|
|
2
|
+
import { LuzmoItemOptionPanel as LuzmoItemOptionPanelClass, ItemOptionInteractionEventDetail, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-panel';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-item-option-panel>
|
|
5
5
|
*
|
|
6
|
-
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed
|
|
6
|
+
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed. With `live-interactions`, updates inside a gesture carry `interaction`.
|
|
7
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: bubbles from the option whose drag or held key first changed its value, right before that options update; `detail.optionKey` names it.
|
|
8
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: bubbles from the option whose gesture ended, after its last options update.
|
|
9
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: bubbles from the option whose gesture was cancelled and reverted.
|
|
7
10
|
*/
|
|
8
11
|
export declare const LuzmoItemOptionPanel: ReactWebComponent<LuzmoItemOptionPanelClass, {
|
|
9
12
|
onLuzmoOptionsChanged: EventName<CustomEvent<ItemOptionsChangedEventDetail>>;
|
|
13
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
14
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
15
|
+
onLuzmoOptionInteractionCancel: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
10
16
|
}>;
|
|
11
17
|
/** The underlying custom element type for LuzmoItemOptionPanel */
|
|
12
18
|
export type LuzmoItemOptionPanelElement = LuzmoItemOptionPanelClass;
|
|
@@ -6,12 +6,18 @@ const LuzmoItemOptionPanelComponent = createComponent({
|
|
|
6
6
|
elementClass: LuzmoItemOptionPanelClass,
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
|
-
onLuzmoOptionsChanged: 'luzmo-options-changed'
|
|
9
|
+
onLuzmoOptionsChanged: 'luzmo-options-changed',
|
|
10
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start',
|
|
11
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end',
|
|
12
|
+
onLuzmoOptionInteractionCancel: 'luzmo-option-interaction-cancel'
|
|
10
13
|
}
|
|
11
14
|
});
|
|
12
15
|
/**
|
|
13
16
|
* React wrapper for <luzmo-item-option-panel>
|
|
14
17
|
*
|
|
15
|
-
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed
|
|
18
|
+
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed. With `live-interactions`, updates inside a gesture carry `interaction`.
|
|
19
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: bubbles from the option whose drag or held key first changed its value, right before that options update; `detail.optionKey` names it.
|
|
20
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: bubbles from the option whose gesture ended, after its last options update.
|
|
21
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: bubbles from the option whose gesture was cancelled and reverted.
|
|
16
22
|
*/
|
|
17
23
|
export const LuzmoItemOptionPanel = LuzmoItemOptionPanelComponent;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoItemOptionSlider as LuzmoItemOptionSliderClass, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-slider';
|
|
2
|
+
import { LuzmoItemOptionSlider as LuzmoItemOptionSliderClass, ItemOptionChangedEventDetail, ItemOptionInteractionEventDetail } from '@luzmo/analytics-components-kit/item-option-slider';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-item-option-slider>
|
|
5
5
|
*
|
|
6
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
6
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted on every drag or key step and carries `interaction` inside a gesture.
|
|
7
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a drag or held key first changed the value, right before that value update. A press that never changes the value emits no lifecycle.
|
|
8
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last value update. `changed` is false when the value is back at its start.
|
|
9
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the pointer was cancelled and the slider reverted to its start value.
|
|
7
10
|
*/
|
|
8
11
|
export declare const LuzmoItemOptionSlider: ReactWebComponent<LuzmoItemOptionSliderClass, {
|
|
9
12
|
onLuzmoOptionChanged: EventName<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
13
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
14
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
15
|
+
onLuzmoOptionInteractionCancel: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
10
16
|
}>;
|
|
11
17
|
/** The underlying custom element type for LuzmoItemOptionSlider */
|
|
12
18
|
export type LuzmoItemOptionSliderElement = LuzmoItemOptionSliderClass;
|
|
@@ -6,12 +6,18 @@ const LuzmoItemOptionSliderComponent = createComponent({
|
|
|
6
6
|
elementClass: LuzmoItemOptionSliderClass,
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
|
-
onLuzmoOptionChanged: 'luzmo-option-changed'
|
|
9
|
+
onLuzmoOptionChanged: 'luzmo-option-changed',
|
|
10
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start',
|
|
11
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end',
|
|
12
|
+
onLuzmoOptionInteractionCancel: 'luzmo-option-interaction-cancel'
|
|
10
13
|
}
|
|
11
14
|
});
|
|
12
15
|
/**
|
|
13
16
|
* React wrapper for <luzmo-item-option-slider>
|
|
14
17
|
*
|
|
15
|
-
* @event onLuzmoOptionChanged - Emitted when the option value changes.
|
|
18
|
+
* @event onLuzmoOptionChanged - Emitted when the option value changes. With `live-interactions`, emitted on every drag or key step and carries `interaction` inside a gesture.
|
|
19
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a drag or held key first changed the value, right before that value update. A press that never changes the value emits no lifecycle.
|
|
20
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last value update. `changed` is false when the value is back at its start.
|
|
21
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the pointer was cancelled and the slider reverted to its start value.
|
|
16
22
|
*/
|
|
17
23
|
export const LuzmoItemOptionSlider = LuzmoItemOptionSliderComponent;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoItemOption as LuzmoItemOptionClass, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option';
|
|
2
|
+
import { LuzmoItemOption as LuzmoItemOptionClass, ItemOptionInteractionEventDetail, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-item-option>
|
|
5
5
|
*
|
|
6
|
-
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed
|
|
6
|
+
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed. With `live-interactions`, updates inside a gesture carry `interaction`.
|
|
7
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a drag or held key first changed the control's value, right before that options update. A press that never changes the value emits no lifecycle. `detail.optionKey` is set.
|
|
8
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last options update. `detail.changed` is false when the value is back at its start.
|
|
9
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the gesture was cancelled and the control reverted to its start value.
|
|
7
10
|
*/
|
|
8
11
|
export declare const LuzmoItemOption: ReactWebComponent<LuzmoItemOptionClass, {
|
|
9
12
|
onLuzmoOptionsChanged: EventName<CustomEvent<ItemOptionsChangedEventDetail>>;
|
|
13
|
+
onLuzmoOptionInteractionStart: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
14
|
+
onLuzmoOptionInteractionEnd: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
15
|
+
onLuzmoOptionInteractionCancel: EventName<CustomEvent<ItemOptionInteractionEventDetail>>;
|
|
10
16
|
}>;
|
|
11
17
|
/** The underlying custom element type for LuzmoItemOption */
|
|
12
18
|
export type LuzmoItemOptionElement = LuzmoItemOptionClass;
|
|
@@ -6,12 +6,18 @@ const LuzmoItemOptionComponent = createComponent({
|
|
|
6
6
|
elementClass: LuzmoItemOptionClass,
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
|
-
onLuzmoOptionsChanged: 'luzmo-options-changed'
|
|
9
|
+
onLuzmoOptionsChanged: 'luzmo-options-changed',
|
|
10
|
+
onLuzmoOptionInteractionStart: 'luzmo-option-interaction-start',
|
|
11
|
+
onLuzmoOptionInteractionEnd: 'luzmo-option-interaction-end',
|
|
12
|
+
onLuzmoOptionInteractionCancel: 'luzmo-option-interaction-cancel'
|
|
10
13
|
}
|
|
11
14
|
});
|
|
12
15
|
/**
|
|
13
16
|
* React wrapper for <luzmo-item-option>
|
|
14
17
|
*
|
|
15
|
-
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed
|
|
18
|
+
* @event onLuzmoOptionsChanged - Announces that the `options` of the element have changed. With `live-interactions`, updates inside a gesture carry `interaction`.
|
|
19
|
+
* @event onLuzmoOptionInteractionStart - With `live-interactions`: a drag or held key first changed the control's value, right before that options update. A press that never changes the value emits no lifecycle. `detail.optionKey` is set.
|
|
20
|
+
* @event onLuzmoOptionInteractionEnd - With `live-interactions`: the gesture ended, after its last options update. `detail.changed` is false when the value is back at its start.
|
|
21
|
+
* @event onLuzmoOptionInteractionCancel - With `live-interactions`: the gesture was cancelled and the control reverted to its start value.
|
|
16
22
|
*/
|
|
17
23
|
export const LuzmoItemOption = LuzmoItemOptionComponent;
|