fluent-svelte-extra 1.4.8 → 1.5.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.
@@ -60,6 +60,8 @@ const forwardEvents = createEventForwarder(get_current_component(), [
60
60
  "change",
61
61
  "userChange",
62
62
  "userUpdate",
63
+ "userHoldStart",
64
+ "userHoldEnd",
63
65
  "end",
64
66
  "beforeinput"
65
67
  ]);
@@ -81,6 +83,7 @@ const bufferValueToPercentage = v => (v * 100) / max;
81
83
  function cancelMove() {
82
84
  holding = false;
83
85
  dragging = false;
86
+ dispatch("userHoldEnd");
84
87
  }
85
88
  function handleMove() {
86
89
  if (holding)
@@ -203,6 +206,7 @@ A slider is a control that lets the user select from a range of values by moving
203
206
  on:mousedown|preventDefault={() => {
204
207
  holding = true;
205
208
  dragging = true;
209
+ dispatch("userHoldStart");
206
210
  }}
207
211
  on:mouseup|preventDefault={() => {
208
212
  dispatch("userUpdate", value);
@@ -28,7 +28,9 @@ declare const __propDef: {
28
28
  stepDown?: () => void;
29
29
  };
30
30
  events: {
31
+ userHoldStart: CustomEvent<any>;
31
32
  userUpdate: CustomEvent<any>;
33
+ userHoldEnd: CustomEvent<any>;
32
34
  userChange: CustomEvent<any>;
33
35
  change: CustomEvent<any>;
34
36
  end: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluent-svelte-extra",
3
- "version": "1.4.8",
3
+ "version": "1.5.0",
4
4
  "description": "A faithful implementation of Microsoft's Fluent Design System in Svelte.",
5
5
  "homepage": "https://github.com/OpenAnime/fluent-svelte-extra",
6
6
  "license": "MIT",