@bagelink/vue 1.0.22 → 1.0.24

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.
@@ -1 +1 @@
1
- {"version":3,"file":"RangeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RangeInput.vue"],"names":[],"mappings":"AAkOA,MAAM,WAAW,eAAe;IAC/B,UAAU,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CACvC;AA+DD,iBAAS,cAAc;WAuIT,OAAO,IAA6B;;;;;;YAdpB,GAAG;;;;;;YACP,GAAG;;;;;;YACL,GAAG;;;;;;;YACF,GAAG;;;;;;;YACH,GAAG;;;;EAe3B;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RangeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RangeInput.vue"],"names":[],"mappings":"AA8NA,MAAM,WAAW,eAAe;IAC/B,UAAU,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CACvC;AA2DD,iBAAS,cAAc;WAuIT,OAAO,IAA6B;;;;;;YAdpB,GAAG;;;;;;YACP,GAAG;;;;;;YACL,GAAG;;;;;;;YACF,GAAG;;;;;;;YACH,GAAG;;;;EAe3B;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
package/dist/index.cjs CHANGED
@@ -17906,10 +17906,6 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17906
17906
  min: min2 = 0,
17907
17907
  max: max2 = 100,
17908
17908
  step = 1,
17909
- label,
17910
- disabled,
17911
- id,
17912
- rtl,
17913
17909
  multiRange = false,
17914
17910
  formatValue = (value) => value.toString()
17915
17911
  } = props2;
@@ -17943,18 +17939,18 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17943
17939
  width: `${toPercentage.value - fromPercentage.value}%`
17944
17940
  };
17945
17941
  }
17946
- return rtl ? { left: `${100 - fromPercentage.value}%`, width: `${fromPercentage.value}%` } : { left: "0", width: `${fromPercentage.value}%` };
17942
+ return props2.rtl ? { left: `${100 - fromPercentage.value}%`, width: `${fromPercentage.value}%` } : { left: "0", width: `${fromPercentage.value}%` };
17947
17943
  });
17948
17944
  const displayFrom = vue.computed(() => formatValue(validFrom.value));
17949
17945
  const displayTo = vue.computed(() => formatValue(validTo.value));
17950
17946
  return (_ctx, _cache) => {
17951
17947
  return vue.openBlock(), vue.createElementBlock("div", {
17952
- dir: vue.unref(rtl) ? "rtl" : "ltr"
17948
+ dir: _ctx.rtl ? "rtl" : "ltr"
17953
17949
  }, [
17954
- vue.unref(label) ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$l, vue.toDisplayString(vue.unref(label)), 1)) : vue.createCommentVNode("", true),
17950
+ props2.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$l, vue.toDisplayString(props2.label), 1)) : vue.createCommentVNode("", true),
17955
17951
  vue.createElementVNode("div", _hoisted_3$h, [
17956
17952
  vue.createElementVNode("input", {
17957
- id: vue.unref(id),
17953
+ id: _ctx.id,
17958
17954
  value: validFrom.value,
17959
17955
  class: "from",
17960
17956
  type: "range",
@@ -17962,7 +17958,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17962
17958
  max: vue.unref(max2),
17963
17959
  step: vue.unref(step),
17964
17960
  required: _ctx.required,
17965
- disabled: vue.unref(disabled),
17961
+ disabled: _ctx.disabled,
17966
17962
  "aria-label": vue.unref(multiRange) ? "Minimum value" : "Value",
17967
17963
  onInput: _cache[0] || (_cache[0] = (e) => handleInput(+e.target.value, true))
17968
17964
  }, null, 40, _hoisted_4$a),
@@ -17975,7 +17971,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17975
17971
  max: vue.unref(max2),
17976
17972
  step: vue.unref(step),
17977
17973
  required: _ctx.required,
17978
- disabled: vue.unref(disabled),
17974
+ disabled: _ctx.disabled,
17979
17975
  "aria-label": "Maximum value",
17980
17976
  onInput: _cache[1] || (_cache[1] = (e) => handleInput(+e.target.value, false))
17981
17977
  }, null, 40, _hoisted_5$a)) : vue.createCommentVNode("", true),
@@ -18047,7 +18043,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18047
18043
  };
18048
18044
  }
18049
18045
  });
