@luzmo/analytics-components-kit 1.1.1 → 1.2.1

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.
Files changed (161) hide show
  1. package/README.md +8 -2
  2. package/angular/components/interactive-viz-item.ts +40 -3
  3. package/angular/components/item-option-color-picker.ts +30 -3
  4. package/angular/components/item-option-color-range.ts +30 -3
  5. package/angular/components/item-option-guidelines.ts +31 -4
  6. package/angular/components/item-option-panel.ts +41 -4
  7. package/angular/components/item-option-slider.ts +41 -4
  8. package/angular/components/item-option.ts +41 -4
  9. package/angular/esm/components/interactive-viz-item.d.ts +13 -4
  10. package/angular/esm/components/interactive-viz-item.js +29 -3
  11. package/angular/esm/components/item-option-color-picker.d.ts +11 -4
  12. package/angular/esm/components/item-option-color-picker.js +23 -3
  13. package/angular/esm/components/item-option-color-range.d.ts +11 -4
  14. package/angular/esm/components/item-option-color-range.js +23 -3
  15. package/angular/esm/components/item-option-guidelines.d.ts +11 -4
  16. package/angular/esm/components/item-option-guidelines.js +24 -4
  17. package/angular/esm/components/item-option-panel.d.ts +13 -4
  18. package/angular/esm/components/item-option-panel.js +30 -4
  19. package/angular/esm/components/item-option-slider.d.ts +13 -4
  20. package/angular/esm/components/item-option-slider.js +30 -4
  21. package/angular/esm/components/item-option.d.ts +13 -4
  22. package/angular/esm/components/item-option.js +30 -4
  23. package/angular/package.json +2 -2
  24. package/angular/utils/option-interaction/index.d.ts +2 -0
  25. package/angular/utils/option-interaction/is-same-option-value.d.ts +10 -0
  26. package/angular/utils/option-interaction/option-interaction-controller.d.ts +54 -0
  27. package/angular/utils/option-interaction/tests/option-interaction-controller.test.d.ts +1 -0
  28. package/angular/utils/store/base-store.d.ts +9 -0
  29. package/angular/utils/store/tests/store-base-history.test.d.ts +1 -0
  30. package/components/{base-store-SgJsjLap.cjs → base-store-D3whjduR.cjs} +1 -1
  31. package/components/{base-store-g0dt7ru7.js → base-store-DQYj8A1W.js} +3 -0
  32. package/components/{choropleth-map-options.config-D9-u-NwX.js → choropleth-map-options.config-Blu0Z2tR.js} +1 -1
  33. package/components/{choropleth-map-options.config-CXDGMiSJ.cjs → choropleth-map-options.config-DwFJ00CS.cjs} +1 -1
  34. package/components/{color-range-utils-CUCTsRXM.js → color-range-utils-CgwRGUkg.js} +18 -18
  35. package/components/{color-range-utils-BCFQAeY1.cjs → color-range-utils-D8uygiMe.cjs} +1 -1
  36. package/components/{heat-map-options.config-ChZeslEy.js → heat-map-options.config-BQkhkLPb.js} +16 -16
  37. package/components/{heat-map-options.config-DiNa8NnG.cjs → heat-map-options.config-DjQkB039.cjs} +1 -1
  38. package/components/{heat-table-options.config-BPCszrFn.js → heat-table-options.config-CMWWTeyo.js} +1 -1
  39. package/components/{heat-table-options.config-BvE6coaV.cjs → heat-table-options.config-D21xtaIk.cjs} +1 -1
  40. package/components/index.cjs +1 -1
  41. package/components/index.js +7 -7
  42. package/components/interactive-viz-item/index.cjs +1 -1
  43. package/components/interactive-viz-item/index.d.ts +2 -1
  44. package/components/interactive-viz-item/index.js +1 -1
  45. package/components/interactive-viz-item/interactive-viz-item.d.ts +31 -1
  46. package/components/interactive-viz-item/types.d.ts +13 -0
  47. package/components/{interactive-viz-item-CofUkpP6.js → interactive-viz-item-CwRRaCZB.js} +144 -84
  48. package/components/interactive-viz-item-CxdrGRKc.cjs +265 -0
  49. package/components/is-same-option-value-B2oyvEqT.js +42 -0
  50. package/components/is-same-option-value-Cf6BQcs7.cjs +20 -0
  51. package/components/item-option/helpers/control-markup.d.ts +7 -0
  52. package/components/item-option/index.cjs +1 -1
  53. package/components/item-option/index.d.ts +1 -1
  54. package/components/item-option/index.js +1 -1
  55. package/components/item-option/item-option.d.ts +23 -2
  56. package/components/item-option/types.d.ts +19 -0
  57. package/components/{item-option-Cgx3c08E.js → item-option-DKLRnicU.js} +182 -136
  58. package/components/item-option-DpLdospV.cjs +285 -0
  59. package/components/item-option-color-picker/index.cjs +1 -1
  60. package/components/item-option-color-picker/index.d.ts +1 -1
  61. package/components/item-option-color-picker/index.js +1 -1
  62. package/components/item-option-color-picker/item-option-color-picker.d.ts +17 -1
  63. package/components/item-option-color-picker-CNW7GsCO.cjs +37 -0
  64. package/components/item-option-color-picker-DDvsY7hV.js +129 -0
  65. package/components/item-option-color-range/index.cjs +1 -1
  66. package/components/item-option-color-range/index.d.ts +1 -1
  67. package/components/item-option-color-range/index.js +1 -1
  68. package/components/item-option-color-range/item-option-color-range.d.ts +20 -1
  69. package/components/item-option-color-range-BqSbuSZh.cjs +101 -0
  70. package/components/item-option-color-range-FQduqtz3.js +265 -0
  71. package/components/item-option-guidelines/index.cjs +1 -1
  72. package/components/item-option-guidelines/index.d.ts +1 -1
  73. package/components/item-option-guidelines/index.js +1 -1
  74. package/components/item-option-guidelines/item-option-guidelines.d.ts +16 -1
  75. package/components/{item-option-guidelines-DNJevmVD.js → item-option-guidelines-k5DwMONo.js} +132 -104
  76. package/components/item-option-guidelines-z9BsGR-l.cjs +138 -0
  77. package/components/item-option-panel/index.cjs +1 -1
  78. package/components/item-option-panel/index.d.ts +1 -1
  79. package/components/item-option-panel/index.js +1 -1
  80. package/components/item-option-panel/item-option-panel.d.ts +12 -1
  81. package/components/{item-option-panel-DHdnisRb.js → item-option-panel-BLXWIbjX.js} +18 -6
  82. package/components/{item-option-panel-Dl3aYBNe.cjs → item-option-panel-CU51qvgV.cjs} +6 -4
  83. package/components/item-option-slider/index.cjs +1 -1
  84. package/components/item-option-slider/index.d.ts +1 -1
  85. package/components/item-option-slider/index.js +1 -1
  86. package/components/item-option-slider/item-option-slider.d.ts +15 -2
  87. package/components/item-option-slider-BKtJfL3D.js +119 -0
  88. package/components/item-option-slider-Kz2eFBql.cjs +36 -0
  89. package/components/item-options-configs.cjs +1 -1
  90. package/components/item-options-configs.js +5 -5
  91. package/components/option-interaction-controller-B8S1N_Oo.js +90 -0
  92. package/components/option-interaction-controller-D0U-CTpZ.cjs +20 -0
  93. package/components/{route-map-options.config-DdCaVtIF.cjs → route-map-options.config-DER6ENky.cjs} +1 -1
  94. package/components/{route-map-options.config-B7vT6KG_.js → route-map-options.config-DTcS47fW.js} +1 -1
  95. package/components/{spike-map-options.config-DkmRZ1JZ.js → spike-map-options.config-CPYfKWoF.js} +1 -1
  96. package/components/{spike-map-options.config-B3hDh2qU.cjs → spike-map-options.config-DeF1Whq5.cjs} +1 -1
  97. package/components/utils/store.cjs +1 -1
  98. package/components/utils/store.js +1 -1
  99. package/custom-elements.json +409 -103
  100. package/package.json +1 -1
  101. package/react/components/interactive-viz-item.component.ts +11 -2
  102. package/react/components/item-option-color-picker.component.ts +9 -3
  103. package/react/components/item-option-color-range.component.ts +9 -3
  104. package/react/components/item-option-guidelines.component.ts +9 -3
  105. package/react/components/item-option-panel.component.ts +12 -3
  106. package/react/components/item-option-slider.component.ts +12 -3
  107. package/react/components/item-option.component.ts +12 -3
  108. package/react/esm/components/interactive-viz-item.component.d.ts +8 -2
  109. package/react/esm/components/interactive-viz-item.component.js +7 -1
  110. package/react/esm/components/item-option-color-picker.component.d.ts +6 -2
  111. package/react/esm/components/item-option-color-picker.component.js +6 -2
  112. package/react/esm/components/item-option-color-range.component.d.ts +6 -2
  113. package/react/esm/components/item-option-color-range.component.js +6 -2
  114. package/react/esm/components/item-option-guidelines.component.d.ts +6 -2
  115. package/react/esm/components/item-option-guidelines.component.js +6 -2
  116. package/react/esm/components/item-option-panel.component.d.ts +8 -2
  117. package/react/esm/components/item-option-panel.component.js +8 -2
  118. package/react/esm/components/item-option-slider.component.d.ts +8 -2
  119. package/react/esm/components/item-option-slider.component.js +8 -2
  120. package/react/esm/components/item-option.component.d.ts +8 -2
  121. package/react/esm/components/item-option.component.js +8 -2
  122. package/react/luzmo-stub.d.ts +7 -0
  123. package/react/package.json +2 -2
  124. package/standalone/chunks/{choropleth-map-options.config-Cs4Kvr9h.js → choropleth-map-options.config-rUJsEJcm.js} +1 -1
  125. package/standalone/chunks/{color-range-utils-CKDpd3gZ.js → color-range-utils-DxOtqAKB.js} +1 -1
  126. package/standalone/chunks/embed-CBu7iQRx.js +231 -0
  127. package/standalone/chunks/{heat-map-options.config-DF5kjOOe.js → heat-map-options.config-D93AeYFi.js} +1 -1
  128. package/standalone/chunks/{heat-table-options.config-DaePzfHG.js → heat-table-options.config-ZVML76FK.js} +1 -1
  129. package/standalone/chunks/is-same-option-value-Di-A7Wmg.js +2 -0
  130. package/standalone/chunks/item-option-color-picker-lLvBPnKA.js +19 -0
  131. package/standalone/chunks/{item-option-color-range-CyJd1LZ_.js → item-option-color-range-BqeatOei.js} +18 -15
  132. package/standalone/chunks/item-option-guidelines-Cop8rM8y.js +120 -0
  133. package/standalone/chunks/item-option-panel-CzSKFCVl.js +316 -0
  134. package/standalone/chunks/item-option-slider-K_bsNci8.js +18 -0
  135. package/standalone/chunks/option-interaction-controller-BslAXAHF.js +2 -0
  136. package/standalone/chunks/{route-map-options.config-D7FfzIiU.js → route-map-options.config-Dwy0JSVq.js} +1 -1
  137. package/standalone/chunks/{spike-map-options.config-CZiFzDm9.js → spike-map-options.config-DFmuNxym.js} +1 -1
  138. package/standalone/interactive-viz-item.js +24 -20
  139. package/standalone/item-grid.js +1 -1
  140. package/standalone/manifest.json +14 -13
  141. package/utils/option-interaction/index.d.ts +2 -0
  142. package/utils/option-interaction/is-same-option-value.d.ts +10 -0
  143. package/utils/option-interaction/option-interaction-controller.d.ts +54 -0
  144. package/utils/option-interaction/tests/option-interaction-controller.test.d.ts +1 -0
  145. package/utils/store/base-store.d.ts +9 -0
  146. package/utils/store/tests/store-base-history.test.d.ts +1 -0
  147. package/components/interactive-viz-item-D537mo3l.cjs +0 -261
  148. package/components/item-option-CqGDFdPj.cjs +0 -269
  149. package/components/item-option-color-picker-BpPoOO2b.cjs +0 -34
  150. package/components/item-option-color-picker-cojuCvu5.js +0 -84
  151. package/components/item-option-color-range-CMBEx1fi.cjs +0 -98
  152. package/components/item-option-color-range-Dt7Bv06p.js +0 -217
  153. package/components/item-option-guidelines-Beh0DlG0.cjs +0 -135
  154. package/components/item-option-slider-Bo5vs6nr.js +0 -89
  155. package/components/item-option-slider-CyWKWr5D.cjs +0 -33
  156. package/standalone/chunks/color-7IgCGZKz.js +0 -2
  157. package/standalone/chunks/embed-BfHBKhIe.js +0 -231
  158. package/standalone/chunks/item-option-color-picker-Cr7ujQNO.js +0 -16
  159. package/standalone/chunks/item-option-guidelines-6NjpzS6b.js +0 -117
  160. package/standalone/chunks/item-option-panel-VxvWU56c.js +0 -298
  161. package/standalone/chunks/item-option-slider-l9wt7_0c.js +0 -15
