@frollo/frollo-web-ui 9.0.12 → 9.0.13

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/cjs/index.js CHANGED
@@ -23462,6 +23462,7 @@ var script$2 = vue.defineComponent({
23462
23462
  // Internal thumbs
23463
23463
  var minLocal = vue.ref((_props$minValue = props.minValue) !== null && _props$minValue !== void 0 ? _props$minValue : props.min);
23464
23464
  var maxLocal = vue.ref((_props$maxValue = props.maxValue) !== null && _props$maxValue !== void 0 ? _props$maxValue : props.max);
23465
+ var lastMoved = vue.ref('max');
23465
23466
  // --- Sync from props -> local (when parent updates) ---
23466
23467
  vue.watch(function () {
23467
23468
  return props.minValue;
@@ -23482,6 +23483,7 @@ var script$2 = vue.defineComponent({
23482
23483
  // --- Clamp + emit local -> parent (when user drags) ---
23483
23484
  vue.watch(minLocal, function (v, old) {
23484
23485
  var _props$minValue2;
23486
+ if (v !== old) lastMoved.value = 'min';
23485
23487
  var clamped = clamp(v, props.min, maxLocal.value);
23486
23488
  if (clamped !== v) minLocal.value = clamped;
23487
23489
  if (clamped !== ((_props$minValue2 = props.minValue) !== null && _props$minValue2 !== void 0 ? _props$minValue2 : props.min) && clamped !== old) {
@@ -23490,6 +23492,7 @@ var script$2 = vue.defineComponent({
23490
23492
  });
23491
23493
  vue.watch(maxLocal, function (v, old) {
23492
23494
  var _props$maxValue2;
23495
+ if (v !== old) lastMoved.value = 'max';
23493
23496
  var clamped = clamp(v, minLocal.value, props.max);
23494
23497
  if (clamped !== v) maxLocal.value = clamped;
23495
23498
  if (clamped !== ((_props$maxValue2 = props.maxValue) !== null && _props$maxValue2 !== void 0 ? _props$maxValue2 : props.max) && clamped !== old) {
@@ -23519,6 +23522,7 @@ var script$2 = vue.defineComponent({
23519
23522
  minPercentage: minPercentage,
23520
23523
  maxPercentage: maxPercentage,
23521
23524
  clippingPoint: clippingPoint,
23525
+ lastMoved: lastMoved,
23522
23526
  trackStyle: trackStyle
23523
23527
  };
23524
23528
  }
@@ -23553,7 +23557,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
23553
23557
  return _ctx.minLocal = $event;
23554
23558
  }),
23555
23559
  style: vue.normalizeStyle({
23556
- zIndex: _ctx.clippingPoint ? 20 : 30
23560
+ zIndex: !_ctx.clippingPoint && _ctx.lastMoved === 'min' ? 30 : 20
23557
23561
  })
23558
23562
  }, null, 12, _hoisted_2$1), [[vue.vModelText, _ctx.minLocal, void 0, {
23559
23563
  number: true
@@ -23569,7 +23573,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
23569
23573
  return _ctx.maxLocal = $event;
23570
23574
  }),
23571
23575
  style: vue.normalizeStyle({
23572
- zIndex: _ctx.clippingPoint ? 30 : 20
23576
+ zIndex: _ctx.clippingPoint || _ctx.lastMoved === 'max' ? 30 : 20
23573
23577
  })
23574
23578
  }, null, 12, _hoisted_3), [[vue.vModelText, _ctx.maxLocal, void 0, {
23575
23579
  number: true
package/esm/fw-slider.js CHANGED
@@ -35,6 +35,7 @@ var script = defineComponent({
35
35
  // Internal thumbs
36
36
  var minLocal = ref((_props$minValue = props.minValue) !== null && _props$minValue !== void 0 ? _props$minValue : props.min);
37
37
  var maxLocal = ref((_props$maxValue = props.maxValue) !== null && _props$maxValue !== void 0 ? _props$maxValue : props.max);
38
+ var lastMoved = ref('max');
38
39
  // --- Sync from props -> local (when parent updates) ---
39
40
  watch(function () {
40
41
  return props.minValue;
@@ -55,6 +56,7 @@ var script = defineComponent({
55
56
  // --- Clamp + emit local -> parent (when user drags) ---
56
57
  watch(minLocal, function (v, old) {
57
58
  var _props$minValue2;
59
+ if (v !== old) lastMoved.value = 'min';
58
60
  var clamped = clamp(v, props.min, maxLocal.value);
59
61
  if (clamped !== v) minLocal.value = clamped;
60
62
  if (clamped !== ((_props$minValue2 = props.minValue) !== null && _props$minValue2 !== void 0 ? _props$minValue2 : props.min) && clamped !== old) {
@@ -63,6 +65,7 @@ var script = defineComponent({
63
65
  });
64
66
  watch(maxLocal, function (v, old) {
65
67
  var _props$maxValue2;
68
+ if (v !== old) lastMoved.value = 'max';
66
69
  var clamped = clamp(v, minLocal.value, props.max);
67
70
  if (clamped !== v) maxLocal.value = clamped;
68
71
  if (clamped !== ((_props$maxValue2 = props.maxValue) !== null && _props$maxValue2 !== void 0 ? _props$maxValue2 : props.max) && clamped !== old) {
@@ -92,6 +95,7 @@ var script = defineComponent({
92
95
  minPercentage: minPercentage,
93
96
  maxPercentage: maxPercentage,
94
97
  clippingPoint: clippingPoint,
98
+ lastMoved: lastMoved,
95
99
  trackStyle: trackStyle
96
100
  };
97
101
  }
@@ -128,7 +132,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
128
132
  return _ctx.minLocal = $event;
129
133
  }),
130
134
  style: normalizeStyle({
131
- zIndex: _ctx.clippingPoint ? 20 : 30
135
+ zIndex: !_ctx.clippingPoint && _ctx.lastMoved === 'min' ? 30 : 20
132
136
  })
133
137
  }, null, 12, _hoisted_2), [[vModelText, _ctx.minLocal, void 0, {
134
138
  number: true
@@ -144,7 +148,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
144
148
  return _ctx.maxLocal = $event;
145
149
  }),
146
150
  style: normalizeStyle({
147
- zIndex: _ctx.clippingPoint ? 30 : 20
151
+ zIndex: _ctx.clippingPoint || _ctx.lastMoved === 'max' ? 30 : 20
148
152
  })
149
153
  }, null, 12, _hoisted_3), [[vModelText, _ctx.maxLocal, void 0, {
150
154
  number: true
@@ -23971,6 +23971,7 @@ var script$2 = defineComponent({
23971
23971
  // Internal thumbs
23972
23972
  var minLocal = ref((_props$minValue = props.minValue) !== null && _props$minValue !== void 0 ? _props$minValue : props.min);
23973
23973
  var maxLocal = ref((_props$maxValue = props.maxValue) !== null && _props$maxValue !== void 0 ? _props$maxValue : props.max);
23974
+ var lastMoved = ref('max');
23974
23975
  // --- Sync from props -> local (when parent updates) ---
23975
23976
  watch(function () {
23976
23977
  return props.minValue;
@@ -23991,6 +23992,7 @@ var script$2 = defineComponent({
23991
23992
  // --- Clamp + emit local -> parent (when user drags) ---
23992
23993
  watch(minLocal, function (v, old) {
23993
23994
  var _props$minValue2;
23995
+ if (v !== old) lastMoved.value = 'min';
23994
23996
  var clamped = clamp(v, props.min, maxLocal.value);
23995
23997
  if (clamped !== v) minLocal.value = clamped;
23996
23998
  if (clamped !== ((_props$minValue2 = props.minValue) !== null && _props$minValue2 !== void 0 ? _props$minValue2 : props.min) && clamped !== old) {
@@ -23999,6 +24001,7 @@ var script$2 = defineComponent({
23999
24001
  });
24000
24002
  watch(maxLocal, function (v, old) {
24001
24003
  var _props$maxValue2;
24004
+ if (v !== old) lastMoved.value = 'max';
24002
24005
  var clamped = clamp(v, minLocal.value, props.max);
24003
24006
  if (clamped !== v) maxLocal.value = clamped;
24004
24007
  if (clamped !== ((_props$maxValue2 = props.maxValue) !== null && _props$maxValue2 !== void 0 ? _props$maxValue2 : props.max) && clamped !== old) {
@@ -24028,6 +24031,7 @@ var script$2 = defineComponent({
24028
24031
  minPercentage: minPercentage,
24029
24032
  maxPercentage: maxPercentage,
24030
24033
  clippingPoint: clippingPoint,
24034
+ lastMoved: lastMoved,
24031
24035
  trackStyle: trackStyle
24032
24036
  };
24033
24037
  }
@@ -24064,7 +24068,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
24064
24068
  return _ctx.minLocal = $event;
24065
24069
  }),
24066
24070
  style: normalizeStyle({
24067
- zIndex: _ctx.clippingPoint ? 20 : 30
24071
+ zIndex: !_ctx.clippingPoint && _ctx.lastMoved === 'min' ? 30 : 20
24068
24072
  })
24069
24073
  }, null, 12, _hoisted_2$1), [[vModelText, _ctx.minLocal, void 0, {
24070
24074
  number: true
@@ -24080,7 +24084,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
24080
24084
  return _ctx.maxLocal = $event;
24081
24085
  }),
24082
24086
  style: normalizeStyle({
24083
- zIndex: _ctx.clippingPoint ? 30 : 20
24087
+ zIndex: _ctx.clippingPoint || _ctx.lastMoved === 'max' ? 30 : 20
24084
24088
  })
24085
24089
  }, null, 12, _hoisted_3), [[vModelText, _ctx.maxLocal, void 0, {
24086
24090
  number: true
package/index.d.ts CHANGED
@@ -4479,6 +4479,7 @@ declare const _default$2: vue.DefineComponent<vue.ExtractPropTypes<{
4479
4479
  minPercentage: vue.ComputedRef<number>;
4480
4480
  maxPercentage: vue.ComputedRef<number>;
4481
4481
  clippingPoint: vue.ComputedRef<boolean>;
4482
+ lastMoved: vue.Ref<"min" | "max", "min" | "max">;
4482
4483
  trackStyle: vue.ComputedRef<{
4483
4484
  background: string;
4484
4485
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "9.0.12",
3
+ "version": "9.0.13",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
25
  minPercentage: import("vue").ComputedRef<number>;
26
26
  maxPercentage: import("vue").ComputedRef<number>;
27
27
  clippingPoint: import("vue").ComputedRef<boolean>;
28
+ lastMoved: import("vue").Ref<"min" | "max", "min" | "max">;
28
29
  trackStyle: import("vue").ComputedRef<{
29
30
  background: string;
30
31
  }>;
@@ -37014,6 +37014,7 @@ Expected function or array of functions, received type ${typeof value}.`
37014
37014
  // Internal thumbs
37015
37015
  var minLocal = ref((_props$minValue = props.minValue) !== null && _props$minValue !== void 0 ? _props$minValue : props.min);
37016
37016
  var maxLocal = ref((_props$maxValue = props.maxValue) !== null && _props$maxValue !== void 0 ? _props$maxValue : props.max);
37017
+ var lastMoved = ref('max');
37017
37018
  // --- Sync from props -> local (when parent updates) ---
37018
37019
  watch(function () {
37019
37020
  return props.minValue;
@@ -37034,6 +37035,7 @@ Expected function or array of functions, received type ${typeof value}.`
37034
37035
  // --- Clamp + emit local -> parent (when user drags) ---
37035
37036
  watch(minLocal, function (v, old) {
37036
37037
  var _props$minValue2;
37038
+ if (v !== old) lastMoved.value = 'min';
37037
37039
  var clamped = clamp(v, props.min, maxLocal.value);
37038
37040
  if (clamped !== v) minLocal.value = clamped;
37039
37041
  if (clamped !== ((_props$minValue2 = props.minValue) !== null && _props$minValue2 !== void 0 ? _props$minValue2 : props.min) && clamped !== old) {
@@ -37042,6 +37044,7 @@ Expected function or array of functions, received type ${typeof value}.`
37042
37044
  });
37043
37045
  watch(maxLocal, function (v, old) {
37044
37046
  var _props$maxValue2;
37047
+ if (v !== old) lastMoved.value = 'max';
37045
37048
  var clamped = clamp(v, minLocal.value, props.max);
37046
37049
  if (clamped !== v) maxLocal.value = clamped;
37047
37050
  if (clamped !== ((_props$maxValue2 = props.maxValue) !== null && _props$maxValue2 !== void 0 ? _props$maxValue2 : props.max) && clamped !== old) {
@@ -37071,6 +37074,7 @@ Expected function or array of functions, received type ${typeof value}.`
37071
37074
  minPercentage: minPercentage,
37072
37075
  maxPercentage: maxPercentage,
37073
37076
  clippingPoint: clippingPoint,
37077
+ lastMoved: lastMoved,
37074
37078
  trackStyle: trackStyle
37075
37079
  };
37076
37080
  }
@@ -37107,7 +37111,7 @@ Expected function or array of functions, received type ${typeof value}.`
37107
37111
  return _ctx.minLocal = $event;
37108
37112
  }),
37109
37113
  style: normalizeStyle({
37110
- zIndex: _ctx.clippingPoint ? 20 : 30
37114
+ zIndex: !_ctx.clippingPoint && _ctx.lastMoved === 'min' ? 30 : 20
37111
37115
  })
37112
37116
  }, null, 12, _hoisted_2$1), [[vModelText, _ctx.minLocal, void 0, {
37113
37117
  number: true
@@ -37123,7 +37127,7 @@ Expected function or array of functions, received type ${typeof value}.`
37123
37127
  return _ctx.maxLocal = $event;
37124
37128
  }),
37125
37129
  style: normalizeStyle({
37126
- zIndex: _ctx.clippingPoint ? 30 : 20
37130
+ zIndex: _ctx.clippingPoint || _ctx.lastMoved === 'max' ? 30 : 20
37127
37131
  })
37128
37132
  }, null, 12, _hoisted_3), [[vModelText, _ctx.maxLocal, void 0, {
37129
37133
  number: true