18050
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-25d991e5"]]);
18046
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-46e22f3e"]]);
18051
18047
  const basicToolbarConfig = [
18052
18048
  "h2",
18053
18049
  "h3",
package/dist/index.mjs CHANGED
@@ -17904,10 +17904,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17904
17904
  min: min2 = 0,
17905
17905
  max: max2 = 100,
17906
17906
  step = 1,
17907
- label,
17908
- disabled,
17909
- id,
17910
- rtl,
17911
17907
  multiRange = false,
17912
17908
  formatValue = (value) => value.toString()
17913
17909
  } = props2;
@@ -17941,18 +17937,18 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17941
17937
  width: `${toPercentage.value - fromPercentage.value}%`
17942
17938
  };
17943
17939
  }
17944
- return rtl ? { left: `${100 - fromPercentage.value}%`, width: `${fromPercentage.value}%` } : { left: "0", width: `${fromPercentage.value}%` };
17940
+ return props2.rtl ? { left: `${100 - fromPercentage.value}%`, width: `${fromPercentage.value}%` } : { left: "0", width: `${fromPercentage.value}%` };
17945
17941
  });
17946
17942
  const displayFrom = computed(() => formatValue(validFrom.value));
17947
17943
  const displayTo = computed(() => formatValue(validTo.value));
17948
17944
  return (_ctx, _cache) => {
17949
17945
  return openBlock(), createElementBlock("div", {
17950
- dir: unref(rtl) ? "rtl" : "ltr"
17946
+ dir: _ctx.rtl ? "rtl" : "ltr"
17951
17947
  }, [
17952
- unref(label) ? (openBlock(), createElementBlock("label", _hoisted_2$l, toDisplayString(unref(label)), 1)) : createCommentVNode("", true),
17948
+ props2.label ? (openBlock(), createElementBlock("label", _hoisted_2$l, toDisplayString(props2.label), 1)) : createCommentVNode("", true),
17953
17949
  createElementVNode("div", _hoisted_3$h, [
17954
17950
  createElementVNode("input", {
17955
- id: unref(id),
17951
+ id: _ctx.id,
17956
17952
  value: validFrom.value,
17957
17953
  class: "from",
17958
17954
  type: "range",
@@ -17960,7 +17956,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17960
17956
  max: unref(max2),
17961
17957
  step: unref(step),
17962
17958
  required: _ctx.required,
17963
- disabled: unref(disabled),
17959
+ disabled: _ctx.disabled,
17964
17960
  "aria-label": unref(multiRange) ? "Minimum value" : "Value",
17965
17961
  onInput: _cache[0] || (_cache[0] = (e) => handleInput(+e.target.value, true))
17966
17962
  }, null, 40, _hoisted_4$a),
@@ -17973,7 +17969,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17973
17969
  max: unref(max2),
17974
17970
  step: unref(step),
17975
17971
  required: _ctx.required,
17976
- disabled: unref(disabled),
17972
+ disabled: _ctx.disabled,
17977
17973
  "aria-label": "Maximum value",
17978
17974
  onInput: _cache[1] || (_cache[1] = (e) => handleInput(+e.target.value, false))
17979
17975
  }, null, 40, _hoisted_5$a)) : createCommentVNode("", true),
@@ -18045,7 +18041,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18045
18041
  };
18046
18042
  }
18047
18043
  });