@@ -14258,6 +14258,110 @@
14258
14258
  "name": "chart-actions-extra"
14259
14259
  }
14260
14260
  ],
14261
+ "members": [
14262
+ {
14263
+ "kind": "method",
14264
+ "name": "endInteraction",
14265
+ "return": {
14266
+ "type": {
14267
+ "text": "void"
14268
+ }
14269
+ },
14270
+ "description": "Ends open option gestures in the config panel now, keeping their values. Call before swapping `chart` or removing the element."
14271
+ },
14272
+ {
14273
+ "kind": "field",
14274
+ "name": "language",
14275
+ "type": {
14276
+ "text": "string"
14277
+ },
14278
+ "default": "'en'",
14279
+ "description": "The language for UI labels.\nSupported values: 'en', 'nl', 'fr', 'de', 'es'",
14280
+ "attribute": "language",
14281
+ "reflects": true,
14282
+ "inheritedFrom": {
14283
+ "name": "LocalizedMixin",
14284
+ "module": "src/utils/base/localized-mixin.ts"
14285
+ }
14286
+ },
14287
+ {
14288
+ "kind": "method",
14289
+ "name": "_syncLocale",
14290
+ "privacy": "private",
14291
+ "return": {
14292
+ "type": {
14293
+ "text": "void"
14294
+ }
14295
+ },
14296
+ "inheritedFrom": {
14297
+ "name": "LocalizedMixin",
14298
+ "module": "src/utils/base/localized-mixin.ts"
14299
+ }
14300
+ },
14301
+ {
14302
+ "kind": "field",
14303
+ "name": "shadowRoot",
14304
+ "type": {
14305
+ "text": "ShadowRoot"
14306
+ },
14307
+ "privacy": "private",
14308
+ "inheritedFrom": {
14309
+ "name": "LuzmoMixin",
14310
+ "module": "src/utils/base/base.ts"
14311
+ }
14312
+ },
14313
+ {
14314
+ "kind": "field",
14315
+ "name": "_dirParent",
14316
+ "type": {
14317
+ "text": "HTMLElement | undefined"
14318
+ },
14319
+ "privacy": "private",
14320
+ "inheritedFrom": {
14321
+ "name": "LuzmoMixin",
14322
+ "module": "src/utils/base/base.ts"
14323
+ }
14324
+ },
14325
+ {
14326
+ "kind": "field",
14327
+ "name": "dir",
14328
+ "type": {
14329
+ "text": "'ltr' | 'rtl'"
14330
+ },
14331
+ "privacy": "private",
14332
+ "inheritedFrom": {
14333
+ "name": "LuzmoMixin",
14334
+ "module": "src/utils/base/base.ts"
14335
+ }
14336
+ },
14337
+ {
14338
+ "kind": "field",
14339
+ "name": "isLTR",
14340
+ "type": {
14341
+ "text": "boolean"
14342
+ },
14343
+ "privacy": "private",
14344
+ "readonly": true,
14345
+ "inheritedFrom": {
14346
+ "name": "LuzmoMixin",
14347
+ "module": "src/utils/base/base.ts"
14348
+ }
14349
+ },
14350
+ {
14351
+ "kind": "method",
14352
+ "name": "hasVisibleFocusInTree",
14353
+ "privacy": "public",
14354
+ "return": {
14355
+ "type": {
14356
+ "text": "boolean"
14357
+ }
14358
+ },
14359
+ "inheritedFrom": {
14360
+ "name": "LuzmoMixin",
14361
+ "module": "src/utils/base/base.ts"
14362
+ }
14363
+ }
14364
+ ],
14261
14365
  "events": [
14262
14366
  {
14263
14367
  "type": {
@@ -14270,9 +14374,30 @@
14270
14374
  "type": {
14271
14375
  "text": "CustomEvent<InteractiveVizItemChartChangedEventDetail>"
14272
14376
  },
14273
- "description": "Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set.",
14377
+ "description": "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`.",
14274
14378
  "name": "luzmo-chart-changed"
14275
14379
  },
14380
+ {
14381
+ "type": {
14382
+ "text": "CustomEvent<InteractiveVizItemInteractionEventDetail>"
14383
+ },
14384
+ "description": "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.",
14385
+ "name": "luzmo-option-interaction-start"
14386
+ },
14387
+ {
14388
+ "type": {
14389
+ "text": "CustomEvent<InteractiveVizItemInteractionEventDetail>"
14390
+ },
14391
+ "description": "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.",
14392
+ "name": "luzmo-option-interaction-end"
14393
+ },
14394
+ {
14395
+ "type": {
14396
+ "text": "CustomEvent<InteractiveVizItemInteractionEventDetail>"
14397
+ },
14398
+ "description": "With `live-interactions`: the gesture was cancelled and the control reverted to its start value.",
14399
+ "name": "luzmo-option-interaction-cancel"
14400
+ },
14276
14401
  {
14277
14402
  "type": {
14278
14403
  "text": "CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>"
@@ -14421,6 +14546,15 @@
14421
14546
  "description": "When present, chart changes are only emitted and the host sets `chart`; otherwise they are applied here and still emitted.",
14422
14547
  "fieldName": "controlled"
14423
14548
  },
14549
+ {
14550
+ "name": "live-interactions",
14551
+ "type": {
14552
+ "text": "boolean"
14553
+ },
14554
+ "default": "false",
14555
+ "description": "Applies and emits option changes live while a control is dragged or a key is held, without debounce, and\nforwards `luzmo-option-interaction-*` events. Off by default.",
14556
+ "fieldName": "liveInteractions"
14557
+ },
14424
14558
  {
14425
14559
  "name": "size",
14426
14560
  "type": {
@@ -14455,101 +14589,7 @@
14455
14589
  "module": "/src/utils/base"
14456
14590
  },
14457
14591
  "tagName": "luzmo-interactive-viz-item",
14458
- "customElement": true,
14459
- "members": [
14460
- {
14461
- "kind": "field",
14462
- "name": "language",
14463
- "type": {
14464
- "text": "string"
14465
- },
14466
- "default": "'en'",
14467
- "description": "The language for UI labels.\nSupported values: 'en', 'nl', 'fr', 'de', 'es'",
14468
- "attribute": "language",
14469
- "reflects": true,
14470
- "inheritedFrom": {
14471
- "name": "LocalizedMixin",
14472
- "module": "src/utils/base/localized-mixin.ts"
14473
- }
14474
- },
14475
- {
14476
- "kind": "method",
14477
- "name": "_syncLocale",
14478
- "privacy": "private",
14479
- "return": {
14480
- "type": {
14481
- "text": "void"
14482
- }
14483
- },
14484
- "inheritedFrom": {
14485
- "name": "LocalizedMixin",
14486
- "module": "src/utils/base/localized-mixin.ts"
14487
- }
14488
- },
14489
- {
14490
- "kind": "field",
14491
- "name": "shadowRoot",
14492
- "type": {
14493
- "text": "ShadowRoot"
14494
- },
14495
- "privacy": "private",
14496
- "inheritedFrom": {
14497
- "name": "LuzmoMixin",
14498
- "module": "src/utils/base/base.ts"
14499
- }
14500
- },
14501
- {
14502
- "kind": "field",
14503
- "name": "_dirParent",
14504
- "type": {
14505
- "text": "HTMLElement | undefined"
14506
- },
14507
- "privacy": "private",
14508
- "inheritedFrom": {
14509
- "name": "LuzmoMixin",
14510
- "module": "src/utils/base/base.ts"
14511
- }
14512
- },
14513
- {
14514
- "kind": "field",
14515
- "name": "dir",
14516
- "type": {
14517
- "text": "'ltr' | 'rtl'"
14518
- },
14519
- "privacy": "private",
14520
- "inheritedFrom": {
14521
- "name": "LuzmoMixin",
14522
- "module": "src/utils/base/base.ts"
14523
- }
14524
- },
14525
- {
14526
- "kind": "field",
14527
- "name": "isLTR",
14528
- "type": {
14529
- "text": "boolean"
14530
- },
14531
- "privacy": "private",
14532
- "readonly": true,
14533
- "inheritedFrom": {
14534
- "name": "LuzmoMixin",
14535
- "module": "src/utils/base/base.ts"
14536
- }
14537
- },
14538
- {
14539
- "kind": "method",
14540
- "name": "hasVisibleFocusInTree",
14541
- "privacy": "public",
14542
- "return": {
14543
- "type": {
14544
- "text": "boolean"
14545
- }
14546
- },
14547
- "inheritedFrom": {
14548
- "name": "LuzmoMixin",
14549
- "module": "src/utils/base/base.ts"
14550
- }
14551
- }
14552
- ]
14592
+ "customElement": true
14553
14593
  }
14554
14594
  ],
14555
14595
  "exports": [
@@ -16295,6 +16335,17 @@
16295
16335
  "attribute": "size",
16296
16336
  "reflects": true
16297
16337
  },
16338
+ {
16339
+ "kind": "field",
16340
+ "name": "liveInteractions",
16341
+ "type": {
16342
+ "text": "boolean"
16343
+ },
16344
+ "default": "false",
16345
+ "description": "Emits options updates live, without the control's debounce, plus `luzmo-option-interaction-*` events\naround drags and held keys. Off by default.",
16346
+ "attribute": "live-interactions",
16347
+ "reflects": true
16348
+ },
16298
16349
  {
16299
16350
  "kind": "field",
16300
16351
  "name": "_controlTypeLoaded",
@@ -16359,6 +16410,16 @@
16359
16410
  "name": "changedOptions",
16360
16411
  "description": "Callback that updates `options` and emits `luzmo-options-changed`; used internally by the rendered control."
16361
16412
  },
16413
+ {
16414
+ "kind": "method",
16415
+ "name": "endInteraction",
16416
+ "return": {
16417
+ "type": {
16418
+ "text": "void"
16419
+ }
16420
+ },
16421
+ "description": "Ends the control's open gesture now, keeping its value. Call before removing or rebinding the element."
16422
+ },
16362
16423
  {
16363
16424
  "kind": "field",
16364
16425
  "name": "shadowRoot",
@@ -16428,8 +16489,29 @@
16428
16489
  "type": {
16429
16490
  "text": "CustomEvent<ItemOptionsChangedEventDetail>"
16430
16491
  },
16431
- "description": "Announces that the `options` of the element have changed",
16492
+ "description": "Announces that the `options` of the element have changed. With `live-interactions`, updates inside a gesture carry `interaction`.",
16432
16493
  "name": "luzmo-options-changed"
16494
+ },
16495
+ {
16496
+ "type": {
16497
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
16498
+ },
16499
+ "description": "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.",
16500
+ "name": "luzmo-option-interaction-start"
16501
+ },
16502
+ {
16503
+ "type": {
16504
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
16505
+ },
16506
+ "description": "With `live-interactions`: the gesture ended, after its last options update. `detail.changed` is false when the value is back at its start.",
16507
+ "name": "luzmo-option-interaction-end"
16508
+ },
16509
+ {
16510
+ "type": {
16511
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
16512
+ },
16513
+ "description": "With `live-interactions`: the gesture was cancelled and the control reverted to its start value.",
16514
+ "name": "luzmo-option-interaction-cancel"
16433
16515
  }
16434
16516
  ],
16435
16517
  "attributes": [
@@ -16533,6 +16615,15 @@
16533
16615
  "default": "'m'",
16534
16616
  "description": "The size variant of the option control (`s`, `m`, `l`, `xl`).",
16535
16617
  "fieldName": "size"
16618
+ },
16619
+ {
16620
+ "name": "live-interactions",
16621
+ "type": {
16622
+ "text": "boolean"
16623
+ },
16624
+ "default": "false",
16625
+ "description": "Emits options updates live, without the control's debounce, plus `luzmo-option-interaction-*` events\naround drags and held keys. Off by default.",
16626
+ "fieldName": "liveInteractions"
16536
16627
  }
16537
16628
  ],
16538
16629
  "superclass": {
@@ -17455,6 +17546,17 @@
17455
17546
  "attribute": "debounce",
17456
17547
  "reflects": true
17457
17548
  },
17549
+ {
17550
+ "kind": "field",
17551
+ "name": "liveInteractions",
17552
+ "type": {
17553
+ "text": "boolean"
17554
+ },
17555
+ "default": "false",
17556
+ "description": "Emits value updates live, without `debounce`, plus interaction lifecycle events for drags and held keys.",
17557
+ "attribute": "live-interactions",
17558
+ "reflects": true
17559
+ },
17458
17560
  {
17459
17561
  "kind": "field",
17460
17562
  "name": "debounceTimeout",
@@ -17462,6 +17564,16 @@
17462
17564
  "text": "any"
17463
17565
  },
17464
17566
  "description": "Internal timer handle used to debounce change events."
17567
+ },
17568
+ {
17569
+ "kind": "method",
17570
+ "name": "endInteraction",
17571
+ "return": {
17572
+ "type": {
17573
+ "text": "void"
17574
+ }
17575
+ },
17576
+ "description": "Ends an open color drag or held-key gesture now, keeping its value. Call before removing the element."
17465
17577
  }
17466
17578
  ],
17467
17579
  "events": [
@@ -17470,7 +17582,21 @@
17470
17582
  "type": {
17471
17583
  "text": "CustomEvent<ItemOptionChangedEventDetail>"
17472
17584
  },
17473
- "description": "Emitted when the option value changes."
17585
+ "description": "Emitted when the option value changes. With `live-interactions`, emitted on every color change and carries `interaction` inside a gesture."
17586
+ },
17587
+ {
17588
+ "type": {
17589
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
17590
+ },
17591
+ "description": "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.",
17592
+ "name": "luzmo-option-interaction-start"
17593
+ },
17594
+ {
17595
+ "type": {
17596
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
17597
+ },
17598
+ "description": "With `live-interactions`: the gesture ended (including when the popover closes), after its last value update.",
17599
+ "name": "luzmo-option-interaction-end"
17474
17600
  }