18048
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-25d991e5"]]);
18044
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-46e22f3e"]]);
18049
18045
  const basicToolbarConfig = [
18050
18046
  "h2",
18051
18047
  "h3",
package/dist/style.css CHANGED
@@ -1966,28 +1966,28 @@ pre code.hljs{
1966
1966
  color: var(--bgl-light-text);
1967
1967
  }
1968
1968
 
1969
- .range-slider-position-txt[data-v-25d991e5]{
1969
+ .range-slider-position-txt[data-v-46e22f3e]{
1970
1970
  margin-inline-start: calc((var(--progress) * 1%) - (var(--bgl-range-thumb-size) * var(--progress) / 100));
1971
1971
  top: calc(var(--bgl-range-thumb-size) / 2 ) ;
1972
1972
  transition: transform 0.1s, opacity 0.5s, top 0.5s;
1973
1973
  transform: scale(0.8);
1974
1974
  width: var(--bgl-range-thumb-size);
1975
1975
  }
1976
- .range-slider:hover .range-slider-position-txt[data-v-25d991e5]{
1976
+ .range-slider:hover .range-slider-position-txt[data-v-46e22f3e]{
1977
1977
  opacity: 1;
1978
1978
  transform: scale(1);
1979
1979
  top: calc(var(--bgl-range-thumb-size) / 2);
1980
1980
  }
1981
- .range-slider[data-v-25d991e5] {
1981
+ .range-slider[data-v-46e22f3e] {
1982
1982
  height: var(--bgl-range-track-size);
1983
1983
  display: flex;
1984
1984
  align-items: center;
1985
1985
  margin-top: calc(var(--bgl-range-thumb-size) / 2 + 0.5rem) ;
1986
1986
  }
1987
- .range-slider-txt[data-v-25d991e5]{
1987
+ .range-slider-txt[data-v-46e22f3e]{
1988
1988
  margin-top: calc(var(--bgl-range-thumb-size) / 2) !important;
1989
1989
  }
1990
- input[type="range"][data-v-25d991e5] {
1990
+ input[type="range"][data-v-46e22f3e] {
1991
1991
  position: absolute;
1992
1992
  width: 100%;
1993
1993
  height: 100%;
@@ -1997,7 +1997,7 @@ input[type="range"][data-v-25d991e5] {
1997
1997
  appearance: none;
1998
1998
  margin: 0;
1999
1999
  }
2000
- input[type="range"][data-v-25d991e5]::-webkit-slider-thumb {
2000
+ input[type="range"][data-v-46e22f3e]::-webkit-slider-thumb {
2001
2001
  pointer-events: all;
2002
2002
  appearance: none;
2003
2003
  width: var(--bgl-range-thumb-size);
@@ -2010,25 +2010,25 @@ input[type="range"][data-v-25d991e5]::-webkit-slider-thumb {
2010
2010
  cursor: grab;
2011
2011
  transition: var(--bgl-transition);
2012
2012
  }
2013
- input[type="range"][data-v-25d991e5]::-webkit-slider-thumb:hover {
2013
+ input[type="range"][data-v-46e22f3e]::-webkit-slider-thumb:hover {
2014
2014
  box-shadow: 0 0 0 calc(var(--bgl-range-thumb-size) / 2) var(--bgl-primary-tint);
2015
2015
  filter: brightness(90%);
2016
2016
  }
2017
- input[type="range"][data-v-25d991e5]:focus::-webkit-slider-thumb {
2017
+ input[type="range"][data-v-46e22f3e]:focus::-webkit-slider-thumb {
2018
2018
  outline: none;
2019
2019
  box-shadow: 0 0 0 calc(var(--bgl-range-thumb-size) / 2.2) var(--bgl-primary-tint);
2020
2020
  }
2021
- input[type="range"][data-v-25d991e5]:active::-webkit-slider-thumb {
2021
+ input[type="range"][data-v-46e22f3e]:active::-webkit-slider-thumb {
2022
2022
  cursor: grabbing;
2023
2023
  }
2024
- .track[data-v-25d991e5] {
2024
+ .track[data-v-46e22f3e] {
2025
2025
  height: var(--bgl-range-track-height);
2026
2026
  background: var(--bgl-bg);
2027
2027
  margin-inline-start: calc(var(--bgl-range-thumb-size) / 2);
2028
2028
  width: calc(100% - var(--bgl-range-thumb-size));
2029
2029
  }
2030
2030
  @media screen and (max-width: 768px) {
2031
- .range-slider-position-txt[data-v-25d991e5]{
2031
+ .range-slider-position-txt[data-v-46e22f3e]{
2032
2032
  opacity: 1;
2033
2033
  transform: scale(1);
2034
2034
  top: calc(var(--bgl-range-thumb-size) / 1.8) ;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.0.22",
4
+ "version": "1.0.24",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -22,10 +22,6 @@ const {
22
22
  min = 0,
23
23
  max = 100,
24
24
  step = 1,
25
- label,
26
- disabled,
27
- id,
28
- rtl,
29
25
  multiRange = false,
30
26
  formatValue = (value: number) => value.toString()
31
27
  } = props
@@ -65,7 +61,7 @@ const rangeStyle = $computed(() => {
65
61
  width: `${toPercentage - fromPercentage}%`
66
62
  }
67
63
  }
68
- return rtl
64
+ return props.rtl
69
65
  ? { left: `${100 - fromPercentage}%`, width: `${fromPercentage}%` }
70
66
  : { left: '0', width: `${fromPercentage}%` }
71
67
  })
@@ -76,7 +72,7 @@ const displayTo = $computed(() => formatValue(validTo))
76
72
 
77
73
  <template>
78
74
  <div :dir="rtl ? 'rtl' : 'ltr'">
79
- <label v-if="label" class="label">{{ label }}</label>
75
+ <label v-if="props.label" class="label">{{ props.label }}</label>
80
76
  <div class="range-slider relative w-100">
81
77
  <input
82
78
  :id="id"