17475
17601
  ],
17476
17602
  "attributes": [
@@ -17545,6 +17671,15 @@
17545
17671
  "default": "50",
17546
17672
  "description": "Delay in milliseconds before the change event is emitted after the user stops interacting.",
17547
17673
  "fieldName": "debounce"
17674
+ },
17675
+ {
17676
+ "name": "live-interactions",
17677
+ "type": {
17678
+ "text": "boolean"
17679
+ },
17680
+ "default": "false",
17681
+ "description": "Emits value updates live, without `debounce`, plus interaction lifecycle events for drags and held keys.",
17682
+ "fieldName": "liveInteractions"
17548
17683
  }
17549
17684
  ],
17550
17685
  "superclass": {
@@ -17574,14 +17709,39 @@
17574
17709
  "kind": "class",
17575
17710
  "description": "",
17576
17711
  "name": "LuzmoItemOptionColorRange",
17577
- "members": [],
17712
+ "members": [
17713
+ {
17714
+ "kind": "method",
17715
+ "name": "endInteraction",
17716
+ "return": {
17717
+ "type": {
17718
+ "text": "void"
17719
+ }
17720
+ },
17721
+ "description": "Ends open color gestures now, keeping their values. Call before removing the element."
17722
+ }
17723
+ ],
17578
17724
  "events": [
17579
17725
  {
17580
17726
  "name": "luzmo-option-changed",
17581
17727
  "type": {
17582
17728
  "text": "CustomEvent<ItemOptionChangedEventDetail>"
17583
17729
  },
17584
- "description": "Emitted when the option value changes."
17730
+ "description": "Emitted when the option value changes. With `live-interactions`, emitted immediately and carries `interaction` while a stop's color is dragged."
17731
+ },
17732
+ {
17733
+ "type": {
17734
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
17735
+ },
17736
+ "description": "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.",
17737
+ "name": "luzmo-option-interaction-start"
17738
+ },
17739
+ {
17740
+ "type": {
17741
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
17742
+ },
17743
+ "description": "With `live-interactions`: that stop's gesture ended, after its last value update.",
17744
+ "name": "luzmo-option-interaction-end"
17585
17745
  }
17586
17746
  ],
17587
17747
  "attributes": [
@@ -17691,6 +17851,15 @@
17691
17851
  "description": "The debounce time in milliseconds",
17692
17852
  "fieldName": "debounce"
17693
17853
  },
17854
+ {
17855
+ "name": "live-interactions",
17856
+ "type": {
17857
+ "text": "boolean"
17858
+ },
17859
+ "default": "false",
17860
+ "description": "Emits value updates live, without `debounce`, plus interaction lifecycle events for color drags and held keys",
17861
+ "fieldName": "liveInteractions"
17862
+ },
17694
17863
  {
17695
17864
  "name": "parseValue",
17696
17865
  "type": {
@@ -17749,13 +17918,39 @@
17749
17918
  "name": "--luzmo-item-option-guidelines-shared-gap"
17750
17919
  }
17751
17920
  ],
17921
+ "members": [
17922
+ {
17923
+ "kind": "method",
17924
+ "name": "endInteraction",
17925
+ "return": {
17926
+ "type": {
17927
+ "text": "void"
17928
+ }
17929
+ },
17930
+ "description": "Ends open color gestures now, keeping their values. Call before removing the element."
17931
+ }
17932
+ ],
17752
17933
  "events": [
17753
17934
  {
17754
17935
  "name": "luzmo-option-changed",
17755
17936
  "type": {
17756
17937
  "text": "CustomEvent<ItemOptionChangedEventDetail>"
17757
17938
  },
17758
- "description": "Emitted when the guidelines value changes."
17939
+ "description": "Emitted when the guidelines value changes. With `live-interactions`, emitted immediately and carries `interaction` while a line's color is dragged."
17940
+ },
17941
+ {
17942
+ "type": {
17943
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
17944
+ },
17945
+ "description": "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.",
17946
+ "name": "luzmo-option-interaction-start"
17947
+ },
17948
+ {
17949
+ "type": {
17950
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
17951
+ },
17952
+ "description": "With `live-interactions`: that line's gesture ended, after its last value update.",
17953
+ "name": "luzmo-option-interaction-end"
17759
17954
  }
17760
17955
  ],
17761
17956
  "attributes": [
@@ -17769,6 +17964,15 @@
17769
17964
  "default": "DEFAULT_GUIDELINE_DEBOUNCE",
17770
17965
  "description": "Delay in milliseconds before color and number changes are emitted.",
17771
17966
  "fieldName": "debounce"
17967
+ },
17968
+ {
17969
+ "name": "live-interactions",
17970
+ "type": {
17971
+ "text": "boolean"
17972
+ },
17973
+ "default": "false",
17974
+ "description": "Emits value updates live, without `debounce`, plus interaction lifecycle events for color drags and held keys.",
17975
+ "fieldName": "liveInteractions"
17772
17976
  }
17773
17977
  ],
17774
17978
  "superclass": {
@@ -18685,6 +18889,27 @@
18685
18889
  "attribute": "auth-token",
18686
18890
  "reflects": true
18687
18891
  },
18892
+ {
18893
+ "kind": "field",
18894
+ "name": "liveInteractions",
18895
+ "type": {
18896
+ "text": "boolean"
18897
+ },
18898
+ "default": "false",
18899
+ "description": "Emits options updates live, without the controls' debounce, plus `luzmo-option-interaction-*` events\naround drags and held keys. Off by default.",
18900
+ "attribute": "live-interactions",
18901
+ "reflects": true
18902
+ },
18903
+ {
18904
+ "kind": "method",
18905
+ "name": "endInteraction",
18906
+ "return": {
18907
+ "type": {
18908
+ "text": "void"
18909
+ }
18910
+ },
18911
+ "description": "Ends the open gestures of every option now, keeping their values. Call before removing or rebinding the panel."
18912
+ },
18688
18913
  {
18689
18914
  "kind": "field",
18690
18915
  "name": "shadowRoot",
@@ -18754,8 +18979,29 @@
18754
18979
  "type": {
18755
18980
  "text": "CustomEvent<ItemOptionsChangedEventDetail>"
18756
18981
  },
18757
- "description": "Announces that the `options` of the element have changed",
18982
+ "description": "Announces that the `options` of the element have changed. With `live-interactions`, updates inside a gesture carry `interaction`.",
18758
18983
  "name": "luzmo-options-changed"
18984
+ },
18985
+ {
18986
+ "type": {
18987
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
18988
+ },
18989
+ "description": "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.",
18990
+ "name": "luzmo-option-interaction-start"
18991
+ },
18992
+ {
18993
+ "type": {
18994
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
18995
+ },
18996
+ "description": "With `live-interactions`: bubbles from the option whose gesture ended, after its last options update.",
18997
+ "name": "luzmo-option-interaction-end"
18998
+ },
18999
+ {
19000
+ "type": {
19001
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
19002
+ },
19003
+ "description": "With `live-interactions`: bubbles from the option whose gesture was cancelled and reverted.",
19004
+ "name": "luzmo-option-interaction-cancel"
18759
19005
  }
18760
19006
  ],
18761
19007
  "attributes": [
@@ -18851,6 +19097,15 @@
18851
19097
  },
18852
19098
  "description": "The auth token of the databroker",
18853
19099
  "fieldName": "authToken"
19100
+ },
19101
+ {
19102
+ "name": "live-interactions",
19103
+ "type": {
19104
+ "text": "boolean"
19105
+ },
19106
+ "default": "false",
19107
+ "description": "Emits options updates live, without the controls' debounce, plus `luzmo-option-interaction-*` events\naround drags and held keys. Off by default.",
19108
+ "fieldName": "liveInteractions"
18854
19109
  }
18855
19110
  ],
18856
19111
  "superclass": {
@@ -19352,6 +19607,27 @@
19352
19607
  "description": "Delay in milliseconds before the change event is emitted after the user stops interacting.",
19353
19608
  "attribute": "debounce",
19354
19609
  "reflects": true
19610
+ },
19611
+ {
19612
+ "kind": "field",
19613
+ "name": "liveInteractions",
19614
+ "type": {
19615
+ "text": "boolean"
19616
+ },
19617
+ "default": "false",
19618
+ "description": "Emits value updates live, without `debounce`, plus interaction lifecycle events for drags and held keys.",
19619
+ "attribute": "live-interactions",
19620
+ "reflects": true
19621
+ },
19622
+ {
19623
+ "kind": "method",
19624
+ "name": "endInteraction",
19625
+ "return": {
19626
+ "type": {
19627
+ "text": "void"
19628
+ }
19629
+ },
19630
+ "description": "Ends an open drag or held-key gesture now, keeping its value. Call before removing the element."
19355
19631
  }
19356
19632
  ],
19357
19633
  "events": [
@@ -19360,7 +19636,28 @@
19360
19636
  "type": {
19361
19637
  "text": "CustomEvent<ItemOptionChangedEventDetail>"
19362
19638
  },
19363
- "description": "Emitted when the option value changes."
19639
+ "description": "Emitted when the option value changes. With `live-interactions`, emitted on every drag or key step and carries `interaction` inside a gesture."
19640
+ },
19641
+ {
19642
+ "type": {
19643
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
19644
+ },
19645
+ "description": "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.",
19646
+ "name": "luzmo-option-interaction-start"
19647
+ },
19648
+ {
19649
+ "type": {
19650
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
19651
+ },
19652
+ "description": "With `live-interactions`: the gesture ended, after its last value update. `changed` is false when the value is back at its start.",
19653
+ "name": "luzmo-option-interaction-end"
19654
+ },
19655
+ {
19656
+ "type": {
19657
+ "text": "CustomEvent<ItemOptionInteractionEventDetail>"
19658
+ },
19659
+ "description": "With `live-interactions`: the pointer was cancelled and the slider reverted to its start value.",
19660
+ "name": "luzmo-option-interaction-cancel"
19364
19661
  }
19365
19662
  ],
19366
19663
  "attributes": [
@@ -19418,6 +19715,15 @@
19418
19715
  "description": "Delay in milliseconds before the change event is emitted after the user stops interacting.",
19419
19716
  "fieldName": "debounce"
19420
19717
  },
19718
+ {
19719
+ "name": "live-interactions",
19720
+ "type": {
19721
+ "text": "boolean"
19722
+ },
19723
+ "default": "false",
19724
+ "description": "Emits value updates live, without `debounce`, plus interaction lifecycle events for drags and held keys.",
19725
+ "fieldName": "liveInteractions"
19726
+ },
19421
19727
  {
19422
19728
  "name": "parseValue",
19423
19729
  "type": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/analytics-components-kit",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cumulio-internal/analytics-components-kit.git"